It looks like you have not got the Java include on your class path.

Are you using a 32-bit machine or 64-bit?

Depending on what java you have installed already. You will need something like this?

export LD_LIBRARY_PATH=/usr/lib/rt/amd64:/usr/lib/jvm/java-6-openjdk-amd64/include/linux:/usr/lib/jvm/java-6-openjdk-amd64/include:$LD_LIBRARY_PATH

kind regards,


On 3 May 2014, at 12:24, Ruprecht von Waldenfels <ruprecht.waldenfels@gmail.com> wrote:

Dear All,
I have trouble installing the Saxon CE Php-extension on Ubuntu 13.10.

After unpacking to /usr/lib/ as recommended, I ran

 export LD_LIBRARY_PATH=/usr/lib/rt/lib/i386:$LD_LIBRARY_PATH

cd /usr/lib/Saxon-C-API
sudo phpize
./configure --enable-saxon
which all ran smooth, but for
sudo make
I got the following error:
/usr/lib/Saxon-C-API$ sudo make
/bin/bash /usr/lib/Saxon-C-API/libtool --mode=compile g++  -I.
-I/usr/lib/Saxon-C-API -DPHP_ATOM_INC -I/usr/lib/Saxon-C-API/include
-I/usr/lib/Saxon-C-API/main -I/usr/lib/Saxon-C-API -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE
/usr/lib/Saxon-C-API/SaxonProcessor.cpp -o SaxonProcessor.lo
libtool: compile:  g++ -I. -I/usr/lib/Saxon-C-API -DPHP_ATOM_INC
-I/usr/lib/Saxon-C-API/include -I/usr/lib/Saxon-C-API/main
-I/usr/lib/Saxon-C-API -I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend
-I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
/usr/lib/Saxon-C-API/SaxonProcessor.cpp  -fPIC -DPIC -o
In file included from /usr/lib/Saxon-C-API/SaxonProcessor.cpp:8:0:
/usr/lib/Saxon-C-API/SaxonProcessor.h:3:17: fatal error: jni.h: No such
file or directory
 #include <jni.h>
compilation terminated.
make: *** [SaxonProcessor.lo] Fehler 1

I would be very grateful for help, I have now idea how these things work.


"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
saxon-help mailing list archived at http://saxon.markmail.org/

O'Neil Delpratt
Software Developer, Saxonica Limited Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/