soumith / torch-ship-binaries

A page describing how to ship torch binaries without sharing the source code of your scripts.
17 stars 1 forks source link

run torch binary code on CentOS or RHEL, error 'glibc 2.14 not found'? #3

Open nejyeah opened 8 years ago

nejyeah commented 8 years ago

It seems that some libs used by Torch7 are compiled based on glibc-2.14 and glibc-2.15. So when I run my binary code on CentOS 6.5 and RHEL which both only support glibc-2.12, errors throw out as "libc.so.6: version `GLIBC_2.14' not found". Any advice to run my code on the two system ?

soumith commented 8 years ago

hmmm, from this thread, they suggest a flag: http://stackoverflow.com/questions/13187499/link-glibc-statically-but-some-other-library-dynamically-with-gcc

-static-libgcc

during compilation...

I never tried..

foice commented 8 years ago

well same glibc-2.14 issue here, it works on CentOS7 though.