Bug #2697
closedon Ubuntu make command gives error
0%
Description
When I follow instructions on http://www.saxonica.com/saxon-c/index.xml to install saxon as php-module, I get following error at the step
make:
/usr/bin/ld: cannot find -lsaxon
collect2: error: ld returned 1 exit status
make: *** [saxon.la] Error 1
Regards
Siebe Jongebloed
Related issues
Updated by O'Neil Delpratt over 8 years ago
- Category set to PHP Build
- Status changed from New to AwaitingInfo
- Assignee set to O'Neil Delpratt
- Priority changed from Low to Normal
Hi,
Thanks for reporting the problem you have found. The problem is with the config.m4 referencing the wrong library file name. This is a bug which duplicates the following bug issue: https://saxonica.plan.io/issues/2690
The solution you can find here: https://saxonica.plan.io/issues/2690#note-1
Please let us know if you have any other problems.
Updated by Siebe Jongebloed over 8 years ago
Hi,
If I changed the config.m4 file with this new content the error-message is:
/usr/bin/ld: cannot find -lsaxonhec
collect2: error: ld returned 1 exit status
make: *** [saxon.la] Error 1
Regards Siebe
Met vriendelijke groet,
Siebe Jongebloed
m: 0643 77 92 33
e: siebe.jongebloed@elk-it.com
t: 085 30 30 240
2016-04-05 12:11 GMT+02:00 Saxonica Developer Community <
Updated by O'Neil Delpratt over 8 years ago
Where did you install libsaxonhec.so?
Updated by Siebe Jongebloed over 8 years ago
I tried 2 locations:
- /usr/lib/Saxonica/Saxon-HEC1.0.0 with symbolic links
from /usr/lib/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so
to /usr/lib/libsaxonhe.so and to /usr/lib/libsaxonhec.so
- ~/Saxonica/Saxon-HEC1.0.0 with symbolic links
from ~/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so to /usr/lib/libsaxonhe.so and
to /usr/lib/libsaxonhec.so
Both with the same error.
Installation on ubuntu 14.04 with java pointing at
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.
Regards Siebe
Met vriendelijke groet,
Siebe Jongebloed
m: 0643 77 92 33
e: siebe.jongebloed@elk-it.com
t: 085 30 30 240
2016-04-05 13:53 GMT+02:00 Saxonica Developer Community <
Updated by O'Neil Delpratt over 8 years ago
Hi,
I ran through the installation instructuctions from the website with the same machine environment as yourself and got the same error that you reported. As mentioned in comment #1 I replaced the config.m4 with the one from the repository.
I then created a symbolic link to to the saxon library as follows:
sudo ln -s /home/ond1/work/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so /usr/lib/libsaxonhec.so
The next steps are important to run again:
sudo make clean
phpize
./configure --enable-saxon
make
sudo make install
Please check again and let me know.
Updated by Siebe Jongebloed over 8 years ago
Hi,
I still receice same error:
/usr/bin/ld: cannot find -lsaxonhec
collect2: error: ld returned 1 exit status
make: *** [saxon.la] Error 1
Regards Siebe
Met vriendelijke groet,
Siebe Jongebloed
m: 0643 77 92 33
e: siebe.jongebloed@elk-it.com
t: 085 30 30 240
2016-04-05 16:08 GMT+02:00 Saxonica Developer Community <
Updated by O'Neil Delpratt over 8 years ago
I will contact you via email to discuss build problem further.
Updated by O'Neil Delpratt over 8 years ago
- Is duplicate of Bug #2690: saxon.so file missing from 64-bit version and wrong library reference in config.m4 added
Updated by O'Neil Delpratt over 8 years ago
- Status changed from AwaitingInfo to Rejected
I managed to resolve the build problems with the user. I think the main problem was due to bug issue #2690.
Please register to edit this issue