You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Craig McMillon <lo...@yahoo.com> on 2004/01/20 00:06:29 UTC

/usr/bin/ld: cannot find -lperl(More Info.)

Better yet here's the complete error message: 


commmand:
perl
Makefile.PLAPACHE_SRC=/home/cmcmillo/src/apache_1.3.29
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 




error: 
======== Error Output for sanity check ========
cd ..; cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI
-D_REENTRANT  -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 `./apaci` -I.
-I/usr/lib/perl/5.8.2/CORE    -o helpers/dummy
helpers/dummy.c   -lm -lcrypt -rdynamic 
-L/usr/local/lib
/usr/lib/perl/5.8.2/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl/5.8.2/CORE -lperl -ldl -lm -lpthread
-lc -lcrypt 
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: /usr/bin/ld: cannot find -lperl(More Info.)

Posted by Stas Bekman <st...@stason.org>.
Craig McMillon wrote:
> Sorry about just responding to you Stas and not the
> list(still getting use to that). Anyway yes, your
> suggestions below worked well. Thanks again. 

Great.

Perhaps you want to save some white and lost hair to other kosh users and 
inform the person who created that perl that they need to create that symlink 
and not leave it for users to figure out. Any application embedding perl will 
have this problem, and not only mod_perl.

>>>perl -V
[...]
>>gnulibc_version='2.3.2'
>>           ^^^^^^^^^^^^^^^^
>>find a file called libperl.so.5.8.2
>>
>>probably living under /usr/local/lib/perl
>>
>>find /usr/local/lib/perl | grep libperl.so.5.8.2
>>
>>or /usr/lib/perl5, or anywhere else. I can't figure
>>out where they put it.
>>
>>let's say it's:
>>
>>/usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2
>>
>>add a symlink to it (or check whether it exists
>>already):
>>
>>ln -sf
> /usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2\
>>/usr/local/lib/perl/i386-linux/CORE/libperl.so

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: /usr/bin/ld: cannot find -lperl(More Info.)

Posted by Craig McMillon <lo...@yahoo.com>.
Sorry about just responding to you Stas and not the
list(still getting use to that). Anyway yes, your
suggestions below worked well. Thanks again. 

clm
--- Stas Bekman <st...@stason.org> wrote:
> Craig McMillon wrote:
> > Here it is Thanks
> > 
> > perl -V
> > Summary of my perl5 (revision 5.0 version 8
> subversion
> > 2) configuration:
> >   Platform:
> >     osname=linux, osvers=2.4.22-xfs+ti1211,
> > archname=i386-linux-thread-multi
> >     uname='linux kosh 2.4.22-xfs+ti1211 #1 sat oct
> 25
> > 10:11:37 est 2003 i686 gnu                        
>    
> 
> what is kosh? some new distro?
> 
> >   Linker and Libraries:
> >     ld='cc', ldflags =' -L/usr/local/lib'
> >     libpth=/usr/local/lib /lib /usr/lib
> >     libs=-lgdbm -lgdbm_compat -ldb -ldl -lm
> -lpthread
> > -lc -lcrypt
> >     perllibs=-ldl -lm -lpthread -lc -lcrypt
> >     libc=/lib/libc-2.3.2.so, so=so,
> useshrplib=true,
> > libperl=libperl.so.5.8.2    
> gnulibc_version='2.3.2'
>            ^^^^^^^^^^^^^^^^
> find a file called libperl.so.5.8.2
> 
> probably living under /usr/local/lib/perl
> 
> find /usr/local/lib/perl | grep libperl.so.5.8.2
> 
> or /usr/lib/perl5, or anywhere else. I can't figure
> out where they put it.
> 
> let's say it's:
> 
> /usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2
> 
> add a symlink to it (or check whether it exists
> already):
> 
> ln -sf
>
/usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2\
> /usr/local/lib/perl/i386-linux/CORE/libperl.so
> 
> Now it may find it.
> 
>
__________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/     mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org  
> http://ticketmaster.com
> 
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info:
> http://perl.apache.org/maillist/modperl.html
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: /usr/bin/ld: cannot find -lperl(More Info.)

Posted by Stas Bekman <st...@stason.org>.
Craig McMillon wrote:
> Here it is Thanks
> 
> perl -V
> Summary of my perl5 (revision 5.0 version 8 subversion
> 2) configuration:
>   Platform:
>     osname=linux, osvers=2.4.22-xfs+ti1211,
> archname=i386-linux-thread-multi
>     uname='linux kosh 2.4.22-xfs+ti1211 #1 sat oct 25
> 10:11:37 est 2003 i686 gnu                            

what is kosh? some new distro?

>   Linker and Libraries:
>     ld='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread
> -lc -lcrypt
>     perllibs=-ldl -lm -lpthread -lc -lcrypt
>     libc=/lib/libc-2.3.2.so, so=so, useshrplib=true,
> libperl=libperl.so.5.8.2     gnulibc_version='2.3.2'
           ^^^^^^^^^^^^^^^^
find a file called libperl.so.5.8.2

probably living under /usr/local/lib/perl

find /usr/local/lib/perl | grep libperl.so.5.8.2

or /usr/lib/perl5, or anywhere else. I can't figure out where they put it.

let's say it's:

/usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2

add a symlink to it (or check whether it exists already):

ln -sf /usr/local/lib/perl/i386-linux/CORE/libperl.so.5.8.2\
/usr/local/lib/perl/i386-linux/CORE/libperl.so

