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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-06-2002, 04:03 AM
|
#1
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Rep:
|
Just starting out and already have a problem --help
I am trying to install bash-2.05a and already have a problem. I am following the book at this point word for word and when I try and install bash i get this error during the make stage of it.
/usr/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [bash] Error 1
I know I have both libncurses and libcurses and ran the link command that is mentioned in the book.
I will search the forum and mailing list archives to see what I can find, I just thought that I would post here too.
Thanks,
Cyris
|
|
|
04-06-2002, 04:42 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
What's the mother hen distro?
Also, if you don't link to curses, it isn't going to matter much as you're going to recompile bash and everything else anyway after you compile glibc.
Cheers,
Finegan
|
|
|
04-06-2002, 10:43 AM
|
#3
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
I am using Mandrake 8.2 as the host.
So what you are saying is to just go on and continue with the build of (Shibby Linux) of my distro and worry about it when I finish with glibc.
Also, you said something about linking to curses. I ran the following command before tried to install bash
cd /usr/lib &&
ln -s linncurses.a libcurses.a
****************************************
Also, what is the difference in libcurses.so and libcurses.a. I was just checking in the /usr/lib directory and noticed that I have libcurses.so and libncurses.so instead the .a versions.
Also, (last one) I am rather new to this linux thing altogether and just want to verify what I am seeing. Does the following mean that the two are linked together.
libcurses.so -> libncurses.so.5.2*
that is what I see pertaining to libcurses/libncurses when I do a ls -l | more in the /usr/lib dir.
Thanks for everyones help. This is going to be so awesome when I get it finished.
cyris
|
|
|
04-06-2002, 10:45 AM
|
#4
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
Sorry about taking so long to get back about your question, I had to get some sleep.
|
|
|
04-06-2002, 03:13 PM
|
#5
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Quote:
Originally posted by cyris
I am using Mandrake 8.2 as the host.
So what you are saying is to just go on and continue with the build of (Shibby Linux) of my distro and worry about it when I finish with glibc.
Also, you said something about linking to curses. I ran the following command before tried to install bash
cd /usr/lib &&
ln -s linncurses.a libcurses.a
****************************************
Also, what is the difference in libcurses.so and libcurses.a. I was just checking in the /usr/lib directory and noticed that I have libcurses.so and libncurses.so instead the .a versions.
Also, (last one) I am rather new to this linux thing altogether and just want to verify what I am seeing. Does the following mean that the two are linked together.
libcurses.so -> libncurses.so.5.2*
that is what I see pertaining to libcurses/libncurses when I do a ls -l | more in the /usr/lib dir.
Thanks for everyones help. This is going to be so awesome when I get it finished.
cyris
|
The *.so files are different than the *.a files. *.so are dynamic libraries (also known as shared libraries) whereas the *.a files are static libraries and you can't exchange one for another.
If you don't have the *.a files that bash needs (libcurses.a and libncurses.a) then you first need to install the proper package using your distribution's package manager to install the files. The package is usually called ncurses-dev or something like that.
|
|
|
04-06-2002, 05:22 PM
|
#6
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
Thanks for all the replies. This has got to be the first linux related forum that I have posted in and gotten a reply.
I went to freshmeat.net and download the latest ncurses file and I am installing it as we speak.
Wish me luck and I am sure that I will be posting here again, soon.

|
|
|
04-06-2002, 10:35 PM
|
#7
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Quote:
Originally posted by cyris
Thanks for all the replies. This has got to be the first linux related forum that I have posted in and gotten a reply.
|
We try to remember that we once were new to things like this too, like you are at the moment. Back in those days I appreciated quick and accurate help, so we try to give that back to people who need it now.
|
|
|
04-07-2002, 12:40 PM
|
#8
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
Once again I have a simple question. I am sure that I will have figured it out by the time someone has posted, but just thought I would throw this out here for someone else who might have the same question.
I am fixing to install the gcc package and I noticed that it comes with a patch. How/what do I do with this patch ( how do I apply it and do I need to.)

|
|
|
04-07-2002, 12:48 PM
|
#9
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Quote:
Originally posted by cyris
Once again I have a simple question. I am sure that I will have figured it out by the time someone has posted, but just thought I would throw this out here for someone else who might have the same question.
I am fixing to install the gcc package and I noticed that it comes with a patch. How/what do I do with this patch ( how do I apply it and do I need to.)
|
In case you haven't figured it out yet: the patch will be applied when you install GCC. One of the installation commands is applying that patch.
So, just unpack it in $LFS/usr/src (that's where it'll be assumed to be stored according to chapter 2 of the book).
A note: you will see other patches with packages, but they are not always applied. It depends on what the patch fixes. For example after you install gcc in chapter 5, you will get to the gzip package (first there's grep, then gzip). Depending on the Glibc version that your distribution comes with, you may need to apply that patch. But when you reinstall Gzip in chapter 6 you won't see any mention of any patch, because you won't need it there anymore. But the gcc patch is applied in chapter 6 as well.
So, read the installation instructions and the text surrounding it. Any fix, patch, etc. is explained.
|
|
|
04-07-2002, 12:48 PM
|
#10
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
Nevermind, I see where the patch is applied. 
|
|
|
04-08-2002, 09:40 AM
|
#11
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
Starting over
Well, since I am having all kinds of problems trying to get GCC to compile and instlall I am going to start from scratch tonight with the 3.3 version.
Is Mandrake 8.2 a good host OS to start my own Distro. What do you all recommend.
Thanks
|
|
|
04-08-2002, 06:56 PM
|
#12
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Re: Starting over
Quote:
Originally posted by cyris
Well, since I am having all kinds of problems trying to get GCC to compile and instlall I am going to start from scratch tonight with the 3.3 version.
Is Mandrake 8.2 a good host OS to start my own Distro. What do you all recommend.
Thanks
|
I'm not too sure about Mandrake 8.2 right now. I have heard a lot of problems with this release to compile LFS systems with. I don't know if it's just a matter of not having enough packages installed, or something else.
I'll be downloading Mandrake 8.2 myself later on this week if I get a chance, and test build LFS from it.
I personally tested an LFS installation using Mandrake 8.1 which worked just fine (as well as the latest Slackware and Redhat's).
|
|
|
04-09-2002, 09:17 AM
|
#13
|
Member
Registered: Apr 2001
Distribution: Gentoo 1.4_rc3; Slackware 8.1; Red Hat 8.0
Posts: 49
Original Poster
Rep:
|
easy enough. I will install Mandrake 8.1 or Slackware 8.0 tonight and go from there.
Thanks again everybody for your replies.

|
|
|
All times are GMT -5. The time now is 11:10 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
|
|