LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How To Gain Access For lfs User To Comply With 3rd Important Note in LFS Man., Sec. 5 (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-gain-access-for-lfs-user-to-comply-with-3rd-important-note-in-lfs-man-sec-5-a-880622/)

gdawg 05-13-2011 06:19 PM

How To Gain Access For lfs User To Comply With 3rd Important Note in LFS Man., Sec. 5
 
Hi everyone. I downloaded and un-tarred packages (as a regular user) to a new folder in Download. How do I access this file as user lfs? Also I can't locate the patches I downloaded in the Download folder. As the original user I have cd'd to the file that holds the packages and tried to cp them to lfs's Download folder to no avail. Any help will be greatly appreciated. I am stuck at Section 5.3 of LFS 6.8 Manual.

Cheers,

Glen

spiky0011 05-14-2011 12:31 AM

What version are you building 6.7/6.8 You can get a complete tar of all packages for 6.8 here http://www.hotfilesearch.com/downloa...s-6.8.tar.html
And 6.7 here ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/
The easiest way is to download onto a pen drive. Copy to hardrive which you mounted in the begining then untar it. It will create dir sources all packages and patches will be in there

gdawg 05-14-2011 01:37 PM

Thank you spiky0011 for your reply and comments. I'm using version 6.8. I've been using an external hard drive to install LFS. I have a Dell Desktop Inspiron 530S with Win 7, Ubuntu 10.04, PCLinuxOS 2010.12, and Mint 10 installed. I purchased a Seagate Free Agent external hard drive so I can install other Linux Distros. Installing LFS is my first attempt at using the hard drive. I'll try what you've suggested and get back to you. Thanks again.

Cheers,

Glen

spiky0011 05-14-2011 02:25 PM

Are you using the lfs cd as base distro?

gdawg 05-15-2011 12:41 PM

No, I'm using version 6.8 of the manual. The biggest problem I'm now having is switching back and forth between my regular user name and 'lfs' user name. I'm trying this build in Ubuntu 10.04 and it won't allow 'lfs', as regular desktop user, to 'mkdir' nor many other commands that are required for the build of LFS. I'm in section 5.4 of the manual and I can't make a directory for binutils without logging out then back in as a sudo approved user. I've finally managed to get all the downloads untarred and in a directory that 'lfs' user can access. I must be missing something here but I haven't been able to figure this out. Thanks for trying to help.

Cheers,

Glen

spiky0011 05-15-2011 12:59 PM

You might find it easier to use the lfs live cd to build on

gdawg 05-15-2011 08:08 PM

Tried the live cd but didn't get past request for "root" password. I tried several entries to no avail. Went to website for lfs cd and didn't find any reference there or in FAQ. Went back to using the manual and got stuck at 5.4.1. I get the following output:

lfs@daisy:/home/binutils-build$ ../binutils-2.21/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.21/configure: No such file or directory

What am I missing here? Thanks for your help.

spiky0011 05-16-2011 02:37 AM

did u cd into the binutils-build dir before running command

druuna 05-16-2011 03:20 AM

Hi,
Quote:

Originally Posted by gdawg (Post 4357360)
Tried the live cd but didn't get past request for "root" password. I tried several entries to no avail. Went to website for lfs cd and didn't find any reference there or in FAQ.

Which request for "root" password are you talking about? When booting the liveCD no password is asked (message after full boot: press enter to activate virtual console).

Also:
Quote:

lfs@daisy:/home/binutils-build$ ../binutils-2.21/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.21/configure: No such file or directory
This looks wrong. Did you set $LFS to /home?

Don't deviate from the book, especially if this is your first LFS build: $LFS should be set to /mnt/lfs and the sources directory should be $LFS/sources.

Hope this helps.

gdawg 05-16-2011 06:48 PM

spiky0011 - I didn't find a binutils-build directory. Here is the ls-l of binutils:
Quote:

