Jellyfish icon indicating copy to clipboard operation
Jellyfish copied to clipboard

libjellyfish-2.0.so.2: cannot open shared object file error

Open npbhavya opened this issue 10 years ago • 5 comments

So i have been trying to use jellyfish to count kmers of size 4, so i have been using the following command jellyfish count -s 400000 -t 32 -C -m 4 -o 4mers.txt But i keep getting the following error libjellyfish-2.0.so.2: cannot open shared object file error. Can you help me understand this error and how to get past it

npbhavya avatar Oct 28 '14 21:10 npbhavya

On Tue, Oct 28, 2014 at 5:23 PM, npbhavya [email protected] wrote:

So i have been trying to use jellyfish to count kmers of size 4, so i have been using the following command jellyfish count -s 400000 -t 32 -C -m 4 -o 4mers.txt But i keep getting the following error libjellyfish-2.0.so.2: cannot open shared object file error. Can you help me understand this error and how to get past it

— Reply to this email directly or view it on GitHub https://github.com/gmarcais/Jellyfish/issues/25.

Most likely you moved the binary instead of installing it. Suppose you want to install jellyfish in your home directory, configure and install this way:

$ ./configure --prefix=$HOME $ make $ make install

Now jellyfish should be in $HOME/bin and it will find the share library without problem.

Guillaume.

gmarcais avatar Oct 28 '14 22:10 gmarcais

Hey I did try installing it again using the commands you have given me. This time i have installed the jellyfish-1.1.11, however the same error seems to occur. Once again ellyfish: error while loading shared libraries: libjellyfish-2.0.so.2: cannot open shared object file: No such file or directory

Since i am using the jellyfish-1.1.11 but the error suggests the libjellyfish-2.0.so.2 file cannot be shared. Do you know where i am going wrong. Thank You

npbhavya avatar Oct 29 '14 17:10 npbhavya

Hey thanks got it, used this method to get it working /jellyfish-1.1.11$ ps PID TTY TIME CMD 3463 pts/2 00:00:00 bash 12863 pts/2 00:00:00 ps /jellyfish-1.1.11$ export LD_LIBRARY_PATH="/usr/local/lib" So i have the output files but, they are in the 4mer.text_0 file which i cant open. Could you tell me if that is the correct output format and if it is, what application should i use to open these files

npbhavya avatar Oct 29 '14 20:10 npbhavya

Thanks. export LD_LIBRARY_PATH="/usr/local/lib" then 'jellyfish' worked for me as well. No more libjellyfish-2.0.so.2 error. (v2.2.7) Pat

pminx avatar Feb 21 '18 20:02 pminx

I do not think that the proper way to go. Setting up LD_LIBRARY_PATH is last resort hack in my opinion. If you installed in /usr/local/lib, run as root ldconfig and it should work.

gmarcais avatar Feb 21 '18 21:02 gmarcais