Results 1 to 3 of 3
I've completed a LFS installation, why is it that I can only successfully install packages when i add --prefix=/usr, can someone explain to me whats going on?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-07-2008 #1
- Join Date
- Jul 2007
question about LFS --prefix=/usr
I've completed a LFS installation, why is it that I can only successfully install packages when i add --prefix=/usr, can someone explain to me whats going on?
- 11-08-2008 #2
- Join Date
- Nov 2008
Whitout --prefix=/usr, what happens?
- 11-16-2008 #3
You should be able to install your packages to just about any directory. The reason LinuxFromScratch and BeyondLinuxFromScratch use "--prefix=/usr" is for this reason:
When you install packages on regular distributions, they install to "/usr" and you can assume everything under that tree is handled by the package manager - except for "/usr/local". "/usr/local/" is the tree usually left for the user to install custom compiled source packages that are not included with the distro. However, since all packages in LFS are compiled from source and there is (usually) no package manager, LFS just suggests installing to "/usr/". It really doesn't matter as long as all the necessary environment variables also point to "/usr/local/..." .
I personally include the following args to ./configure scripts when compiling most programs (under LFS):
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \ CFLAGS="-O3 -march=pentium2 -pipe" CXXFLAGS=$CFLAGS make -j3
If you are getting errors when you try to use "--prefix=/usr", please post them. You can also run "./configure --help" for more info.