Re: problem installing PAR::Packer
On Mon, Apr 13, 2009 at 3:33 PM, Memo Garcia wrote: > But Steffen is also correct when he said that "it's strange that it's > failing during linking". Could that missing file be checked previously? In theory :) But there's not enough information in Perl's Config.pm/Config_heavy.pl do to that. Note that PAR::Packer is an unusual customer here - linking to libperl isn't necessary for building any Perl modules (XS or generated by Swig etc). Only applications embedding a Perl interpreter (e.g. vim or Apache mod_perl) need to do that. PAR::Packer already tries second guessing how your perl was built/installed, but looking for libperl*.so would simply mean to re-implement your platform linker's library search algorithm. Cheers, Roderich
Re: problem installing PAR::Packer
Thank you for your help. You where right, installing perl development package was the solution. All works fine after installing libperl-dev. But Steffen is also correct when he said that "it's strange that it's failing during linking". Could that missing file be checked previously? Anyway, tanks again for your help. sincerely, Memo Garcia S. memo.garcia...@gmail.com On Thu, Apr 9, 2009 at 3:41 AM, Roderich Schupp < roderich.sch...@googlemail.com> wrote: > On Thu, Apr 9, 2009 at 9:13 AM, Steffen Mueller wrote: > > Memo Garcia wrote: > >> cc main.o my_par_pl.o -s -Wl,-E -L/usr/local/lib > >> -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -o ./par > >> /usr/bin/ld: cannot find -lperl > > The solution to your problem is probably to install a missing package. > > It's strange that it's failing during linking. I'd expect it to be > > missing perl headers. Right now, I have no Ubuntu to check, but have a > > look at the base perl packages that aren't installed. You definitely > > need libperl-dev or so. > > Steffen is correct, you need to install package libperl-dev on Ubuntu or > Debian. > > In general, reasons for "cannot find -lperl" can be: > > - Your perl executable (e.g. /usr/bin/perl) was linked statically, > hence there might no > libperl.a or libperl.so on your system at all > (unless you install some "perl development" package) > > - Your perl executable _was_ linked dynamically, but the shared > library is called > something like /usr/lib/libperl.so.5.10 (i.e. the internal name of > the shared library > is used as the filename) - this is standard practise on modern *nix > systems. > In this setup, you would use a symlink /usr/lib/libperl.so -> > /usr/lib/libperl.so.5.10 > to link against this shared library (corresponding argument for the linker > is the above "-lperl"). Since this symlink is needed for development only, > it might also be in a separate "perl development" package > > Cheers, Roderich >
Re: problem installing PAR::Packer
On Thu, Apr 9, 2009 at 9:13 AM, Steffen Mueller wrote: > Memo Garcia wrote: >> cc main.o my_par_pl.o -s -Wl,-E -L/usr/local/lib >> -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -o ./par >> /usr/bin/ld: cannot find -lperl > The solution to your problem is probably to install a missing package. > It's strange that it's failing during linking. I'd expect it to be > missing perl headers. Right now, I have no Ubuntu to check, but have a > look at the base perl packages that aren't installed. You definitely > need libperl-dev or so. Steffen is correct, you need to install package libperl-dev on Ubuntu or Debian. In general, reasons for "cannot find -lperl" can be: - Your perl executable (e.g. /usr/bin/perl) was linked statically, hence there might no libperl.a or libperl.so on your system at all (unless you install some "perl development" package) - Your perl executable _was_ linked dynamically, but the shared library is called something like /usr/lib/libperl.so.5.10 (i.e. the internal name of the shared library is used as the filename) - this is standard practise on modern *nix systems. In this setup, you would use a symlink /usr/lib/libperl.so -> /usr/lib/libperl.so.5.10 to link against this shared library (corresponding argument for the linker is the above "-lperl"). Since this symlink is needed for development only, it might also be in a separate "perl development" package Cheers, Roderich
Re: problem installing PAR::Packer
Hi, Memo Garcia wrote: > I'm having problems installing PAR::Packer 0.991 using cpan. > When trying to compile x, I get the following message: > > cc main.o my_par_pl.o -s -Wl,-E -L/usr/local/lib > -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -o ./par > /usr/bin/ld: cannot find -lperl > > I'm installing in a Ubuntu system with perl v5.10.0 > > I'll appreciate any help that you can give me. please direct your support requests at the PAR mailing list and not to me privately. There's people on the list who know more about PAR than I do. I added the list to CC. The solution to your problem is probably to install a missing package. It's strange that it's failing during linking. I'd expect it to be missing perl headers. Right now, I have no Ubuntu to check, but have a look at the base perl packages that aren't installed. You definitely need libperl-dev or so. Best regards, Steffen