Linux RPM

On Fedora 24 libsbml-15.rpm does not install with yum or dnf as ther is a missing dependency to libperl.so which does not exist. The solution is to unpack the rpm and install it manually. In addition:

- c++ api tested works

perl bindings

  • package is created as LibSBML
  • need to copy LibSBML.so into same directory as LibSBML

[cbmpy@localhost perl]$ perl use LibSBML; Can’t locate loadable object for module LibSBML in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/LibSBML.pm line 11. Compilation failed in require at - line 1. BEGIN failed–compilation aborted at - line 1. [cbmpy@localhost perl]$ export PERL5LIB=/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi [cbmpy@localhost perl]$ export PERL5LIB=/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi [cbmpy@localhost perl]$ perl use LibSBML; Can’t load ‘/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/LibSBML.so’ for module LibSBML: libperl.so: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193.

at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/LibSBML.pm line 11.

Compilation failed in require at - line 1. BEGIN failed–compilation aborted at - line 1. [cbmpy@localhost perl]$ sudo ldconfig [sudo] password for cbmpy: [cbmpy@localhost perl]$ perl use LibPerl; Can’t locate LibPerl.pm in @INC (you may need to install the LibPerl module) (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at - line 1. BEGIN failed–compilation aborted at - line 1. [cbmpy@localhost perl]$ perl use LibSBML; perl: symbol lookup error: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/LibSBML.so: undefined symbol: Perl_Gthr_key_ptr [cbmpy@localhost perl]$