lfs@daisy:/mnt/lfs/sources/Downloads/binutils-2.21/binutils$ ls -l
total 4368
-rw-r--r-- 1 lfs lfs 1200 Sep 4 2009 BRANCHES
-rw-r--r-- 1 lfs lfs 26902 Dec 1 04:03 ChangeLog
-rw-r--r-- 1 lfs lfs 64429 Jan 2 2004 ChangeLog-0001
-rw-r--r-- 1 lfs lfs 68171 Jan 2 2004 ChangeLog-0203
-rw-r--r-- 1 lfs lfs 25967 Jan 16 2006 ChangeLog-2004
-rw-r--r-- 1 lfs lfs 43822 Jan 16 2006 ChangeLog-2005
-rw-r--r-- 1 lfs lfs 18737 Jan 9 2007 ChangeLog-2006
-rw-r--r-- 1 lfs lfs 37362 Jan 2 2008 ChangeLog-2007
-rw-r--r-- 1 lfs lfs 28632 Jan 6 2009 ChangeLog-2008
-rw-r--r-- 1 lfs lfs 44443 Jan 1 2010 ChangeLog-2009
-rw-r--r-- 1 lfs lfs 192258 Dec 5 2003 ChangeLog-9197
-rw-r--r-- 1 lfs lfs 65072 Oct 27 2003 ChangeLog-9899
-rw-r--r-- 1 lfs lfs 10666 Sep 22 2010 MAINTAINERS
-rw-r--r-- 1 lfs lfs 18176 Nov 5 2010 Makefile.am
-rw-r--r-- 1 lfs lfs 54226 Nov 5 2010 Makefile.in
-rw-r--r-- 1 lfs lfs 17175 Nov 5 2010 NEWS
-rw-r--r-- 1 lfs lfs 10886 Jul 14 2009 README
-rw-r--r-- 1 lfs lfs 37075 Nov 5 2010 aclocal.m4
-rw-r--r-- 1 lfs lfs 11497 Oct 29 2010 addr2line.c
-rw-r--r-- 1 lfs lfs 33639 Oct 29 2010 ar.c
-rw-r--r-- 1 lfs lfs 53323 Dec 8 01:39 arlex.c
-rw-r--r-- 1 lfs lfs 2478 Nov 18 2009 arlex.l
-rw-r--r-- 1 lfs lfs 47920 Dec 8 01:39 arparse.c
-rw-r--r-- 1 lfs lfs 2857 Dec 8 01:39 arparse.h
-rw-r--r-- 1 lfs lfs 3255 Sep 2 2009 arparse.y
-rw-r--r-- 1 lfs lfs 9510 Sep 2 2009 arsup.c
-rw-r--r-- 1 lfs lfs 1539 Sep 2 2009 arsup.h
-rw-r--r-- 1 lfs lfs 1636 Nov 5 2010 bin2c.c
-rw-r--r-- 1 lfs lfs 3573 Sep 15 2010 binemul.c
-rw-r--r-- 1 lfs lfs 2464 Sep 15 2010 binemul.h
-rw-r--r-- 1 lfs lfs 14640 Oct 5 2010 bucomm.c
-rw-r--r-- 1 lfs lfs 2271 Sep 2 2009 bucomm.h
-rw-r--r-- 1 lfs lfs 2067 Sep 2 2009 budbg.h
-rw-r--r-- 1 lfs lfs 11046 Jul 5 2007 coffdump.c
-rw-r--r-- 1 lfs lfs 17790 Dec 11 2009 coffgrok.c
-rw-r--r-- 1 lfs lfs 4848 Sep 2 2009 coffgrok.h
-rw-r--r-- 1 lfs lfs 6473 Nov 5 2010 config.in
-rwxr-xr-x 1 lfs lfs 484213 Nov 5 2010 configure
-rw-r--r-- 1 lfs lfs 3409 Sep 2 2009 configure.com
-rw-r--r-- 1 lfs lfs 11513 Apr 22 2010 configure.in
-rw-r--r-- 1 lfs lfs 740 Mar 14 2009 configure.tgt
-rw-r--r-- 1 lfs lfs 8266 Nov 25 2007 cxxfilt.c
-rw-r--r-- 1 lfs lfs 87170 Sep 10 2009 debug.c
-rw-r--r-- 1 lfs lfs 30019 Sep 10 2009 debug.h
-rw-r--r-- 1 lfs lfs 55436 Dec 8 01:39 deflex.c
-rw-r--r-- 1 lfs lfs 2547 Oct 23 2009 deflex.l
-rw-r--r-- 1 lfs lfs 55850 Dec 8 01:39 defparse.c
-rw-r--r-- 1 lfs lfs 3337 Dec 8 01:39 defparse.h
-rw-r--r-- 1 lfs lfs 4370 Oct 23 2009 defparse.y
-rw-r--r-- 1 lfs lfs 257 Jun 4 2009 dep-in.sed
-rw-r--r-- 1 lfs lfs 121641 Oct 30 2010 dlltool.c
-rw-r--r-- 1 lfs lfs 1615 Oct 23 2009 dlltool.h
-rw-r--r-- 1 lfs lfs 34757 Jul 15 2010 dllwrap.c
drwxr-xr-x 2 lfs lfs 4096 May 15 10:51 doc
-rw-r--r-- 1 lfs lfs 149072 Oct 8 2010 dwarf.c
-rw-r--r-- 1 lfs lfs 4391 Oct 8 2010 dwarf.h
-rw-r--r-- 1 lfs lfs 34400 Aug 23 2010 elfedit.c
-rw-r--r-- 1 lfs lfs 8591 Oct 9 2008 embedspu.sh
-rw-r--r-- 1 lfs lfs 4743 Sep 17 2010 emul_aix.c
-rw-r--r-- 1 lfs lfs 1084 Sep 2 2009 emul_vanilla.c
-rw-r--r-- 1 lfs lfs 6173 Jul 5 2007 filemode.c
-rw-r--r-- 1 lfs lfs 191783 Apr 9 2010 ieee.c
-rw-r--r-- 1 lfs lfs 906 Jul 5 2007 is-ranlib.c
-rw-r--r-- 1 lfs lfs 917 Jul 5 2007 is-strip.c
-rw-r--r-- 1 lfs lfs 1791 Jan 12 2010 makefile.vms
-rw-r--r-- 1 lfs lfs 950 Jul 5 2007 maybe-ranlib.c
-rw-r--r-- 1 lfs lfs 958 Jul 5 2007 maybe-strip.c
-rw-r--r-- 1 lfs lfs 10579 Jul 5 2007 mclex.c
-rw-r--r-- 1 lfs lfs 60479 Dec 8 01:39 mcparse.c
-rw-r--r-- 1 lfs lfs 3069 Dec 8 01:39 mcparse.h
-rw-r--r-- 1 lfs lfs 8563 Jul 5 2007 mcparse.y
-rw-r--r-- 1 lfs lfs 64140 Dec 11 2009 nlmconv.c
-rw-r--r-- 1 lfs lfs 2785 Sep 2 2009 nlmconv.h
-rw-r--r-- 1 lfs lfs 70086 Dec 8 01:39 nlmheader.c
-rw-r--r-- 1 lfs lfs 3620 Dec 8 01:39 nlmheader.h
-rw-r--r-- 1 lfs lfs 21200 Oct 8 2010 nlmheader.y
-rw-r--r-- 1 lfs lfs 44206 Oct 8 2010 nm.c
-rw-r--r-- 1 lfs lfs 906 Jul 5 2007 not-ranlib.c
-rw-r--r-- 1 lfs lfs 917 Jul 5 2007 not-strip.c
-rw-r--r-- 1 lfs lfs 111883 Oct 29 2010 objcopy.c
-rw-r--r-- 1 lfs lfs 92287 Nov 2 2010 objdump.c
drwxr-xr-x 2 lfs lfs 4096 May 15 10:51 po
-rw-r--r-- 1 lfs lfs 62815 Dec 11 2009 prdbg.c
-rwxr-xr-x 1 lfs lfs 899 Sep 2 2009 ranlib.sh
-rw-r--r-- 1 lfs lfs 18448 Sep 2 2009 rclex.c
-rw-r--r-- 1 lfs lfs 137761 Dec 8 01:39 rcparse.c
-rw-r--r-- 1 lfs lfs 6969 Dec 8 01:39 rcparse.h
-rw-r--r-- 1 lfs lfs 39976 Sep 2 2009 rcparse.y
-rw-r--r-- 1 lfs lfs 21251 Sep 2 2009 rdcoff.c
-rw-r--r-- 1 lfs lfs 10782 Apr 9 2010 rddbg.c
-rw-r--r-- 1 lfs lfs 352569 Nov 2 2010 readelf.c
-rw-r--r-- 1 lfs lfs 5457 Sep 2 2009 rename.c
-rw-r--r-- 1 lfs lfs 55972 Jun 26 2010 resbin.c
-rw-r--r-- 1 lfs lfs 21257 Sep 2 2009 rescoff.c
-rw-r--r-- 1 lfs lfs 83410 Dec 11 2009 resrc.c
-rw-r--r-- 1 lfs lfs 20256 Dec 11 2009 resres.c
-rwxr-xr-x 1 lfs lfs 1624 Jul 5 2007 sanity.sh
-rw-r--r-- 1 lfs lfs 14548 Sep 10 2009 size.c
-rw-r--r-- 1 lfs lfs 41085 Dec 11 2009 srconv.c
-rw-r--r-- 1 lfs lfs 134584 Apr 9 2010 stabs.c
-rw-r--r-- 1 lfs lfs 10 May 3 1999 stamp-h.in
-rw-r--r-- 1 lfs lfs 16597 Nov 10 2009 strings.c
-rw-r--r-- 1 lfs lfs 3834 Mar 18 2009 sysdep.h
-rw-r--r-- 1 lfs lfs 12284 Dec 11 2009 sysdump.c
-rw-r--r-- 1 lfs lfs 51177 Dec 8 01:39 sysinfo.c
-rw-r--r-- 1 lfs lfs 2376 Dec 8 01:39 sysinfo.h
-rw-r--r-- 1 lfs lfs 8234 Dec 11 2009 sysinfo.y
-rw-r--r-- 1 lfs lfs 48976 Dec 8 01:39 syslex.c
-rw-r--r-- 1 lfs lfs 2022 Nov 18 2009 syslex.l
-rw-r--r-- 1 lfs lfs 15331 Jun 25 2003 sysroff.info
drwxr-xr-x 5 lfs lfs 4096 May 15 10:51 testsuite
-rw-r--r-- 1 lfs lfs 27578 Jun 11 2010 unwind-ia64.c
-rw-r--r-- 1 lfs lfs 1335 Sep 2 2009 unwind-ia64.h
-rw-r--r-- 1 lfs lfs 1616 Jan 8 2010 version.c
-rw-r--r-- 1 lfs lfs 26763 Jul 5 2007 windint.h
-rw-r--r-- 1 lfs lfs 30583 Nov 16 2009 windmc.c
-rw-r--r-- 1 lfs lfs 2686 Jul 5 2007 windmc.h
-rw-r--r-- 1 lfs lfs 32254 Jun 17 2010 windres.c
-rw-r--r-- 1 lfs lfs 5816 Jul 5 2007 windres.h
-rw-r--r-- 1 lfs lfs 21732 Sep 2 2009 winduni.c
-rw-r--r-- 1 lfs lfs 4439 Sep 2 2009 winduni.h
-rw-r--r-- 1 lfs lfs 56559 Dec 11 2009 wrstabs.c
Thanks for your help.

