Re: Install and running Sample test
[email protected] (Eric Martel) 10 Jul 2003 18:17:23 -0400
| Newsgroups | perl.jpl |
|---|---|
| Message-ID | <[email protected]> |
--=-tmRAEBN3OjcO0l88Fdmg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Le jeu 10/07/2003 =E0 17:34, [email protected] a =E9crit : > > 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. >=20 > > and answer all the usual questions with the default answers (mostly, I = did > > say > > yes to building libperl.so). >=20 > > first setvars will tell me that it can't find the program perl5.006001. >=20 > > so I create a symbolic link from perl to perl5.006001 and run it again. >=20 > > while building I get the message: >=20 > > cc: unrecognized option `-R/usr/local/perl-5.6.1/jpl/lib/i686-linux' >=20 > > then it installs the Sample program and builds it. When it then goes to > > test the sample, I get the message: >=20 > > An unexpected exception has been detected in native code outside the VM= . > > Unexpected Signal : 11 occurred at PC=3D0x4C715FAB > > Function=3D(null)+0x4C715FAB > > Library=3D/usr/local/lib/perl5/5.6.1/i686-linux/CORE/libperl.so >=20 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 .=3D " -R$ENV{JPL_HOME}/lib/$ARCHNAME -L$ENV{JPL_HOME}/lib/$ARCHN= AME"; for: $LIBPATH .=3D " -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! --=20 Eric Martel Sainte-Foy (Qc) Canada OpenPGP public key: http://vid.ericmartel.net/pubkey.txt --=-tmRAEBN3OjcO0l88Fdmg Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/DeXy8B7YqO0/GRwRApZTAJwPaYp3mfqlsqQDQoOIAjRHl+eM5gCfRdcC Ae22q3+nGbmfBWO6VSOzNGE= =wREd -----END PGP SIGNATURE----- --=-tmRAEBN3OjcO0l88Fdmg--