Solved

usr/local/bin in UNIX on Mac OS X 10.5.7

Posted on 2009-06-27
3
1,077 Views
Last Modified: 2013-12-20
Hi,

I'm trying to use the directory /usr/local/bin for some of my programming needs.

Having recently bought a mac, i'm kinda brand new to UNIX and the whole mac way of working.

Entering Terminal, i first type "cd / " into the command line followed by "ls".

This generates a list of everything in my root.

I can see usr is here, so going into usr (cd usr), i generate the list:

X11
X11R6
bin
lib
libexec
sbin
share
standalone

but there is no "local" (i.e. /usr/local/bin).

can anybody help me with this? would be much appreciated.

Thanks.
0
Comment
Question by:StephenMcGowan
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24728700
cd /usr
mkdir -p local/bin
0
 

Author Comment

by:StephenMcGowan
ID: 24729202
hi woolmilkporc

I've tried this method, but receive the message:

stephen-mcgowans-macbook-pro:usr stephenmcgowan$ mkdir -p local/bin
mkdir: local: Permission denied

Stephen.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 24729238
Which user are you logged in as?
You need to be 'root' to run the above command.
Either login as root or try
cd /usr
sudo mkdir -p local/bin
'sudo', if installed and properly configured, allows you to issue commands with root privileges.

wmp
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now