gdawg 05-16-2011 07:38 PM

Hi druuna - I've been restarting and booting using the live LFS cd. Here is the $LFS echo returns:

Code:

lfs@daisy:/mnt/lfs/sources/Downloads$ echo $LFS
/mnt/lfs
lfs@daisy:/mnt/lfs/sources/Downloads$ echo $LFS/sources
/mnt/lfs/sources

Does that indicate that the variable $LFS is set correctly? I've noticed that the"lfs-sources" list in the cd lists different (earlier) revisions of the packages that were downloaded. ie. /binutils-2.17 vs /binutils-2.21?? Thanks a lot for your help. When I boot the computer using the live cd it asks for a root password ( root[ # ] = )??

druuna 05-17-2011 01:38 AM

Hi,
Quote:

Originally Posted by gdawg (Post 4358304)
Hi druuna - I've been restarting and booting using the live LFS cd. Here is the $LFS echo returns:

Code:

lfs@daisy:/mnt/lfs/sources/Downloads$ echo $LFS
/mnt/lfs
lfs@daisy:/mnt/lfs/sources/Downloads$ echo $LFS/sources
/mnt/lfs/sources

Does that indicate that the variable $LFS is set correctly?

Yes that is correct.

Quote:

I've noticed that the"lfs-sources" list in the cd lists different (earlier) revisions of the packages that were downloaded. ie. /binutils-2.17 vs /binutils-2.21??
Some of the LFS liveCD come with the source files. But be careful: The sources on the cd are for LFS version 6.3!! You probably do not want to use those (very old version), use the packages you downloaded (probably LFS 6.8, latest stable version).

