[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.
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.
Can't configure Perl in LFS-SVN (Chapter 5.27). -lgdbm not found
I'm repeatedly running into this Perl configure error-
/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=".