Shim doesn't start: cannot load libraries


I’ve downloaded and installed shim using the deb package (ubuntu_14.04_shim_15.7_amd64.deb) following the guide at … stallation, but I cannot start it.

Here is the partial log from terminal when I execute the “sudo gdebi ubuntu_14.04_shim_15.7_amd64.deb” command (Shim gets correctly installed in /opt/scidb/15.7/bin/shim but it cannot start):

... Starting shim /opt/scidb/15.7/bin/shim: error while loading shared libraries: cannot open shared object file: No such file or directory dpkg: error processing package shim (--install): subprocess installed post-installation script returned error exit status 127 Processing triggers for man-db ( ... Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: shim

In the Shim Notes ( I’ve read: “Note: and SciDB’s boost libraries must be in shim’s library path. This may entail setting LD_LIBRARY_PATH=/opt/scidb//lib:/opt/scidb//3rdparty/boost/lib before running shim. You don’t have to worry about that if you install and run shim as a service” but I’ve noticed there is no /opt/scidb/15.7/lib folder. Could be this the problem?

I’ve tried to explicitly add “LD_LIBRARY_PATH=/opt/scidb//lib:/opt/scidb//3rdparty/boost/lib” to my ~/.bashrc file, save it, close the Terminal and check it was fine with “echo $LD_LIBRARY_PATH” but I have the same error if I try to start Shim (sudo /opt/scidb/15.7/bin/shim).

Any kind of help would be very much appreciated!


No help at all?



Yeah how did you install scidb? Where is SciDB running out of? Did you build from source?
You may need to find where is and add that to LD_LIBRARY_PATH


I’ve compiled SciDB from source following the “Build Instructions” at step by step.
Can you please reformulate your question “Where is SciDB running out of?” appears in:

I’ve added both to the LD_LIBRARY_PATH with no luck, I still have the error “/opt/scidb/15.7/bin/shim: error while loading shared libraries: cannot open shared object file: No such file or directory”



A late answer, but hopefully helps others. If LD_LIBRARY_PATH does not work, you can put a symbolic link to in the same directory containing the shim binary. For example, in your case run sudo ln -s /home/scidb/scidb/scidbtrunk/stage/install/lib/ /opt/scidb/15.7/bin/