Solved

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

Posted on 2009-06-27
3
1,067 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

762 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

18 Experts available now in Live!

Get 1:1 Help Now