Just to add. Did you add the saxon php extension to the php.ini file as detailed in the instructions guide:

Update the php.ini file (if using Ubuntu it is usually in the location '/etc/php5/apache2/') to contain the php extension. Insert the following in the Dynamic Extensions section: extension=saxon.so

kind regards,

O'Neil
 
On 6 Jun 2014, at 12:50, Ruprecht von Waldenfels <ruprecht.waldenfels@gmail.com> wrote:

You have to link the 14 mb one, I think, to /usr/lib. 
Don't forget to restart apache. 

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

ah: you have to add the LD_LIBRARY_PATH code to the .bashrc
and I think 

For ubuntu server, in /etc/apache2/envvars, for centos server, in /etc/sysconfig/httpd, add:
export LD_LIBRARY_PATH=/usr/lib/rt/lib/i386/jetvm

and restart apache




Am 06.06.2014 12:25, schrieb Christian Schwaderer:
Hi there.

Sorry, it's me again. Thank you both for your kind help. But: Still no success.

My $JAVA_HOME is /usr/lib64/jvm/java.

But there are several files named
"libjvm.so" on my computer.

One in the folder
"/usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/lib/amd64/server/"
about 14 MB large

And one in the folder
"/usr/lib/rt/lib/amd64/jetvm/" about 22,8KB in size.

I tried both. And in order to make sure I have the right directory I set the links in lib, lib64 and /usr/lib.

But it didn't work.

So, I tried to build the extension again:

phpize
./configure --enable-saxon
export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:$LD_LIBRARY_PATH
make
make install

Still the same: on each re-boot:
"PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/saxon.so' - libsaxon.so: cannot open shared object file: No such file or directory in Unknown on line 0"

Maybe the problem is in the LD_LIBRARY_PATH.

There is a folder named "/usr/lib/rt/lib/amd64" on my machine.
But in the script of Petr Zak you send me, Oneil, the corresponding line is
"export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/include/linux:/usr/lib/jvm/java-6-openjdk-amd64/include:$LD_LIBRARY_PATH"
On my machine there is nowhere a directory called "java-6-openjdk-amd64".

Hope you know what to try next. I don't

Thanks in advance!

Christian.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help

-------------------------------
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/