Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to ask: Do you understand the steps you are executing?
Quote:
Originally Posted by happyrobo
I also check my man_bd.conf and there are still any <PREFIX>
Why would man_db.conf change in any way? You've chosen /usr as prefix so no changes are made. Why do you keep coming back to this file? The book says to leave it alone (so did I). Hopefully you did not mess up that file by now.
Quote:
Originally Posted by happyrobo
I also check my man_bd.conf and there are still any <PREFIX>
ex:
You're not very clear with the above. Where do those 2 MANPATH_MAP lines come from? Are those part of the man_db.conf file? If you did add these 2 entries: remove them!
I found that I don't have /etc/X11/app-defaults, is that the causes of error?
Why should that directory be present? The --with-appdefaultdir=... option is part of the configure command and it is there to tell the build process where to put certain files. This directory is created by the build process if it doesn't exist.
I've mentioned the user notes several times and it looks like you aren't using the scripts (and other info) that are mentioned in those notes. Second time I ask this: Are you using these user notes?
If you do use the scripts in the user notes: You do realize that those scripts take care of building the packages and you do not have to do the building parts that are in the "normal" chapters??
Example related to Xorg Libraries:
If you use the user notes, this part:
Code:
bash -e
for package in $(grep -v '^#' ../lib-7.5-2.wget)
do
packagedir=${package%.tar.bz2}
tar -xf $package
cd $packagedir
case "$packagedir" in
libX11-1.3.2 )
# Uncomment if you did not build libxcb
#CONFIGPARAMS="--without-xcb"
esac &&
./configure $XORG_CONFIG $CONFIGPARAMS
make
make install
unset CONFIGPARAMS
ldconfig
cd ..
rm -rf $packagedir
done 2>&1 | tee -a ../lib-7.5-2-compile.log
You do _not_ do this part:
Code:
case $(basename "$PWD") in
libXfont-[0-9]* )
./configure $XORG_CONFIG --disable-devel-docs
;;
libXt-[0-9]* )
./configure $XORG_CONFIG \
--with-appdefaultdir=/etc/X11/app-defaults
;;
* )
./configure $XORG_CONFIG
;;
esac &&
make
make install &&
ldconfig
You do execute (if needed) all the other parts of the "normal" chapters.
Unlike LFS, BLFS is not a copy-paste exercise, you do need to have an understanding of what you are doing and at times you do need to change stuff (for example: extra options to make the optional dependencies work or not building certain packages because they are OS dependend [OSX/win32]). Although this information is present in the chapters (Command Explanations) and the user notes, they are not always implemented in the build examples given. You need to know what it is you want and use and implement them if needed.
I already redo chapter 23 with automated build from user note also and found this error chapter Xorg Libraries :
Code:
checking for XSCRNSAVER... configure: error: Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met:
No package 'xext' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS
and XSCRNSAVER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I already export PKG_CONFIG_PATH=/usr/lib/pkgconfig
Which package created this error (about 30 are installed when doing the Xorg lib section)? And are there any other, relevant, messages before the posted checking for XSCRNSAVER... message?
If this is a PKG_CONFIG_PATH related error: All 4 mentioned requirements (x11 xext xextproto scrnsaverproto) should have been installed in the following directory: /usr/lib/pkgconfig Check to see if that path is part of the PKG_CONFIG_PATH variable content.
yes druuna, I export PKG_CONFIG_PATH to /usr/lib/pkgconfig and then it works, thank you
with automated build now I do this chapter Xorg Drivers
well druuna if I can finish this chapter and the next chapter xterm-267, then which chapter should I do next?
yes druuna, I export PKG_CONFIG_PATH to /usr/lib/pkgconfig and then it works, thank you
You're welcome.
BTW: You are not clear about how you set the PKG_CONFIG_PATH variable, if you did an export PKG_CONFIG_PATH=/usr/lib/pkgconfig from the command line then you did not do it correctly and you might get into trouble later on.
Although X does come with a windows manager (TWM), most people want a different window/desktop manager. I guess you need to figure out which one you want. I like Xfce (which isn't part of the BLFS book), you might prefer (or be familiar with) Gnome or KDE. It's all up to you.
I checked /etc/profile.d/extrapaths.sh and the script same as the book, so I don't need export again right?
As stated in the book you might need to expand that file, but that depends on what is already set. Check what the output of echo $PKG_CONFIG_PATH is.
Quote:
I ever use XFCE on LFSLiveCD and I also want to use it, so druuna can yo give me the tutorial to do that?
Have a look here: Xfce - building (homepage is here Xfce homepage).Do make sure you read the full page first and have the external dependencies in place before you start.
druuna when I read the XFCE build I'm confusing about ${PREFIX}, is that same as chapter 23 yesterday /usr or this time different. It say I can use /usr, /usr/local and /opt/xfce4 so I can change it into ${PREFIX}=/usr?
Then which version of XFCE is the best (according to my LFS 6.6)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.