LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-17-2011, 09:15 AM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374

Hi,
Quote:
Originally Posted by happyrobo View Post
absolutely help, now dhclient running fine
That's nice to read!

Quote:
mr druuna
No need to be so formal on LQ, druuna will do just fine

Quote:
now i will continue blfs into X Window System Environment, i get another problem in this chapter Introduction to Xorg-7.6. in this script:

bash -e #exit on all errors
section=<proto>
version=7.6-1
mkdir $section
cd $section


what is <proto>?
The above code is an example/explanation. This way of installing the Xorg related packages is used several times in the rest of chapter 23. The exact code to be used can be found in the users notes sections that are present (this, for example, is the user notes page for the Xorg Protocol Headers).

Quote:
what software that i need to install first?
All the dependencies that are required are mentioned on the pages dealing with the packages that need to be installed.

All of chapter 23 needs to be done in the order shown and if a dependency is required, it will be mentioned. For example, before you install xcb-proto-1.6, python must be installed and optional you may install libxml2-2.7.7.

Do make sure you understand and correctly set up the Setting up the Xorg Build Environment mentioned in Introduction to Xorg-7.6. The only advise I can give you on that is: Use the standard /usr prefix and do check all the user notes pages, they contain important information and instructions.

Hope this helps.
 
Old 06-17-2011, 09:19 AM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by happyrobo View Post
another problem mr, in this script chapter Introduction to Xorg-7.6.

export XORG_PREFIX="<PREFIX>"

what is "<PREFIX>"?
This is explained on the page you linked to (Introduction to Xorg-7.6.). What's unclear? Also: See the last paragraph of my previous post.
 
Old 06-17-2011, 01:26 PM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by happyrobo View Post
I just recently install LFS, then I confused how to start blfs. how to insert package etc
LFS consisted almost completely of building source pacakges, so the process should be familiar to you by now. Did you just copy and paste everything without even bothering to think about what each command does?
 
Old 06-18-2011, 05:47 PM   #19
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Hi,
Use the standard /usr prefix
i see, so if want to se standard prefix i can use /usr
then in this script:

cat >> /etc/profile.d/xorg.sh << "EOF"

pathappend $XORG_PREFIX/bin PATH
pathappend $XORG_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
pathappend $XORG_PREFIX/share/pkgconfig PKG_CONFIG_PATH
export PATH PKG_CONFIG_PATH


did i need to change PATH and PKG_CONFIG_PATH to /usr also?

so the script will be like this?

cat >> /etc/profile.d/xorg.sh << "EOF"

pathappend $XORG_PREFIX/bin /usr
pathappend $XORG_PREFIX/lib/pkgconfig /usr
pathappend $XORG_PREFIX/share/pkgconfig /usr
export PATH /usr
 
Old 06-18-2011, 05:53 PM   #20
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MTK358 View Post
Did you just copy and paste everything without even bothering to think about what each command does?
i tried lfs in couples of time, so i must be familiar with the command. now i want to build X Window System, any suggested tips for me?
 
Old 06-18-2011, 05:57 PM   #21
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,663
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
just follow the book make sure all dependencies are installed 1st for each package
 
Old 06-19-2011, 02:58 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by happyrobo View Post
i see, so if want to se standard prefix i can use /usr
then in this script:

cat >> /etc/profile.d/xorg.sh << "EOF"

pathappend $XORG_PREFIX/bin PATH
pathappend $XORG_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
pathappend $XORG_PREFIX/share/pkgconfig PKG_CONFIG_PATH
export PATH PKG_CONFIG_PATH


did i need to change PATH and PKG_CONFIG_PATH to /usr also?

so the script will be like this?

cat >> /etc/profile.d/xorg.sh << "EOF"

pathappend $XORG_PREFIX/bin /usr
pathappend $XORG_PREFIX/lib/pkgconfig /usr
pathappend $XORG_PREFIX/share/pkgconfig /usr
export PATH /usr
As stated on the Introduction to Xorg-7.6 page:
Quote:
If you've decided to use the standard /usr prefix, you can omit the remainder of this page. Otherwise ..........
You use /usr so you do not need to set the pathappend part and the rest of the page. As stated by spiky0011: follow the instructions in the book.

Hope this helps.

Last edited by druuna; 06-19-2011 at 04:07 AM. Reason: spelling
 
Old 06-20-2011, 06:17 AM   #23
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
Angry

first i follow this script in / directory:

mkdir xc &&
cd xc


