如何在Windows机器上使用Cygwin安装libSBML?

时间:2015-09-14 09:10:59

标签: cygwin

我想在我的Windows机器上使用Cygwin终端安装libSBML,以便在Python中运行一个定制的统计软件包。 libSBML安装说明使我能够成功执行以下操作:

./configure --with-python=/cygdrive/c/cygwin64 --prefix=/cygdrive/c/cygwin64 --with-swig=/cygdrive/c/cygwin64

make

然而,

make install

未能提供以下错误:

/bindings/python/RyY1P1Dc/stage//usr/local/lib/_libsbml.a
ranlib /cygdrive/c/Users/esrnai/Downloads/libsbml-4.0.1-src/libsbml-     4.0.1/src/bindings/python/RyY1P1Dc/stage//usr/local/lib/_libsbml.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
mkdir -p build build/libsbml
echo "libsbml" > build/libsbml.pth
cp _libsbml.dll  build/libsbml
cp: cannot stat ‘_libsbml.dll’: No such file or directory
Makefile:316: recipe for target 'create-build-dir' failed
make[3]: *** [create-build-dir] Error 1
make[3]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml-  4.0.1-src/libsbml-4.0.1/src/bindings/python'
../../config/makefile-common-actions.mk:359: recipe for target 'python-  recurse' failed
make[2]: *** [python-recurse] Error 2
make[2]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml-   4.0.1-src/libsbml-4.0.1/src/bindings'
../config/makefile-common-actions.mk:359: recipe for target 'bindings-   recurse' failed
make[1]: *** [bindings-recurse] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml-  4.0.1-src/libsbml-4.0.1/src'
config/makefile-common-actions.mk:361: recipe for target 'src-recurse'   failed
make: *** [src-recurse] Error 2

我认为问题与此处报道的问题http://sourceforge.net/p/sbml/libsbml/314/#581b相同,后来已被关闭。有人可以帮我解释本页面上的消息或建议任何其他解决方案吗?

1 个答案:

答案 0 :(得分:0)

我现在通过以下解决方案克服了这个问题:

我从https://pypi.python.org/packages/source/p/python-libsbml/python-libsbml-5.11.4.tar.gz

下载了libSBML作为独立的python包

然后我输入了相应的目录并键入以下命令:

tar xzf python-libsbml-5.11.4.tar.gz
cd python-libsbml-5.11.4
python setup.py install

已成功安装libSBML。我现在能够毫无失败地运行统计软件包。