LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-03-2013, 03:24 AM   #16
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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226

Can you download perl and the patch as lfs, extract and it as lfs just a thought.
 
1 members found this post helpful.
Old 03-03-2013, 03:32 AM   #17
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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
I dont think you have these wrong

output
Code:
ls -l /mnt/lfs
Code:
echo $LFS
 
Old 03-03-2013, 03:34 AM   #18
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
can you give me the command for extracting perl from command line ?? thanx
 
Old 03-03-2013, 03:38 AM   #19
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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
tar xvjf perl-5.16.1.tar.bz2
 
1 members found this post helpful.
Old 03-03-2013, 03:39 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
@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.
Old 03-03-2013, 03:46 AM   #21
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by druuna View Post
@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 .
 
Old 03-03-2013, 03:58 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by aashayshah View Post
yes the make step stops after showing that error , it does not go on further .
Ok, clear.

And my second question?
 
Old 03-03-2013, 04:05 AM   #23
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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi @druuna are those permissions correct?? FMI

I see
drwxr-xr-x. 30 aashay aashay 4096 Mar 2 23:54 gcc-4.7.1
 
Old 03-03-2013, 04:15 AM   #24
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by druuna View Post
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 ) ???
 
Old 03-03-2013, 04:18 AM   #25
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by spiky0011 View Post
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).
 
Old 03-03-2013, 04:21 AM   #26
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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
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
 
Old 03-03-2013, 04:22 AM   #27
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by aashayshah View Post
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.
Old 03-03-2013, 04:23 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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Druuna I do the same thats why I queared it
 
Old 03-03-2013, 04:25 AM   #29
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by druuna View Post
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 !!
 
Old 03-03-2013, 04:28 AM   #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,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Re read chapter 5.3 last notice 3.a FYI

Not sure about the rest of what you have built now!!!
 
  


Reply


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
perl xs error: Bareword found where operator expected at ./Makefile.PL line 10, near nikole Red Hat 1 04-13-2010 02:41 PM
Error installing Date::Calc Perl module on Redhat Enterprise linux gubbu Linux - Newbie 14 12-29-2009 02:12 AM
error compiling a perl module? waelaltaqi Linux - Software 2 03-15-2008 02:12 PM
perl compiling error...... apenguinlinux Programming 5 01-24-2005 04:14 PM
Does anyone have a good step by step on compiling a Kernel? Kramer Linux - Hardware 5 10-06-2003 05:51 PM


All times are GMT -5. The time now is 12:37 PM.

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