root password for installations GUI < > terminal

This is the first time I've tried to install a piece of software using the terminal window (command line).

I'm trying to install autotrace, and downloaded the .tar file, no probs.
I read the install instructions and opened up a terminal window, ran 'configure' and got a 'can't find C compiler' error.
Installed Xcode.
Ran 'configure' and that seemed to work although there are various bits missing, (output supports for pstoedit, imagemagick, swf by ming, libpng).
Ran 'make install' to install the program. Got a message that had a bit saying 'permission denied'.
So far, when installing using a gui, the moment has come when there's a request for the root account name and password and I do that and everything has worked fine, and I guess that that's what's going on here too.

So, why wasn't there an option to put in the root account and password when using a terminal window?
How do I get round this? (So far I tried putting the source file into root's drop box, logged out, relogged in as root, but was unable to cd to the drop box. Why not? Curious.)

I spend most of my time not in root because I've understood this to be better practice. But does this mean clumsily having to log out/log and download again each time I download something that turns out to need a terminal procedure?

Instead of "make install" you need to type "sudo make install".
It will ask for your admin password. Should install then.
Might want to install the dependencies too...(libpng etc..).
(actually should have installed those first)

Point taken about the dependencies. I've downloaded them, and looking at the installation instructions for Imagemagick, the advice is to ' Create (or choose) a directory to install the package into and change to that directory ...' Are there any implications / usual choices as to where such a directory should be created?

Depends. Some people use /usr/local/bin. Some apps use /opt (macports).
Some use /sw (fink). Read the readme or install file that came with them and see if there are any preferences as to install locations.

So, I tried using sudo and got a message saying that I'm not in the sudoers file. Looking into it I came across a comment that suggests that putting your standard account into the sudoers file runs against the idea of improved security by using a non-admin account for the day to day stuff. Since I don't intend (once I've got this little can of worms sorted out) to install so much stuff, I'm going to download the software again using the admin account and work from there to install it.

However, I have a path problem.
Configuring pstoedit, I got a 'cannot find Ghostscript ... check PATH' message. I have Ghostscript, but how do I get it added to the path?

The ImageMagick readme calls for Fink for installing but that'll really have to wait as for the moment it' s just beyond me. Do you think it'll cause difficulties if I install this Imagemagick later?

(Is this drifting into a software issue? Basically, I'm trying to install some software that'll let me work on fonts and a bit of publishing and have no experience of using command line stuff and can't afford the pricey stuff).

Actually it might be better to install Fink because installing apps which need dependencies will have them installed automatically.
Also, installing X11 apps should be done by an admin account so you have access privileges, unless you want to install them in your user folder.

There's a difference between admin and logging in as root. You don't need to be root to install apps, it's actually not recommended as you can really screw things up.

As far as headaches...what is easier, doing the whole ./configure, make, make install thing for each individual library, app and dependancy for an app?
Or doing "Fink install "package" (or Port for macports)" and having it do all of it for you? Of course it's not perfect and can have problems, but then nothing is.
Everything Fink or macports installs goes into it's own dir, seperate from the system stuff and can be easily found or deleted if needed. Doing it by hand you don't really know where it's going.

Aside from what I say in my last post, one of the bigger problems with Fink can occur if your version of OS X is not the same as your Fink installer's.

So if you get a version of Fink that was written for, say, OS X.4 and you're running X.5, you might have problems.

Another headache can arise if your paths are not what Fink expects.

OR, it might work perfectly for you, and I'm certainly not trying to steer you away from it. Fink's a good thing to know about, and if you can get it working you might never have to worry about Makefiles again.

This is entirely correct. What I meant is, can you log into your machine as an administrator?

I have a MacBook.
There is the root account.
I use another account for general day to day use.
In this day to day account, I've successfully installed stuff having been able to type in the root accounts username and password.

So two questions:
1. From my description above I understand that I can login as administrator when not root. Is that right?

2. It sounds like it should be possible to log in and not to have this admin privilege. How does that happen?

Also, I had a look at Fink and it's cleared my confusion about the directories enough to try installing it.

I have a MacBook.
There is the root account.
I use another account for general day to day use.
In this day to day account, I've successfully installed stuff having been able to type in the root accounts username and password.

So two questions:
1. From the my description above I understand that I can login as administrator when not root. Is that right?

There's the login you have when you log into the system, and then there's the level of access you gain on the underlying Unix system that you get from going into the Terminal.

Quote:

Originally Posted by blini

2. It sounds like it should be possible to log in and not to have this admin privilege. How does that happen?

When I say "admin" I mean the OS X login, not the Unix login. OS X users can be administrators, which is settable in System Preferences -> accounts. Since this seems to be your MacBook, I'm assuming you have Admin access.

But this is not the same as "logging in as root" to the Unix system, and Cradom is right, you shouldn't go mucking about in your system as root. You should go in as the default user (linked to the OS X user account) and then "su" or "sudo" up to that level access. Any user can do this, even if they're not Admin on the system, as long as they have the appropriate password.

In other words, my point is, the two levels of access are different from one another. Just because you're admin on your system, doesn't mean you're admin in the terminal, and vice-versa.