gtoubassi / femtozip

FemtoZip is a "shared dictionary" compression library optimized for small documents that may not compress well with traditional tools such as gzip
Other
146 stars 23 forks source link

Unable to use Femtozip on fresh Ubuntu install #11

Open redknight99 opened 8 years ago

redknight99 commented 8 years ago

Hello,

After installing the required dependencies on a fresh Ubuntu install I'm getting this error when attempting to use the fzip command line tool:

fzip: error while loading shared libraries: libfzip.so.0: cannot open shared object file: No such file or directory

gtoubassi commented 8 years ago

Sorry you are having trouble! If you successfully installed femtozip you should have something like /usr/local/lib/libfzip.so.0 or some such (I'm not in front of a linux box so I can't confirm). My guess is LD_LIBRARY_PATH doesn't have /usr/local/lib in it. So check with "echo $LD_LIBRARY_PATH", and try "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib".

If that doesn't work my guess is still for some reason the loader is not finding the shared library. The way I usually debug these types of problems is to run the tool in question with strace and grep through the output to see what files its trying to open to get a sense for where its searching. You then just move the .so into the right directory (or it will tell you what the search path si and you can figure out why your LD_LIBRAR_PATH is borked). Something like:

strace fzip |& grep libfzip

Note the |& because you need to grep stderr which is where strace spews.

Good luck!