Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
|
05-02-2017, 03:57 AM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 6
Rep:
|
LFS8.0 Error 6.40 perl-5.24, URGENT
root:/sources/perl-5.24.1# sh Configure -des -Dprefix=/usr -Dvendorprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dpager="/usr/bin/less -isR" -Duseshrplib -Dusethreads n
First let's make sure your kit is complete. Checking...
Would you like to see the instructions? [n]
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
aix dragonfly irix_4 nonstopux stellar
aix_3 dynix irix_5 openbsd sunos_4_0
aix_4 dynixptx irix_6 opus sunos_4_1
altos486 epix irix_6_0 os2 super-ux
amigaos esix4 irix_6_1 os390 svr4
atheos fps isc os400 svr5
aux_3 freebsd isc_2 posix-bc ti1500
bitrig freemint linux-android powerux ultrix_4
bsdos genix linux qnx umips
catamount gnu lynxos riscos unicos
convexos gnukfreebsd midnightbsd sco unicosmk
cxux gnuknetbsd mips sco_2_3_0 unisysdynix
cygwin greenhills mirbsd sco_2_3_1 utekv
darwin haiku mpc sco_2_3_2 uwin
dcosx hpux ncr_tower sco_2_3_3 vos
dec_osf i386 netbsd sco_2_3_4
dos_djgpp interix newsos4 solaris_2
Which of these apply, if any? [linux]
You appear to have ELF support. I'll try to use it for dynamic loading.
If dynamic loading doesn't work, read hints/linux.sh for further information.
Operating system name? [linux]
Operating system version? [4.8.0-49-generic]
Installation prefix to use? (~name ok) [/usr]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr]
Getting the current patchlevel...
Build a threading Perl? [y]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/usr/local/lib /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include-fixed /usr/lib /tools/lib/../lib /tools/lib /lib]
What is the file extension used for shared libraries? [so]
Make shared library basenames unique? [n]
Build Perl for SOCKS? [n]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use?
[-lpthread -lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc -lgdbm_compat]
What optimizer/debugger flag should be used? [-O2]
Any additional cc flags?
[-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[ -fstack-protector-strong -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:
#include <stdio.h>
int main() { printf("Ok\n"); return(0); }
I used the command:
cc -o try -O2 -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -fstack-protector-strong -L/usr/local/lib try.c -lpthread -lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
./try
and I got the following output:
./try: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory
The program compiled OK, but exited with status 127.
You have a problem. Shall I abort Configure [y]
Ok. Stopping Configure.
why libgdbm.so.4 can not open, I have installed the gdbm1.13.
|
|
|
05-02-2017, 06:34 AM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,910
|
Have you checked that the libraries are actually in place? It's easy when doing a build to forget the make install step. I've done that on occasion. What's the output of ls -l libgdbm.so*?
By the way, the book recommends GDBM-1.12.
|
|
|
05-02-2017, 06:48 AM
|
#3
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Now that you've received a reply, XinyuLi, can I point out that we are all volunteers here on LQ so using the word "URGENT" in your thread title not only will have no effect but comes over as slightly rude.
Also, please enclose any code or output in CODE tags (use the # button on the advanced toolbar) to make it more readable.
Many thanks, welcome to LQ, and I hope you resolve your problem.
|
|
|
05-02-2017, 09:35 AM
|
#4
|
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Arch
Posts: 10,021
|
As above about code tags, but I did notice that you have chosen to add an additional switch (-Dusethreads n), so as you have deviated from the book it really is your choice and so are the unforseen side effects. So along with using a different version of gdbm than the recommended, my suggestion would be go back and follow the instructions until you are sure you are in a position to make changes as you see fit
due to your knowledge of what can and cannot be successfully altered.
|
|
|
All times are GMT -5. The time now is 10:53 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
|
|