Project

Profile

Help

Bug #4524

closed

Saxon/C documentation does not give information on customizing installation directory

Added by O'Neil Delpratt about 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Start date:
2020-04-22
Due date:
% Done:

100%

Estimated time:
Found in version:
1.2.1
Fixed in version:
11.1
Platforms:

Description

Reported by user.

Per the instruction on Linux, we need to copy library files to or create symlinks in /usr/lib. Is this “/usr/lib” path hard coded? We will run our application on hundreds of farm machines. It’s not practical to ask systems to set up /usr/lib for us.

[cppTests]$ ./testXPath Unable to load /usr/lib/libsaxonhec.so Error: : Success

Is there a way to replace the path /usr/lib with our customized directory?

Actions #1

Updated by O'Neil Delpratt about 2 years ago

For Linux you can use the environment variable SAXONC_HOME to set the location of the Saxon/C library.

You can set it as follows:

export SAXONC_HOME=/USER/LOCATION

You may also need to set the LD_LIBRARY_PATH.

You can do it as follows:

export JET_HOME=/USER/LOCATION export LD_LIBRARY_PATH=$JET_HOME/lib/amd64/jetvm:$JET_HOME/lib/amd64:$JET_HOME

We mention this option under the Mac OS instructions Mac OS, but not under linux.

This is a bug against the Saxon/C documentation which needs to reflect details in the Linux instructions too.

Just to add, the logic for finding the Saxon/C library location is in the SaxonCGlue.c file.

Actions #2

Updated by O'Neil Delpratt about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Saxon/C documentation updated on live site and in repositiory.

Actions #3

Updated by O'Neil Delpratt 5 months ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 11.1

Bug fix patched in SaxonC 11.1 release

Please register to edit this issue

Also available in: Atom PDF