MAKE, CONFIGURE & INSTALL
The directory structure , in Solaris, is different , than the Linux setup, for one thing and compiling packages is made more difficult because of it. For instance , there is no LOCAL/USR/ directory and many commands are not in /usr/bin/ as expected by most packages. Are there any good articles on this ? Sometimes I'll just copy a file like gcc to the usr/bin/ but a permanent PATH would be preferable.
Are there compatibility reasons why some of the popular commands AREN'T in usr/bin ?
Dan
# 1
> The directory structure , in Solaris, is different ,
> than the Linux setup, for one thing and compiling
> packages is made more difficult because of it.
I don't think the directory structure has a lot to do with it, but it may.
> For
> instance , there is no LOCAL/USR/ directory
You mean '/usr/local'?The OS will not put anything there. You're free to create it and install into it. Many packages that you download will create it and put stuff there. No problem.
> and many
> commands are not in /usr/bin/ as expected by most
> packages.
Can you give examples? In some cases the command may not be distributed with the OS. You may need to install it from the companion CD or from another site.Or it may be part of the OS and not in your path.
If you're compiling, you certainly want /usr/ccs/bin in your path, plus the path to whatever compiler you want.
> Are there any good articles on this ?
> Sometimes I'll just copy a file like gcc to the
> usr/bin/ but a permanent PATH would be preferable.
> Are there compatibility reasons why some of the
> popular commands AREN'T in usr/bin ?
In the past it had more to do with implicit support. If it was a community program (like gcc), and Sun didn't commit to keeping it up and supported, it was put into another directory so that users understood that it wasn't supported like the contents of /usr/bin. That's no longer how it works, but things that are already in place may not change .
--
Darren
# 2
> The directory structure , in Solaris, is different ,
> than the Linux setup,
One OS is called Solaris, the other one is called Linux. They are not the same thing.
> for one thing and compiling
> packages is made more difficult because of it.
How is it more difficult?
> instance , there is no LOCAL/USR/ directory and many
> commands are not in /usr/bin/ as expected by most
> packages. Are there any good articles on this ?
/usr/local can be changed on either system by using the appropriate switches with the ./configure command
> Sometimes I'll just copy a file like gcc to the
> usr/bin/ but a permanent PATH would be preferable.
? Why don't you just update your PATH setting?
> Are there compatibility reasons why some of the
> popular commands AREN'T in usr/bin ?
Which commands?
http://www.ilkda.com/compile/
I have to add some verbage on the differences between Linux and Solaris. It's on my todo list and will be gotten to shortly.
alan
# 3
? Why don't you just update your PATH setting?I have tried but I guess that I haven't found the proper initialization SCRIPT to put the new path in. I want the same path every time I start up as "root". I don't like typing it in over and over again.Dan
# 4
> ? Why don't you just update your PATH
> setting?
>
> I have tried but I guess that I haven't found the
> proper initialization SCRIPT to put the new path in.
> I want the same path every time I start up as "root".
> I don't like typing it in over and over again.
Ok, so you logon as root? Then update /.profile. If your logging on as some other username, then you need to know the shell for that username and that will determine which file that you need to update.
Check out the Basic Admin guide on docs.sun.com.
alan