sys-bio / roadrunner

libRoadRunner: A high-performance SBML simulator
http://libroadrunner.org/
Other
39 stars 25 forks source link

python undefined symbol #332

Closed ivomaintz closed 7 years ago

ivomaintz commented 8 years ago

My system: ubuntu 16.04 amd64 self-compiled: numl 1.0.1, nleq 2.4.0.1, libsbml 5.13.0, rr-libstruct 1.3, sundials 2.6.2, poco 1.7.2, libsedml 0.4.1 cmake_options.txt cmake_log.txt buildlog.txt

Other tools and libs are nativ, and I used llvm 3.5 (llvm 3.6 didn't work)

Building and installing roadrunner worked, but if I try load the python module, I get

ImportError: /usr/lib/x86_64-linux-gnu/libf2c.so.2: undefined symbol: MAIN__

I added -u MAIN__ before -lf2c in $BUILDDIR/wrappers/Python/roadrunner/CMakeFiles/_roadrunner.dir/link.txt,, but this didn't help.

How could I fix this?

Thanks,

Ivo

0u812 commented 8 years ago

It looks like a problem with the build setup. We have conda packages, which is a much easier alternative to building from source. Here are the instructions for installing via conda: http://libroadrunner.org/install/

0u812 commented 8 years ago

Fyi if you're still stuck on this, Matthias shared his build script here: https://github.com/sys-bio/roadrunner/issues/334