andreas-wilm / stral

STRAL: progressive alignment of non-coding RNA using base pairing probability vectors in quadratic time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with stral installation

MSajek opened this issue · comments

I try to install stral and after installing all dependencies I have the following error after 'make':

stral.o: In function main': /home/marcin/Downloads/stral/stral.c:422: undefined reference to rpl_malloc'
/home/marcin/Downloads/stral/stral.c:423: undefined reference to rpl_malloc' /home/marcin/Downloads/stral/stral.c:453: undefined reference to rpl_malloc'
iofuncs.o: In function recursion': /home/marcin/Downloads/stral/iofuncs.c:610: undefined reference to rpl_malloc'
/home/marcin/Downloads/stral/iofuncs.c:611: undefined reference to rpl_malloc' iofuncs.o:/home/marcin/Downloads/stral/iofuncs.c:748: more undefined references to rpl_malloc' follow
iofuncs.o: In function parsenewicktree': /home/marcin/Downloads/stral/iofuncs.c:436: undefined reference to rpl_realloc'
iofuncs.o: In function printdistmatrix': /home/marcin/Downloads/stral/iofuncs.c:204: undefined reference to rpl_malloc'
iofuncs.o: In function readfromprobfile': /home/marcin/Downloads/stral/iofuncs.c:112: undefined reference to rpl_malloc'
/home/marcin/Downloads/stral/iofuncs.c:140: undefined reference to rpl_malloc' iofuncs.o: In function print2probfile':
/home/marcin/Downloads/stral/iofuncs.c:50: undefined reference to rpl_malloc' iofuncs.o: In function remgaps':
/home/marcin/Downloads/stral/iofuncs.c:323: undefined reference to rpl_realloc' part_func.o: In function mysprintf_bppm':
/home/marcin/Downloads/stral/part_func.c:901: undefined reference to
rpl_malloc' collect2: ld returned 1 exit status make[1]: *** [stral] Error 1 make[1]: Leaving directory /home/marcin/Downloads/stral'
make: *** [install-recursive] Error 1

I try to use:
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
before ./configure
but it doesn't work

I did it in 32 bit Ubuntu 10.04. In the newer versions, I am not able to compile ViennaRNA-1.8.5.

I will be grateful for any suggestions

Marcin

Forgot that I keep a copy of the third party libraries in the third-party folder. Just use them, rather then downloading or installing via conda.

Hi Andreas,
Thanks for the very fast answer. I hashed the lines containing AC_FUNC_MALLOC and AC_FUNC_REALLOC in the
configure.ac and rerun ./bootstrap, ./configure and make and everything is ok. I finished the installation (sudo make install) and after running stral the following error occurs:
error while loading shared libraries: libmhash.so.2: cannot open shared object file: No such file or directory
I fixed it using:
sudo ldconfig -v
and everything works fine!
Thanks a lot!

Wonderful. Thanks for reporting back