Quote:

When I boot the computer using the live cd it asks for a root password ( root[ # ] = )??
Like I stated before: It does _not_ ask for a password!!

About the (binutils-)build directories: As stated in the book, you need to create them (commands are in the book) from within the untarred package. I.e.:
Code:

cd $LFS/sources
tar zxf package.version.tar.gz
cd package.version
# now create the build dir
mkdir ../package-build
cd ../package-build

Hope this helps.

gdawg 05-17-2011 02:58 PM

Hi druuna - Thanks for your response. I'm going back to the beginning of the manual and will study all before proceeding. Originally, I started at Partitioning Section and went forward. I'm still confused by the "root [~]# =" in the cd. If I don't make an entry there and just press "enter" it doesn't move on. Thanks again for your help.

Kind regards,

Glen

spiky0011 05-17-2011 03:12 PM

Do you just boot from cd let it load then it should offer some settings then you end up with root# There is no password as mentioned

gdawg 05-17-2011 06:38 PM

Thank you druuna and spiky0011 for your patience. Man, I must be really slow on the uptake. Finally figured out that "root[~]#" was a prompt and not a request for a password. I'm currently practicing un-tarring and installing some sample programs as suggested near beginning of manual/guide. Thanks for hanging with me.

Kind regards,

Glen


All times are GMT -5. The time now is 03:59 PM.