Now it may find it.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: /usr/bin/ld: cannot find -lperl(More Info.)

Posted by Craig McMillon <lo...@yahoo.com>.
Here it is Thanks

perl -V
Summary of my perl5 (revision 5.0 version 8 subversion
2) configuration:
  Platform:
    osname=linux, osvers=2.4.22-xfs+ti1211,
archname=i386-linux-thread-multi
    uname='linux kosh 2.4.22-xfs+ti1211 #1 sat oct 25
10:11:37 est 2003 i686 gnu                            
                                                      
 
linux '
    config_args='-Dusethreads -Duselargefiles
-Dccflags=-DDEBIAN -Dcccdlflags=-f                    
                                                      
         
PIC -Darchname=i386-linux -Dprefix=/usr
-Dprivlib=/usr/share/perl/5.8.2 -Darchli              
                                                      
               
b=/usr/lib/perl/5.8.2 -Dvendorprefix=/usr
-Dvendorlib=/usr/share/perl5 -Dvendora                
                                                      
             
rch=/usr/lib/perl5 -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl/5.8.2                 
                                                      
            
 -Dsitearch=/usr/local/lib/perl/5.8.2
-Dman1dir=/usr/share/man/man1 -Dman3dir=/u            
                                                      
                 
sr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1
-Dsiteman3dir=/usr/local/man                          
                                                      
   
/man3 -Dman1ext=1 -Dman3ext=3perl
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh         
                                                      
                     
-Uusesfio -Uusenm -Duseshrplib
-Dlibperl=libperl.so.5.8.2 -Dd_dosuid -des'
    hint=recommended, useposix=true,
d_sigaction=define
    usethreads=define use5005threads=undef
useithreads=define usemultiplicity=de                 
                                                      
            
fine
    useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
    use64bitint=undef use64bitall=undef
uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -                        
                                                      
     
fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS               
                                                      
              
=64',
    optimize='-O3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-stric               
                                                      
              
t-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3.2 (Debian)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=1234
    d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize                    
                                                      
         
=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread
-lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=true,
libperl=libperl.so.5.8.2
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic'
    cccdlflags='-fPIC', lddlflags='-shared
-L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_                        
                                                      
     
CONTEXT
  Built under linux
  Compiled at Nov 15 2003 17:52:08
  @INC:
    /etc/perl
    /usr/local/lib/perl/5.8.2
    /usr/local/share/perl/5.8.2
    /usr/lib/perl5
    /usr/share/perl5
    /usr/lib/perl/5.8.2
    /usr/share/perl/5.8.2
    /usr/local/lib/site_perl


clm
--- Stas Bekman <st...@stason.org> wrote:
> Craig McMillon wrote:
> > Better yet here's the complete error message: 
> > 
> > 
> > commmand:
> > perl
> >
>
Makefile.PLAPACHE_SRC=/home/cmcmillo/src/apache_1.3.29
> > DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 
> > 
> > error: 
> > ======== Error Output for sanity check ========
> > cd ..; cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI
> > -D_REENTRANT  -DTHREADS_HAVE_PIDS -DDEBIAN
> > -fno-strict-aliasing -I/usr/local/include
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> > -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT
> > -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
> > -I/usr/local/include -D_LARGEFILE_SOURCE
> > -D_FILE_OFFSET_BITS=64 `./apaci` -I.
> > -I/usr/lib/perl/5.8.2/CORE    -o helpers/dummy
> > helpers/dummy.c   -lm -lcrypt -rdynamic 
> > -L/usr/local/lib
> > /usr/lib/perl/5.8.2/auto/DynaLoader/DynaLoader.a
> > -L/usr/lib/perl/5.8.2/CORE -lperl -ldl -lm
> -lpthread
> > -lc -lcrypt 
> > /usr/bin/ld: cannot find -lperl
> > collect2: ld returned 1 exit status
> > make: *** [dummy] Error 1
> > ============= End of Error Report =============
> 
> That's much better, Craig. At least now we know what
> you are trying to do.
> 
> Please post the output of:
> 
> perl -V
> 
>
__________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/     mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org  
> http://ticketmaster.com
> 
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info:
> http://perl.apache.org/maillist/modperl.html
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: /usr/bin/ld: cannot find -lperl(More Info.)

Posted by Stas Bekman <st...@stason.org>.
Craig McMillon wrote:
> Better yet here's the complete error message: 
> 
> 
> commmand:
> perl
> Makefile.PLAPACHE_SRC=/home/cmcmillo/src/apache_1.3.29
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 
> 
> error: 
> ======== Error Output for sanity check ========
> cd ..; cc  -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI
> -D_REENTRANT  -DTHREADS_HAVE_PIDS -DDEBIAN
> -fno-strict-aliasing -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT
> -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 `./apaci` -I.
> -I/usr/lib/perl/5.8.2/CORE    -o helpers/dummy
> helpers/dummy.c   -lm -lcrypt -rdynamic 
> -L/usr/local/lib
> /usr/lib/perl/5.8.2/auto/DynaLoader/DynaLoader.a
> -L/usr/lib/perl/5.8.2/CORE -lperl -ldl -lm -lpthread
> -lc -lcrypt 
> /usr/bin/ld: cannot find -lperl
> collect2: ld returned 1 exit status
> make: *** [dummy] Error 1
> ============= End of Error Report =============

That's much better, Craig. At least now we know what you are trying to do.

Please post the output of:

perl -V

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html