Saxon-HEC installation problem in Centos 6.7 32 bit
Although I have successfully installed Saxon-HE/C v.0.3.1 to my Windows 8 machine, I couldn't manage to install Saxon-HE/C v 1.0.0 or Saxon-HE/C v.0.3.1 on my Centos 6.7(32 bit) machine. My Apache version is 2.2.15 and Php version is 5.4.45 on Centos. Java jdk version is 1.6.0.
I have downloaded the install.sh example from Petr Zak, and updated it to fit my environment, but I keep getting error while installing, especially when I run make command. You may find my version of install.sh and output file of installation process.
When I run "make" command, it gives errors, you may find this error file named as "make_output.txt" file in the attachments.
Thanks for your help in advance.
#5 Updated by O'Neil Delpratt over 4 years ago
- Found in version set to 1.0.0
HI, I have managed to build Saxon/C for C++ and on PHP on Centos 6.7. I simply copied the jni.h and the jni_md.h to /usr/include to overcome the jni issue. There were a couple more issues that I found:
- C++ build fails under some compilers due to the variable valueType being initialized as NULL. I filed this as a bug: https://saxonica.plan.io/issues/2636
Workaround is to remove the NULL assignments in the file XdmValue.h and XdmNode.h
- The config.m4 file seems to assume the library name libsaoxn.so under /usr/lib. In Saxon 1.0.0 we have renamed the library to libsaxonhec.so for HE and similar naming for PE and EE. The workaround is to create symblic link of the library libsaxonhec.so to libsaoxn.so under '/usr/lib'. see bug: https://saxonica.plan.io/issues/2637
The errors I see in your log files are somewhat different to the errors I found. I suggest following points 1) and 2) then try to build Saxon/C on C++ with the test harnesses in the folder 'samples/cppTests'. If that is successful then the problem is with PHP.
Let us know how you get on
#7 Updated by Duygu Colak over 4 years ago
I have tried what you said,
I copied jni.h and jni_md.h files to /usr/include even though I didn't have jni issue.
I couldn't find XdmNode.h file but I tried to remove the Null assignments from the file XdmValue.h by commenting the lines between 31 to 33. I guess this is the wrong approach to remove null assignments, could you tell me how can I remove them?
I did exactly what you said in number 2.
I tried once again the build command, and it gave the output file in the attachment.
#12 Updated by Duygu Colak over 4 years ago
- File XdmNode.h XdmNode.h added
- File XdmValue.h XdmValue.h added
- File output_installsh.txt output_installsh.txt added
- File install.sh install.sh added
I have downloaded Saxon/C 1.0.0 in /usr/lib/Saxonica folder,
Changed null assignments in XdmValue.h and XdmNode.h files.
Created symblic link of libsaxonhec.so to libsaoxn.so under '/usr/lib'.
And run my install.sh file. You can find the output in the attachment, nothing's changed.
#14 Updated by O'Neil Delpratt over 4 years ago
You will need to execute the build script in the cppTests folder.
You might have to make the file an executable by running the following command:
chmod +x buildhec.sh
Then execute the build script from your terminal:
At this stage you should see three executable files created: testXPath, testXSLT, testValidator and testXQuery
You can try executing any of them. i.e. ./testXPath
If you get errors at this stage please send them to my email and I will try to correspond with you off the bug tracker: firstname.lastname@example.org
#16 Updated by O'Neil Delpratt over 4 years ago
- File saxon.so saxon.so added
- Status changed from AwaitingInfo to Rejected
- % Done changed from 0 to 100
Investigated the problems further off the bug tracker site. The issue was the PHP 5.3 installed as default from the terminal, this was in conflict with the PHP 5.4 running from the web server.
I have attached the PHP 5.4 php library module built on the centos machine.
Please register to edit this issue