Forum How do I...?

Prince 15 on CentOS 6

brentl999
Unsurprisingly there are dependency issues trying the generic linux installation of PrinceXML 15 on CentOS 6:
/usr/local/lib/prince/bin/prince: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /usr/local/lib/prince/bin/prince)
/usr/local/lib/prince/bin/prince: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /usr/local/lib/prince/bin/prince)
/usr/local/lib/prince/bin/prince: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/prince/bin/prince)

Installing glibc 2.15 and 2.15 still result in a requirement for 2.17
If I install glibc 2.17 then I get:
/usr/local/lib/prince/bin/prince: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument

So I'm digging my self a deeper hold.

Any suggestions? Ultimately the environment I am working with will get migrated to Rocky 8, but at the moment I need to get prince 14+ working on CentOS 6. Is there a static build available?

Thank you,
Brent
brentl999
I did manage to cure the "/usr/local/lib/prince/bin/prince: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument" error using patchelf. However, as expected, I just dug myself into a deeper hole with follow on library errors. May be someone has crossed this bridge before.
brentl999
Well it seems I have this working:
- Installed generic princexml 15
- mkdir ~/glibc_install; cd ~/glibc_install
- wget http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
- tar zxvf glibc-2.17.tar.gz
- cd glibc-2.17
- mkdir build
- cd build
- ../configure –prefix=/opt/glibc-2.17
- make -j4
- make install
- edit /usr/local/bin/prince script add:
export LD_LIBRARY_PATH=/opt/glibc-2.17/lib
- patchelf --force-rpath --set-rpath /opt/glibc-2.17/lib:/usr/lib64:/usr/local/openssl/lib:/lib:/lib64:/usr/lib --set-interpreter /opt/glibc-2.17/lib/ld-2.17.so /usr/local/lib/prince/bin/prince
- done

Edited by brentl999

wangp
The linux-generic binary for Prince 14.4 will run on CentOS 6 if you don't mind an older version.