gt1 / biobambam2

Tools for early stage alignment file processing
Other
93 stars 17 forks source link

failed to find libmaus2 #74

Open kemin711 opened 6 years ago

kemin711 commented 6 years ago

I installed libmaus2 in my home directory ~/include/libmaus2 ~/lib$ ls libmaus* libmaus2.a libmaus2.la libmaus2_simd_align_128.so.2 libmaus2_simd_align_256.so.2 libmaus2digests.a libmaus2seqchksumsfactory.a libmaus2_simd_align_128.so.2.0.499 libmaus2_simd_align_256.so.2.0.499 libmaus2digests_sse4.a libmaus2_simd_align_128.a libmaus2_simd_align_256.a libmaus2.so libmaus2fftw.a libmaus2_simd_align_128.la libmaus2_simd_align_256.la libmaus2.so.2 libmaus2_irods.a libmaus2_simd_align_128.so libmaus2_simd_align_256.so libmaus2.so.2.0.499

libmaus2: 2.0.499 export libmaus2_CFLAGS=-I$HOME/include/libmaus2 ./configure --prefix $HOME --with-libmaus2=$HOME/lib

Configure failed to find libmaus2 checking for libmaus2... no configure: error: Package requirements (libmaus2 >= 2.0.451) were not met:

No package 'libmaus2' found

kemin711 commented 6 years ago

~/lib/pkgconfig$ ls htslib.pc libmaus2digests.pc libmaus2fftw.pc libmaus2.pc libmaus2seqchksumsfactory.pc

pkg config is in the default $prefix/lib/pkgconfig directory. The current package is not looking into this lace, am I right?

kemin711 commented 6 years ago

After adding the pkgconf directory from my $HOME/lib, got slightly different errors:

checking for libmaus2... yes checking for libmaus2digests... yes checking for libmaus2seqchksumsfactory... yes checking whether we can compile a program using libmaus2... no configure: error: Required libmaus2 is not available.

gt1 commented 6 years ago

You need to provide the libmaus2 base directory when calling configure for biobambam2, i.e. if you configured libmaus2 with

./configure --prefix=${HOME}/libmaus2

then you would use

./configure --with-libmaus2=${HOME}/libmaus2

for biobambam2.

nbartonicek commented 6 years ago

Same issue. I've done exactly as you said, making sure that prefix directory for libmaus2 is the same as with-libmaus2 directory for biobambam2, and recieve:

checking whether we can compile a program using libmaus2... no configure: error: Required libmaus2 is not available.

gt1 commented 6 years ago

Could you post your config.log file?

nbartonicek commented 6 years ago

And thanks for the prompt reply! :)

nbartonicek commented 6 years ago

Ok, think I found out the error, had to load gcc/4.8.2, would not compile with the older version on the cluster.

gt1 commented 6 years ago

Which compiler did you see the failure with? I am curious, it looks like the configure check for a working 128 bit int type failed.