am i right?

Quote:
Originally Posted by druuna View Post
use /usr
yes i use /usr, so i edit this script:

export XORG_PREFIX="/usr"

and

cat > /etc/profile.d/xorg.sh << "EOF" &&
XORG_PREFIX="/usr"
XORG_CONFIG="--prefix=$XORG_PREFIX \
--sysconfdir=/etc \
--mandir=$XORG_PREFIX/share/man \
--localstatedir=/var"
export XORG_PREFIX XORG_CONFIG
EOF
chmod 644 /etc/profile.d/xorg.sh


everything work fine until makedepend-1.0.3 it say no package 'xproco' found.
I already finish Xorg Protocol Headers with no error.

so druuna whats wrong with me
 
Old 06-20-2011, 06:33 AM   #24
happyrobo
Member
 
Registered: Jun 2011
Location: Indonesia
Posts: 37

Original Poster
Rep: Reputation: Disabled
another question druuna, in this script chapter Introduction to Xorg-7.6

sed 's@/usr/X11R6@<PREFIX>@g' -i /etc/man_db.conf


did i need to edit this also into

sed 's@/usr/X11R6@/usr@g' -i /etc/man_db.conf
 
Old 06-20-2011, 07:16 AM   #25
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by happyrobo View Post
first i follow this script in / directory:

mkdir xc &&
cd xc


am i right?
You can create these directories just about anywhere you want. I always create it in /sources, which keeps everything together but that's my way of doing things. Most people want to keep the root directory (/) as clean as possible, but it is a good a place as any other when it comes down to it.

Quote:
i use /usr, so i edit this script:

export XORG_PREFIX="/usr"

and

cat > /etc/profile.d/xorg.sh << "EOF" &&
XORG_PREFIX="/usr"
XORG_CONFIG="--prefix=$XORG_PREFIX \
--sysconfdir=/etc \
--mandir=$XORG_PREFIX/share/man \
--localstatedir=/var"
export XORG_PREFIX XORG_CONFIG
EOF
chmod 644 /etc/profile.d/xorg.sh
I don't see this one (mentioned in between the 2 parts you posted above):
Code:
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
    --mandir=$XORG_PREFIX/share/man --localstatedir=/var"
Quote:
everything work fine until makedepend-1.0.3 it say no package 'xproco' found.
I already finish Xorg Protocol Headers with no error.
If you did not set the XORG_CONFIG variable, things are not build/installed correctly. I'm guessing that this is the reason for the error.

Quote:
another question druuna, in this script chapter Introduction to Xorg-7.6

sed 's@/usr/X11R6@<PREFIX>@g' -i /etc/man_db.conf

did i need to edit this also into

sed 's@/usr/X11R6@/usr@g' -i /etc/man_db.conf
This section is there in case you used something different then /usr (as mentioned by me and the book). If you did do this step, you need to restore the original content. Check these 4 entries in /etc/man_db.conf:
Code:
MANDATORY_MANPATH             /usr/X11R6/man
MANPATH_MAP    /usr/X11R6/bin      /usr/X11R6/man
MANPATH_MAP    /usr/bin/X11        /usr/X11R6/man
MANDB_MAP /usr/X11R6/man      /var/cache/man/X11R6
The above reflects what the entries should look like when using /usr as prefix.

Hope this helps.
 
Old 06-20-2011, 08:57 AM   #26
elenger
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
/usr
 
Old 06-20-2011, 09:21 AM   #27
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by elenger View Post
/usr
?????

Just posting a directory isn't that helpful, please explain what you are trying to tell us.
 
Old 06-20-2011, 11:40 AM   #28
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,663
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
I think elenger was refering to the post about what was wrong
Code:
XORG_PREFIX="/usr"
well I hope he was?
Happyrobo did you leave the exclamation marks in "/usr" it should be /usr. Or was that a typo?
 
Old 06-20-2011, 12:03 PM   #29
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
@spiky0011: I guess you are talking about the double quotes (") and not exclamation marks (!):

export XORG_PREFIX="/usr"

and

export XORG_PREFIX=/usr

are the same. The (B)LFS team mix them up in their documentation (example: the Introduction to Xorg-7.6 uses double quotes, KDE Pre-installation Configuration doesn't use double quotes).
 
Old 06-20-2011, 12:15 PM   #30
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,663
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
Sorry thought you had missed that Thought i was 1 step ahead Thks for pointing it out tho.
 
  


Reply

Tags
blfs, lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration