Hey, things seems to progress during my night (I'm in France) ! Thks a lot !
So is there something to do to temporary solve this problem ?
That's mean how can I assign LD_LIBRARY PATH to a good value ? and which value ?


Lasconic

the.noonings a écrit :

No, it is not. I made the test file below into an executable on Linux, and
ran it using the shown commands. As you can see, it is not defined. The
script must be using the machine's libperl.so, and not the one in the
cache.


pp -o hello.out hello.pl
./hello.out
LD_LIBRARY_PATH is : not defined
Hello

-------------------paste of hello.pl
#!/usr/bin/perl -w

use strict;
print ("LD_LIBRARY_PATH is : ");

if (defined($ENV{LD_LIBRARY_PATH})) {
 print ($ENV{LD_LIBRARY_PATH}, "\n");
} else {
 print ("not defined\n");
}

print "Hello\n";
---------------end paste


----- Original Message ----- From: "Joe Landman" <[EMAIL PROTECTED]>
To: "the.noonings" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 6:58 PM
Subject: Re: pp bug





I wonder if LD_LIBRARY_PATH variable has been set to point to the cache
path for that library.

On Tue, 2004-04-13 at 18:35, the.noonings wrote:


Here libperl.so should have been unpacked from hello.out into the cache

directory. Can you see one there? Yes, I can.

rm -rf  /tmp/par-malcolm/cach*
cd
pp -o help.out help.pl
cd /tmp/par-malcolm/
find . -print | grep libperl.so
./cache-4d1310b6b4806b7115786bccc2cc38907400b95a/libperl.so


----- Original Message ----- From: "Alan Stewart" <[EMAIL PROTECTED]> To: "Nicolas Froment" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "the.noonings" <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 4:03 PM Subject: Re: Re : Help ! libperl


On 13 Apr 2004 at 17:54, Nicolas Froment wrote:




is it to say that I can't hope having an independant exec ? ? ? :'-(
or maybe it's just a minor correction

You can always hope Independent standalone packages is PAR's primary
goal.


the.noonings a écrit :



I think there is a bug here.


I agree. This looks like a bug.



2) Downloaded PAR-0.80_99
3) perl Makefile.PL
4) make
5) make test
6) su root
7) make install
8) exit to normal login prompt
9) pp -o hello.out hello.pl

Since you did not use the "-d" option, the libperl.so should have been
included in the
static.c as part of the binary frontend of hello.out. As I said, I don't
have Linux,
but the Makefile.PL does the same thing with libperl.so that it does

with


perlxx.dll.



10) su root

11) hide libperl.so
   mv /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so.orig

12) ./hello.out
./hello.out: error while loading shared libraries: libperl.so: cannot

open


shared object file: No such file or directory

Here libperl.so should have been unpacked from hello.out into the cache
directory. Can
you see one there?

On a win32 system at this point, the perlxx.dll (equivalent of

libperl.so)


is in the
cache dir. BTW, no perl print statements will work 'cause perl isn't

running


yet.

Alan Stewart









Reply via email to