LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 07-31-2016, 08:04 AM   #1
Louise.Yosre
LQ Newbie
 
Registered: Jul 2016
Location: Dear Abo Henes , Mallawi , Al Minya ,Egypt
Distribution: kali linux 2016.1
Posts: 11

Rep: Reputation: Disabled
Error While compile perl in chapter 6.40


when i try to configure perl it is output :
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.3.0-kali1-686-pae]
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? [n]
Build Perl for multiplicity? [n]
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/i686-pc-linux-gnu/5.3.0/include-fixed /usr/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?
[-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 -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.
 
Old 07-31-2016, 08:18 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,336
Blog Entries: 1

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Hi Did GDBM go ok

"shared libraries: libgdbm.so.4: "

Check if the GDBM files are there if not try reinstalling gdbm
 
1 members found this post helpful.
Old 07-31-2016, 08:27 AM   #3
Louise.Yosre
LQ Newbie
 
Registered: Jul 2016
Location: Dear Abo Henes , Mallawi , Al Minya ,Egypt
Distribution: kali linux 2016.1
Posts: 11

Original Poster
Rep: Reputation: Disabled
i am reinstall gdbm four times without any error!
 
Old 07-31-2016, 08:55 AM   #4
Louise.Yosre
LQ Newbie
 
Registered: Jul 2016
Location: Dear Abo Henes , Mallawi , Al Minya ,Egypt
Distribution: kali linux 2016.1
Posts: 11

Original Poster
Rep: Reputation: Disabled
the soultion is :
add /usr/lib to ==> /etc/ld.so.conf
 
Old 05-02-2017, 03:34 AM   #5
XinyuLi
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
about this question

hi, friend,

About your question, today I get the same quesiton druing make LFS 8.0.

so I want to know hwo to slove the problem, you can kindly help us, thanks you very much.
 
Old 05-02-2017, 03:40 AM   #6
XinyuLi
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
about this issue

hello, friend

I get a same problem during making lfs 8.0

so I want to know how to solve this problem about you, please help me, thanks
 
Old 05-02-2017, 05:04 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,357

Rep: Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418
solution is posted, see post #4. Does it work for you?
 
Old 09-07-2017, 03:50 PM   #8
dmanjake
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Hi. I'm having this same error configuring Perl in LFA 8.1 chapter 6.40. Perl-5.26.0. The solution offered to add /usr/lib to ==> /etc/ld.so.conf does not work. I have recompiled and reinstalled GDBM, it appears correct and in correct location. Any help would be appreciated. Output of configure is as follows. is as follows.

root:/sources/perl-5.26.0# sh Configure -des -Dprefix=/usr \
> -Dvendorprefix=/usr \
> -Dman1dir=/usr/share/man/man1 \
> -Dman3dir=/usr/share/man/man3 \
> -Dpager="/usr/bin/less -isR" \
> -Duseshrplib \
> -Dusethreads
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]
Operating system name? [linux]
Operating system version? [3.16.0-4-amd64]
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/7.2.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.
 
Old 09-09-2017, 11:52 PM   #9
askhats
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
I have added /usr/lib to /etc/ld.so.conf, but that did not solve the problem. What helped is running command export LD_LIBRARY_PATH=/usr/lib. This way I was able to run Configure without errors. Then I got errors related to bzip2 during make. Redone the chapter 6.21 about bzip2 and finally succeeded with Perl.

Last edited by askhats; 09-10-2017 at 12:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CLFS 3.0.0, Chapter 7.6. Shadow-4.2.1 compile error freshbash Linux From Scratch 4 08-07-2015 08:14 AM
gcc compile error in chapter 6.12 efus Linux From Scratch 4 03-12-2010 11:27 AM
binutils compile error... chapter 5... newbie need help jaydoc Linux From Scratch 7 01-27-2009 04:15 AM
miniperlmain.o error on perl compile nutthick Slackware 1 04-20-2006 11:36 AM
Chapter 6: Perl make error Obi Perrin Linux From Scratch 2 01-09-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration