Re: [lfs-support] How to know how many packages are installed?
On Wed, 31 Oct 2012 23:12:22 + Ken Moffat wrote: > On Wed, Oct 31, 2012 at 05:33:23PM -0400, Mario St-Gelais wrote: > > On Wed, 31 Oct 2012 01:04:49 -0700 (PDT) > > gmspro wrote: > > > > > Is there any way to know how many packages are installed? > > > Is it possible to know if a package is installed or not? > > > > > > Thanks. > > > > > > > I am very new to LFS. I wrote a very complex script I called wg :P: > > > > #!/bin/bash > > wget $1 > > echo $1>>/sources/wget_log.txt > > > > So I keep a log of what's downloaded. > > > With respect, that doesn't tell you if you have compiled and > installed it, only that you downloaded it. It also might give a > false result if wget fails. In my case, I use 'ls' to see if I > downloaded a package, and hope that I notice any failed downloads > (mostly, I use firefox on a desktop for downloads - I deviate from > the book by NOT building in /sources because for me that is an nfs > mount). > > In LFS people sometimes either forget to install a package, or > accidentally jump a page and skip a package. There are many ways > of recording that a *script* completed, but we always tell people to > build things in LFS _by_hand_ for at least the first time. When you > understand how it all fits together, creating scripts which suit > your own way of working is the right thing to do. > > Typically, you will want to write a 'stamp' file somewhere to show > that a package has been built and installed. > > ĸen > -- > das eine Mal als Tragödie, das andere Mal als Farce > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page I agree Ken. This was my quick and dirty way to keep track of where I was when I installed LFS for the first time few weeks ago. Of course downloading does not mean installed but I disciplined myself to update the wget_log.txt if I don't install the package. I could certaily improve this two liner script with a time stamp of some sort. Maybe when I want to reinstall again. :) Anyway I very much enjoy LFS so far. Mario -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
Rick Shelton wrote: > How many packages are installed? I don't know. I suppose you can count the > installs in chapter 6. > Is a package installed? Hm, check the chapter related to installing the > package and see if any of the files detailed in the "Contents of" section > exist on your system. Please don't top post. For LFS, 62 packages. For BLFS, about 625 packages. Each package installs one or more programs or libraries. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
On Wed, Oct 31, 2012 at 05:33:23PM -0400, Mario St-Gelais wrote: > On Wed, 31 Oct 2012 01:04:49 -0700 (PDT) > gmspro wrote: > > > Is there any way to know how many packages are installed? > > Is it possible to know if a package is installed or not? > > > > Thanks. > > > > I am very new to LFS. I wrote a very complex script I called wg :P: > > #!/bin/bash > wget $1 > echo $1>>/sources/wget_log.txt > > So I keep a log of what's downloaded. > With respect, that doesn't tell you if you have compiled and installed it, only that you downloaded it. It also might give a false result if wget fails. In my case, I use 'ls' to see if I downloaded a package, and hope that I notice any failed downloads (mostly, I use firefox on a desktop for downloads - I deviate from the book by NOT building in /sources because for me that is an nfs mount). In LFS people sometimes either forget to install a package, or accidentally jump a page and skip a package. There are many ways of recording that a *script* completed, but we always tell people to build things in LFS _by_hand_ for at least the first time. When you understand how it all fits together, creating scripts which suit your own way of working is the right thing to do. Typically, you will want to write a 'stamp' file somewhere to show that a package has been built and installed. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
How many packages are installed? I don't know. I suppose you can count the installs in chapter 6. Is a package installed? Hm, check the chapter related to installing the package and see if any of the files detailed in the "Contents of" section exist on your system. ~ On Wed, Oct 31, 2012 at 3:33 PM, Mario St-Gelais wrote: > On Wed, 31 Oct 2012 01:04:49 -0700 (PDT) > gmspro wrote: > > > Is there any way to know how many packages are installed? > > Is it possible to know if a package is installed or not? > > > > Thanks. > > > > I am very new to LFS. I wrote a very complex script I called wg :P: > > #!/bin/bash > wget $1 > echo $1>>/sources/wget_log.txt > > So I keep a log of what's downloaded. > > > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- Yes, Virginia, there is an awful lot of common sense in the world. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
On Wed, 31 Oct 2012 01:04:49 -0700 (PDT) gmspro wrote: > Is there any way to know how many packages are installed? > Is it possible to know if a package is installed or not? > > Thanks. > I am very new to LFS. I wrote a very complex script I called wg :P: #!/bin/bash wget $1 echo $1>>/sources/wget_log.txt So I keep a log of what's downloaded. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs-support Digest, Vol 2711, Issue 1
On Wed, Oct 31, 2012 at 05:42:04PM +, Ken Moffat wrote: > > In pass2 binutils you should be building with the pass1 gcc, which > ought to mean the build system type is x86_64-lfs-linux-gnu. > Instead, you seem to be using your host's compiler. I suppose that > breaks because either or both of the pass1 ar and ranlib are being > used. Doh! I should have looked at my own logs - that looks fine, and the lfs gcc is correctly found when it tests for gcc. My apologies. This changes my questions - > > Your original post showed you were setting CC, AR, RANLIB to the > LFS_TGT versions, which is correct. So, please review the > following: > > 1. Are you using fresh source and build directories for pass2 > binutils ? If not, you need to, so just remove the binutils-2.22 > and binutils-build directories, and similarly use fresh directories > each time you build something. > > 2. I'm assuming you correctly set LFS_TGT to x86_64-lfs-linux-gnu ? > Did you perhaps omit it on one of the earlier packages ? > > If everything was build correctly, you should have the following > programs [ just a spot-check that each package has been installed: ] > > binutils pass 1 /tools/bin/x86_64-lfs-linux-gnu-addr2line > > gcc pass 1 /tools/bin/x86_64-lfs-linux-gnu-cpp > > linux headers /tools/include/asm-generic/auxvec.h > > glibc /tools/bin/catchsegv > > Are these all present ? Those points 1. and 2. are still worth checking. > > 3. If everything so far looks good, I don't know what to suggest. > You appear to be telling configure to use CC=$LFS_TGT-gcc but it > is somehow trying to use the regular x86_64-unknown-linux-gnu-gcc. > > Is /tools/bin/gcc a hardlink to x86_64-lfs-linux-gnu-gcc ? You can > find that out with > ls -li /tools/bin/*gcc > (the inode numbers will be identical if it is a hard link, and it > should be a hardlink until you have installed gcc pas 2) > These points are NOT worth checking because in fact it used the correct -lfs- gcc. Instead please try the following as the lfs user: echo 'main(){}' > dummy.c /tools/bin/x86_64-lfs-linux-gnu-gcc dummy.c Do you get any output from this ? If not, did it correctly create a.out this time ? ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] Bugs in BLFS Book
Feuerbacher, Alan wrote: > How can I search the BLFS archives to find corrections? About the only way is to look at the xml sources. http://wiki.linuxfromscratch.org/blfs/browser/trunk/BOOK/pst/sgml/docbook-dsssl.xml Click on the revision log and you can see all changes to the file. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs-support Digest, Vol 2711, Issue 1
On Wed, Oct 31, 2012 at 09:30:45PM +0530, Abhishek Porwal wrote: > Hi William, > First of all thank you on replying. As you said to post the > config.log, here is the complete code from config.log file - > [...] > > configure:2230: checking build system type > configure:2244: result: x86_64-unknown-linux-gnu > configure:2291: checking host system type > configure:2304: result: x86_64-unknown-linux-gnu > configure:2324: checking target system type > configure:2337: result: x86_64-unknown-linux-gnu Please don't top post, it makes it much harder to follow a conversation, and trim what you are replying to. Thanks. In pass2 binutils you should be building with the pass1 gcc, which ought to mean the build system type is x86_64-lfs-linux-gnu. Instead, you seem to be using your host's compiler. I suppose that breaks because either or both of the pass1 ar and ranlib are being used. Your original post showed you were setting CC, AR, RANLIB to the LFS_TGT versions, which is correct. So, please review the following: 1. Are you using fresh source and build directories for pass2 binutils ? If not, you need to, so just remove the binutils-2.22 and binutils-build directories, and similarly use fresh directories each time you build something. 2. I'm assuming you correctly set LFS_TGT to x86_64-lfs-linux-gnu ? Did you perhaps omit it on one of the earlier packages ? If everything was build correctly, you should have the following programs [ just a spot-check that each package has been installed: ] binutils pass 1 /tools/bin/x86_64-lfs-linux-gnu-addr2line gcc pass 1 /tools/bin/x86_64-lfs-linux-gnu-cpp linux headers /tools/include/asm-generic/auxvec.h glibc /tools/bin/catchsegv Are these all present ? 3. If everything so far looks good, I don't know what to suggest. You appear to be telling configure to use CC=$LFS_TGT-gcc but it is somehow trying to use the regular x86_64-unknown-linux-gnu-gcc. Is /tools/bin/gcc a hardlink to x86_64-lfs-linux-gnu-gcc ? You can find that out with ls -li /tools/bin/*gcc (the inode numbers will be identical if it is a hard link, and it should be a hardlink until you have installed gcc pas 2) ĸen -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] corrupted link
On Wed, Oct 31, 2012 at 11:09:52AM -0400, Dave wrote: > While compiling audiofile, this error popped up. > > > undefined reference to symbol 'log10@@GLIBC_2.2.5' > > looks like a corrupted link. how do I fix...where could it have came from? > First, this is the wrong list. Please take any problems with packages which aren't in the LFS book to blfs-support. And I really don't think this indicates a problem with your base LFS system :) Googling for log10@@GLIBC_2.2.5 shows it comes from libm. It looks as if you are using an old version of audiofile, and either glibc-2.15 or 2.16 : there are sundry bug reports in google for packages where libm needed to be added in the CFLAGS or LDFLAGS. Please try the current version (0.3.4, according to BLFS from earlier this week) which is labelled as building on LFS-7.2 without needing any fixes. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] corrupted link
Dave wrote: > While compiling audiofile, this error popped up. > > > undefined reference to symbol 'log10@@GLIBC_2.2.5' > > looks like a corrupted link. how do I fix...where could it have came from? My log has no such error. It's a pretty simple build with only alsa-lib as a dependency. Did you check the md5sum of the source? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] black screen and cursor after installing gdm in blfs
On Wed, Oct 31, 2012 at 10:38 AM, Armin K. wrote: > On 10/31/2012 03:10 AM, James Pinto wrote: > > Hi > > > > I have CONFIG_DRM_I915=y > > CONFIG_DRM_I915_KMS=y > > and still I dont get the shell > > I have attached the new kernel config file and the new Xorg logs in this > > mail and heres the link to download them if the files dint get > > attached.http://www.mediafire.com/?595067t02r0h52z > > > > I have also added the user yo the video group > > > > Regards > > James > > From what I see from Xorg.0.log, you have direct rendering enabled. > > [41.385] (II) AIGLX: enabled GLX_SGI_swap_control and > GLX_MESA_swap_control > [41.385] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer > objects > [41.385] (II) AIGLX: Loaded and initialized i965 > > If you are logging in from gdm, post the > > ~/cache/gdm/session.log (for gdm 3.6 and latter) or > ~/.xsession-errors (for gdm 3.4 and earlier). > > If there's any error in installation, it should be there. > -- > http://linuxfromscratch.org/mailman/listinfo/blfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page > Hi I have gdm 3.4 but I couldnt find either of the below files:- ~/cache/gdm/session.log (for gdm 3.6 and latter) or ~/.xsession-errors (for gdm 3.4 and earlier). Regards -- James Earnest Pinto *Phoenix Fusion* www.phoenixfusion.in -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
[lfs-support] corrupted link
While compiling audiofile, this error popped up. > undefined reference to symbol 'log10@@GLIBC_2.2.5' looks like a corrupted link. how do I fix...where could it have came from? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
On 10/31/2012 04:04 AM, gmspro wrote: > Is there any way to know how many packages are installed? > Is it possible to know if a package is installed or not? > > Thanks. See the page in the LFS book on "Package Management" - http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pkgmgt.html -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page