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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-03-2013, 03:24 AM
|
#16
|
|
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,562
|
Can you download perl and the patch as lfs, extract and it as lfs just a thought.
|
|
|
1 members found this post helpful.
|
03-03-2013, 03:32 AM
|
#17
|
|
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,562
|
I dont think you have these wrong
output
|
|
|
|
03-03-2013, 03:34 AM
|
#18
|
|
Member
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53
Original Poster
Rep:
|
can you give me the command for extracting perl from command line ?? thanx
|
|
|
|
03-03-2013, 03:38 AM
|
#19
|
|
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,562
|
tar xvjf perl-5.16.1.tar.bz2
|
|
|
1 members found this post helpful.
|
03-03-2013, 03:39 AM
|
#20
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,716
|
@aashayshah: I have questions for you:
1) Did the make step actually stop after the errors shown? Or did it continue to run until you got this message: Everything is up to date. Type 'make test' to run test suite.?
2) Do you remove the extracted directory when you try again? I'm asking because of this:
Code:
Makefile out-of-date with respect to ../../lib/Config.pm ../../config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "INSTALLMAN1DIR=none" "INSTALLMAN3DIR=none" "PERL_CORE=1" "LIBPERL_A=libperl.a"
Writing Makefile for Archive::Extract
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command. <==
The only way I can recreate that is by:
- extracting the perl package
- running all the steps (except the install part)
- going to $LFS/sources and extract the perl package again (without removing the perl directory)
- run the steps again.
Now I see these errors you show in your first post.
|
|
|
1 members found this post helpful.
|
03-03-2013, 03:46 AM
|
#21
|
|
Member
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53
Original Poster
Rep:
|
Quote:
Originally Posted by druuna
@aashayshah: I have questions for you:
1) Did the make step actually stop after the errors shown? Or did it continue to run until you got this message: Everything is up to date. Type 'make test' to run test suite.?
2) Do you remove the extracted directory when you try again? I'm asking because of this:
Code:
Makefile out-of-date with respect to ../../lib/Config.pm ../../config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "INSTALLMAN1DIR=none" "INSTALLMAN3DIR=none" "PERL_CORE=1" "LIBPERL_A=libperl.a"
Writing Makefile for Archive::Extract
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command. <==
The only way I can recreate that is by:
- extracting the perl package
- running all the steps (except the install part)
- going to $LFS/sources and extract the perl package again (without removing the perl directory)
- run the steps again.
Now I see these errors you show in your first post.
|
yes the make step stops after showing that error , it does not go on further .
|
|
|
|
03-03-2013, 03:58 AM
|
#22
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,716
|
Quote:
Originally Posted by aashayshah
yes the make step stops after showing that error , it does not go on further .
|
Ok, clear.
And my second question?
|
|
|
|
03-03-2013, 04:05 AM
|
#23
|
|
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,562
|
Hi @druuna are those permissions correct?? FMI
I see
drwxr-xr-x. 30 aashay aashay 4096 Mar 2 23:54 gcc-4.7.1
|
|
|
|
03-03-2013, 04:15 AM
|
#24
|
|
Member
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53
Original Poster
Rep:
|
Quote:
Originally Posted by druuna
Ok, clear.
And my second question?
|
HATS OFF TO spiky0011 and druuna !!! THANKS ALOT FOR HELPING SO MUCH !!
i extracted it as lfs user and it compiled successfully and now m going ahead to run a test suite...
i hope i dont get error when i chroot the environment and try to install linux kernel headers ...
One question : Will it affect the lfs system if i compile and install perl first and then all other utilities like binutils , glibc , gcc in chapter 2 ( i.e. Temporary tools ) ???
|
|
|
|
03-03-2013, 04:18 AM
|
#25
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,716
|
Quote:
Originally Posted by spiky0011
Hi @druuna are those permissions correct?? FMI
I see
drwxr-xr-x. 30 aashay aashay 4096 Mar 2 23:54 gcc-4.7.1
|
As long as $LFS/sources is owned by lfs and the content of $LFS/sources is readable by user lfs, all is ok.
I personally run a chown lfs:root and chmod 440 on all packages and patches in $LFS/sources (in chapter 4.3 just before the su - lfs step). But I don't think that's actually needed.
I also see a lot of directories still present in $LFS/sources. Except for gcc and binutils that is probably ok (although the LFS team does mention removing them after building). The gcc and binutils dirs do concern me. aashayshah still needs to answer my question about that (post #20).
|
|
|
|
03-03-2013, 04:21 AM
|
#26
|
|
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,562
|
1 thing As mention by druuna remove all extracted dirs
I notice that there are still 2 dirs that are there
drwxr-xr-x. 11 lfs lfs 4096 Mar 2 23:51 binutils-build << remove
drwxr-xr-x. 30 aashay aashay 4096 Mar 2 23:54 gcc-4.7.1 << remove
the other thing all packages are owned by user aashay aashay
Quote:
|
One question : Will it affect the lfs system if i compile and install perl first and then all other utilities like binutils , glibc , gcc in chapter 2 ( i.e. Temporary tools ) ???
|
Do you mean chapter 6?? you have gone past binutils etc in this chapter
|
|
|
|
03-03-2013, 04:22 AM
|
#27
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,716
|
Quote:
Originally Posted by aashayshah
One question : Will it affect the lfs system if i compile and install perl first and then all other utilities like binutils , glibc , gcc in chapter 2 ( i.e. Temporary tools ) ???
|
You need to follow the order in which the LFS book builds things!
PS: You still haven't clearly answered my second question, so just to make sure: You need to remove the extracted directory (and the build dir where appropriate) once you finish a package OR when you redo a package!!
|
|
|
1 members found this post helpful.
|
03-03-2013, 04:23 AM
|
#28
|
|
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,562
|
Druuna I do the same thats why I queared it
|
|
|
|
03-03-2013, 04:25 AM
|
#29
|
|
Member
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53
Original Poster
Rep:
|
Quote:
Originally Posted by druuna
As long as $LFS/sources is owned by lfs and the content of $LFS/sources is readable by user lfs, all is ok.
I personally run a chown lfs:root and chmod 440 on all packages and patches in $LFS/sources (in chapter 4.3 just before the su - lfs step). But I don't think that's actually needed.
I also see a lot of directories still present in $LFS/sources. Except for gcc and binutils that is probably ok (although the LFS team does mention removing them after building). The gcc and binutils dirs do concern me. aashayshah still needs to answer my question about that (post #20).
|
About your second question drunna , i tried deleting the the perl folder and again extracting it and compiling Still same errors occured . Bt according to spiky0011 i extracted it as a lfs user from command line and the compilation was successfull !!
|
|
|
|
03-03-2013, 04:28 AM
|
#30
|
|
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,562
|
Re read chapter 5.3 last notice 3.a FYI
Not sure about the rest of what you have built now!!!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|