LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 06-22-2011, 03:24 AM   #46
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

Hi,

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:
Code:
MANPATH_MAP	<PREFIX>/bin		<PREFIX>/man
MANPATH_MAP	/usr/bin/X11		<PREFIX>/man
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!

Quote:
Originally Posted by happyrobo
in chapter Xorg Libraries

./configure $XORG_CONFIG \
--with-appdefaultdir=/etc/X11/app-defaults

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.

Hope this helps.
 
Old 06-22-2011, 04:57 AM   #47
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
I'm so sorry druuna
the error is my fault, I'm not read clearly your instruction. I just follow the book with less reading the instruction also.

Quote:
Do you understand the steps you are executing?
I'm not clearly understand because I'm not reading the full page and your instruction

Quote:
Are you using these user notes?
Not at all , I think user note is the book

well if I read the book carefully, user note, your instruction, and redo the whole chapter 23 did my build will works fine?
 
Old 06-22-2011, 06:00 AM   #48
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
the book works fine if you follow it and the user notes
 
Old 06-22-2011, 07:50 AM   #49
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-22-2011, 09:27 AM   #50
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.

Hope this helps.
 
Old 06-22-2011, 11:44 AM   #51
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
would it be worth doing an md5sum check on downloaded packages, to make sure they are not corrupt
 
Old 06-23-2011, 10:07 AM   #52
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
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?
 
Old 06-23-2011, 10:15 AM   #53
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
doing an md5sum check
yes i use md5sum.
when chapter 23 finish which package should i do next?
any tips spiky?
 
Old 06-23-2011, 10:27 AM   #54
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by happyrobo View Post
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.

Have a look at this chapter The Bash Shell Startup Files, especially the /etc/profile.d/extrapaths.sh section.

Quote:
well druuna if I can finish this chapter and the next chapter xterm-267, then which chapter should I do next?
You are not finished with X yet, you do need to do the Configuring X Window System section (X Window System Components and Additional X Window System Configuration). Once those are behind you you have X installed and are done.

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.

Hope this helps.
 
Old 06-23-2011, 10:52 AM   #55
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
where are you upto now, As druuna sayes you have to finish off chapter23 1st Then configure X windows
 
Old 06-26-2011, 02:19 AM   #56
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
PKG_CONFIG_PATH
I checked /etc/profile.d/extrapaths.sh and the script same as the book, so I don't need export again right?

Quote:
Xfce
I ever use XFCE on LFSLiveCD and I also want to use it, so druuna can yo give me the tutorial to do that?
 
Old 06-26-2011, 02:32 AM   #57
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Have a look through here it tells you all and what you need, There is also a download tar there
http://www.xfce.org/download/building
 
Old 06-26-2011, 02:34 AM   #58
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by happyrobo View Post
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.

Hope this helps.
 
Old 06-26-2011, 09:51 PM   #59
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
echo $PKG_CONFIG_PATH
/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig

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)

Last edited by happyrobo; 06-26-2011 at 09:55 PM.
 
Old 06-26-2011, 09:54 PM   #60
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Have a look through here it tells you all and what you need, There is also a download tar there
http://www.xfce.org/download/building
yes spiky I've look there, and I'm confusing about ${PREFIX} and version of XFCE
any tips?
 
  


Reply

Tags
blfs, lfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need BLFS !!! nykey Linux From Scratch 1 06-06-2006 07:05 PM
BLFS packages dsider Linux From Scratch 2 10-15-2005 02:18 PM
BLFS dhcpcd fr0zen Linux From Scratch 1 11-26-2003 06:02 PM
Lfs --> Blfs KptnKrill Linux From Scratch 3 10-11-2003 11:19 AM
On to BLFS itsjustme Linux From Scratch 7 09-01-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration