Le jeu 10/07/2003 à 17:34, ced@carios2.ca.boeing.com a écrit :
> > Hello all, I am running Redhat 7.2 (kernel 2.4.18-3) with gcc 2.96 and am
> > trying to use JPL to integrate some Java and perl code using Java1.4.1_01.
>
> > and answer all the usual questions with the default answers (mostly, I did
> > say
> > yes to building libperl.so).
>
> > first setvars will tell me that it can't find the program perl5.006001.
>
> > so I create a symbolic link from perl to perl5.006001 and run it again.
>
> > while building I get the message:
>
> > cc: unrecognized option `-R/usr/local/perl-5.6.1/jpl/lib/i686-linux'
>
> > then it installs the Sample program and builds it. When it then goes to
> > test the sample, I get the message:
>
> > An unexpected exception has been detected in native code outside the VM.
> > Unexpected Signal : 11 occurred at PC=0x4C715FAB
> > Function=(null)+0x4C715FAB
> > Library=/usr/local/lib/perl5/5.6.1/i686-linux/CORE/libperl.so
>
Welcome to the Club! ;)
I just succeeded today installing JPL and running Sample on Linux
Mandrake with JDK 1.4.1_03 without a glitch, but after much assle (just
look at the "JPL - Quite lost..." thread on this forum). Here are the
tricks:
1. apply any patch if necessary (like http://www.iki.fi/jhi/19756.pat
for Perl 5.8.0);
2. run Configure and:
2a. make sure you say yes for perlib.so, since it's not the default;
2b. make sure you say no for using perl5 malloc (default);
3. (maybe not necessary for RedHat but was for me on Mandrake 9.0): edit
the config.h file and remove the line "#define HAS_CRYPT";
4. after compiling and installing Perl, cd to, say, /usr/bin (where your
perl executable was installed) and create a soft link this way:
ln -s perl `perl -e "print 'perl'.$]"`
5. cd to jpl/JNI in your Perl source tree and modify the Makefile.PL
file and change de following line:
$LIBPATH .= " -R$ENV{JPL_HOME}/lib/$ARCHNAME -L$ENV{JPL_HOME}/lib/$ARCHNAME";
for:
$LIBPATH .= " -L$ENV{JPL_HOME}/lib/$ARCHNAME";
6. cd back to the jpl directory and run install-jpl.
It worked for me, but I wich you good luck!
--
Eric Martel
Sainte-Foy (Qc)
Canada
OpenPGP public key: http://vid.ericmartel.net/pubkey.txt
> > Hello all, I am running Redhat 7.2 (kernel 2.4.18-3) with gcc 2.96 and am
> > trying to use JPL to integrate some Java and perl code using Java1.4.1_01.
>
> > and answer all the usual questions with the default answers (mostly, I did
> > say
> > yes to building libperl.so).
>
> > first setvars will tell me that it can't find the program perl5.006001.
>
> > so I create a symbolic link from perl to perl5.006001 and run it again.
>
> > while building I get the message:
>
> > cc: unrecognized option `-R/usr/local/perl-5.6.1/jpl/lib/i686-linux'
>
> > then it installs the Sample program and builds it. When it then goes to
> > test the sample, I get the message:
>
> > An unexpected exception has been detected in native code outside the VM.
> > Unexpected Signal : 11 occurred at PC=0x4C715FAB
> > Function=(null)+0x4C715FAB
> > Library=/usr/local/lib/perl5/5.6.1/i686-linux/CORE/libperl.so
>
Welcome to the Club! ;)
I just succeeded today installing JPL and running Sample on Linux
Mandrake with JDK 1.4.1_03 without a glitch, but after much assle (just
look at the "JPL - Quite lost..." thread on this forum). Here are the
tricks:
1. apply any patch if necessary (like http://www.iki.fi/jhi/19756.pat
for Perl 5.8.0);
2. run Configure and:
2a. make sure you say yes for perlib.so, since it's not the default;
2b. make sure you say no for using perl5 malloc (default);
3. (maybe not necessary for RedHat but was for me on Mandrake 9.0): edit
the config.h file and remove the line "#define HAS_CRYPT";
4. after compiling and installing Perl, cd to, say, /usr/bin (where your
perl executable was installed) and create a soft link this way:
ln -s perl `perl -e "print 'perl'.$]"`
5. cd to jpl/JNI in your Perl source tree and modify the Makefile.PL
file and change de following line:
$LIBPATH .= " -R$ENV{JPL_HOME}/lib/$ARCHNAME -L$ENV{JPL_HOME}/lib/$ARCHNAME";
for:
$LIBPATH .= " -L$ENV{JPL_HOME}/lib/$ARCHNAME";
6. cd back to the jpl directory and run install-jpl.
It worked for me, but I wich you good luck!
--
Eric Martel
Sainte-Foy (Qc)
Canada
OpenPGP public key: http://vid.ericmartel.net/pubkey.txt