Just starting out and already have a problem --help
Linux From ScratchThis 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.
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.
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.
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.
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.
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.
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.)
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.