{"id":207,"date":"2013-11-06T11:24:41","date_gmt":"2013-11-06T09:24:41","guid":{"rendered":"http:\/\/mednis.info\/wp\/?p=207"},"modified":"2013-11-06T11:28:44","modified_gmt":"2013-11-06T09:28:44","slug":"how-to-install-libsbml-5-8-0-in-fedora-19-with-python-bindings","status":"publish","type":"post","link":"http:\/\/mednis.info\/wp\/?p=207","title":{"rendered":"libSBML 5.8.0 in Fedora 19 with Python bindings"},"content":{"rendered":"<p><strong>How to install libSBML 5.8.0 in Fedora 19 with Python bindings<\/strong><\/p>\n<p><strong>Install compiler<\/strong><br \/>\n<code>yum install gcc-c++<br \/>\nyum groupinstall \"Development Tools\"<\/code><\/p>\n<p><strong>Install some additional packages if needed<\/strong><br \/>\n<code>yum install python-devel<br \/>\nyum install libxml2-devel<br \/>\nyum install swig<\/code><\/p>\n<p><strong>Compile and install libSBML<\/strong><br \/>\nGo to the directory where you have exctracted libsbml source and run these 3 commands<br \/>\n<code>.\/configure --with-python<br \/>\nmake<br \/>\nmake install<\/code><\/p>\n<p><strong>Make libsbml accessible to Python<\/strong><br \/>\nIn Fedora 18 you would export full path to libsbml:<br \/>\n<code>export PYTHONPATH=\/usr\/local\/lib64\/python2.7\/site-packages\/libsbml<\/code>In Fedora 18 you would <em>import _libsbml<\/em> not just <em>import libsbml<\/em>.  <\/p>\n<p>In Fedora 19 you have to export path like this:<br \/>\n<code>export PYTHONPATH=\/usr\/local\/lib64\/python2.7\/site-packages\/<\/code><\/p>\n<p>The <em>export<\/em> command expires when user leaves his\/her session. <\/p>\n<p><strong>Use the libSBML in your code<\/strong><br \/>\n<code>import libsbml<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install libSBML 5.8.0 in Fedora 19 with Python bindings Install compiler yum install gcc-c++ yum groupinstall &#8220;Development Tools&#8221; Install some additional packages if needed yum install python-devel yum install libxml2-devel yum install swig Compile and install libSBML Go to the directory where you have exctracted libsbml source and run these 3 commands .\/configure &hellip; <a href=\"http:\/\/mednis.info\/wp\/?p=207\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">libSBML 5.8.0 in Fedora 19 with Python bindings<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,15,3,4],"tags":[],"_links":{"self":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/207"}],"collection":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":4,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":211,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions\/211"}],"wp:attachment":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}