PDA

View Full Version : Unix, OSX, /usr/local/lib


Almo
6th May 2006, 10:26 PM
Hi!

I'm trying to install iIRCii on my Mac. I run the ./configure script, and make. It builds. I make install, and I get this:

umask 022; ./mkinstalldirs /usr/local/lib/irc /usr/local/bin /usr/local/lib/irc/translation /usr/local/lib/irc/script
mkdir /usr/local/lib/irc
mkdir: /usr/local/lib/irc: Permission denied
mkdir /usr/local/lib/irc
mkdir: /usr/local/lib/irc: Permission denied

Some of the output deleted for brevity. The upshot is I can't create a directory in /usr/local/lib. I can't do it from the shell by hand, either. The folder is owned by root, but I'm almo. But it's a Mac... I don't remember setting up a root account. I thought my main account (almo) functioned as the administrator. So I can't su root either, cause I don't know the password.

Any ideas?!?

EDIT: sudo make install works. But... I still want to know about root on OSX.

rudar
7th May 2006, 02:18 AM
yeah, the expected way to do that is to sudo the command you want. If you really want to allow yourself to su to the root account, you have to open the netinfo manager in /Applications/Utilities/ and enable the root account in one of the menus. But the reason it's that un-obvious is they really think you shouldn't do that, and should instead sudo each command you really need to run as root. That way, I guess you can't forget that you're running as root and do something silly :)

Unnamed
7th May 2006, 07:17 AM
(...) you shouldn't do that, and should instead sudo each command you really need to run as root. That way, I guess you can't forget that you're running as root and do something silly :)

And when you need the convenience of a root# prompt, use sudo su and be careful.

Paul C. Anagnostopoulos
7th May 2006, 08:16 AM
I'm trying to install iIRCii ...
I'm sorry, but I'm suspicious of something with that many i's in its name. Was it developed in Hawaii or what?

~~ Paul

Darat
7th May 2006, 09:53 AM
Can't you just double click on "setup" and it's all done for you? ;)

jeremyp
7th May 2006, 05:56 PM
EDIT: sudo make install works. But... I still want to know about root on OSX.
The root account is there on OS X, but is login using it is disabled by default. Personnally, I find it convenient to leave it that way and sudo all my admin commands.

tsg
8th May 2006, 07:21 AM
Can't you just double click on "setup" and it's all done for you? ;)

If you want it done wrong, sure.

Almo
8th May 2006, 07:50 AM
Hey thanks guys. Good point rudar, about not doing something silly. :)