Results 1 to 3 of 3
Thread: question about LFS --prefix=/usr
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jul 2007
question about LFS --prefix=/usr
- Join Date
- Nov 2008
Whitout --prefix=/usr, what happens?
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.