[SOLVED] Can't configure Perl in LFS-SVN (Chapter 5.27). -lgdbm not found
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.
Can't configure Perl in LFS-SVN (Chapter 5.27). -lgdbm not found
Hi,
I'm repeatedly running into this Perl configure error-
Code:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgdbm
collect2: ld returned 1 exit status
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.
I've never experienced this problem before. Isn't Perl supposed to compile fine with GDBM not installed (or any other db for that matter during this chapter)? I'm using LFS-SVN-20090819. Please advise.
I know, but the current stable builds onexactly the same packages as used by the current devel version. In fact LFS-6.5 went stable on the 19th of this month. I don't think this is any reason for the configure to fail.
My bad. Didn't pay close enough attention to the release dates. But I decided to go for the stable release an still get the same error, although the build process is exactly the same for the devel version. Dunno what I'm doing wrong. I tried using -Dnoextensions flag, but Perl seems to ignore it (or maybe it isn't a valid option). Also, is gdbm a critical dependency for installing Perl? I thought it just gave a warning and continued, if it didn't find a library, instead of exiting with a fatal error. Is there something else I could try? Please advise.
By default, Configure will offer to build every extension which appears
to be supported. For example, Configure will offer to build GDBM_File
only if it is able to find the gdbm library.
To disable certain extensions so that they are not built, use the
-Dnoextensions=... and -Donlyextensions=... options. They both accept
a space-separated list of extensions. The extensions listed in
C<noextensions> are removed from the list of extensions to build, while
the C<onlyextensions> is rather more severe and builds only the listed
extensions. The latter should be used with extreme caution since
certain extensions are used by many other extensions and modules:
examples of such modules include Fcntl and IO. The order of processing
these options is first C<only> (if present), then C<no> (if present).
Of course, you may always run Configure interactively and select only
the extensions you want.
If you want to build Perl without any extensions, you might try "-Donlyextensions=".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.