libhts file not found

1,340 views
Skip to first unread message

Conor Meehan

unread,
Jul 24, 2015, 8:17:58 AM7/24/15
to Platypus Users
Hi,

I am running Platypus built from the latest git clone on an ubuntu machine. I have installed htslib in /usr/local as standard but I am getting the following error:

File "cython/htslibWrapper.pxd", line 203, in init variantcaller (cython/variantcaller.c:17022)
ImportError: libhts.so.1: cannot open shared object file: No such file or directory

When I do a locate libhts.so.1 it is present in /usr/local/lib/
Any idea what is going wrong here?

Thanks in advance,
Conor

tab...@gmail.com

unread,
Aug 5, 2015, 10:28:38 AM8/5/15
to Platypus Users
I have the exact same problem! It'd be great, if somebody could help us out.
3323

Daniel Cooke

unread,
Aug 5, 2015, 10:38:05 AM8/5/15
to tab...@gmail.com, Platypus Users
I did answer this, but forgot to cc platypus-users...

Hi Daniel,

That worked great, thanks. I don't think that even with /usr/local being used you still have to make these changes in the Makefile is clear on the git page. Might be useful to update this.

thanks again,
Conor

On 24 July 2015 at 14:51, Daniel Cooke <dco...@well.ox.ac.uk> wrote:
Looks like only /lib and /usr/lib paths are standard paths on linux. So you will need to set the path variables documented in the README to /usr/local/{lib, include}.

Best
Dan


On 24 Jul 2015, at 13:29, Conor Meehan <meehan...@gmail.com> wrote:

Hi Daniel,

It is installed in the default directory so I shouldn't need to set the paths according to the Readme file. Am I not understanding that correctly?

Cheers,
Conor

On 24 July 2015 at 14:25, Daniel Cooke <dco...@well.ox.ac.uk> wrote:
Hi Conor,

Probably due to your PATH variables not being set correctly. Please see the README for details on which PATH variables need to be set.

Best
Dan

On 24 Jul 2015, at 13:17, Conor Meehan <meehan...@gmail.com> wrote:

Hi,

I am running Platypus built from the latest git clone on an ubuntu machine. I have installed htslib in /usr/local as standard but I am getting the following error:

File "cython/htslibWrapper.pxd", line 203, in init variantcaller (cython/variantcaller.c:17022)
ImportError: libhts.so.1: cannot open shared object file: No such file or directory

When I do a locate libhts.so.1 it is present in /usr/local/lib/
Any idea what is going wrong here?

Thanks in advance,
Conor

I’ll clarify the README’s at some point.. 

--
You received this message because you are subscribed to the Google Groups "Platypus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platypus-user...@googlegroups.com.
To post to this group, send email to platypu...@googlegroups.com.
Visit this group at http://groups.google.com/group/platypus-users.
To view this discussion on the web, visit https://groups.google.com/d/msgid/platypus-users/a83996e8-6f37-48b1-b4e6-5a5801f5f047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Conor Meehan

unread,
Aug 5, 2015, 10:40:48 AM8/5/15
to Platypus Users
So it seems that even if you install htslib in the default directory you still have to link to the location of libhts.so in the Makefile.
Thus you need the 3 lines:

export C_INCLUDE_PATH=/usr/local/include

export LIBRARY_PATH=/usr/local/lib

export LD_LIBRARY_PATH=/usr/local/lib


added to the Makefile of Platypus and that should work.


C

tab...@gmail.com

unread,
Aug 6, 2015, 10:08:46 AM8/6/15
to Platypus Users
Thank you very much, this solves my problem. 

Preethi Srinivasan

unread,
Sep 12, 2016, 12:05:05 PM9/12/16
to Platypus Users
where is the Makefile? I don't see one
Reply all
Reply to author
Forward
0 new messages