Solved

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

Posted on 2009-06-27
3
1,100 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

751 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