Trouble compiling ABySS from source
3
0
Entering edit mode
7.9 years ago

Hi,

I'm trying to run abyss-sealer but with the normal installation (sudo apt-get install abyss), I can't get it to work. It doesn't recognize the command. So I'm trying to compile from source instead but I can't get pass the make step. It's throwing me errors stating it can't find -lsqlite3. So I reran ./configure pointing to the location of sqlite but I keep getting the same errors. Does anyone know where I'm going wrong?

./configure --with-sqlite=/usr/bin/sqlite

checking sqlite3.h usability... no

checking sqlite3.h presence... no

checking for sqlite3.h... no

checking for main in -lsqlite3... no

make

/usr/bin/ld: cannot find -lsqlite3

Also if anyone has any idea as to why I cant' get abyss-sealer to work on the normal installation, your input would be much appreciated. The test case worked fine with the regular abyss command.

Thanks,

Jordan

abyss sqlite3 • 2.2k views
ADD COMMENT
0
Entering edit mode

There could be several reasons why it couldn't find sqlite3. Your configure option is pointing to sqlite not sqlite3 so make sure you have installed sqlite3 first.

ADD REPLY
0
Entering edit mode

Install the required dependencies mentioned in the documentation.

ADD REPLY
1
Entering edit mode
7.9 years ago
benv ▴ 730

Hi Jordan,

Sorry for the trouble. Please see https://github.com/bcgsc/abyss/issues/86 for some tips on getting it to compile.

ADD COMMENT
0
Entering edit mode
7.9 years ago
kloetzl ★ 1.1k

/usr/bin/sqlite is the sqlite executable i.e. program. However, that configure script is looking for the sqlite library. Specifically needs a header sqlite.h and something to link against -lsqlite3. Try installing the library version of sqlite!

ADD COMMENT
1
Entering edit mode

sqlite and sqlite3 are not the same thing. On Ubuntu at least, sqlite means sqlite version 2.

ADD REPLY
0
Entering edit mode
7.9 years ago
SES 8.6k

The --with-sqlite option should point to the sqlite directory, not the executable. The configure script is looking for the lib directory and headers in that location and not finding them (as shown in your error message). If you installed the sqlite-dev (or whatever it's called) package, then you don't need to give this option. If you want to compile it locally without installing sqlite in a system path then this is probably necessary. Though, I'm not sure you can configure this locally from source because of boost but it may be possible. This is not a direct answer, but you may want to see if there are binaries available for your system.

ADD COMMENT

Login before adding your answer.

Traffic: 1924 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6