0

我想在我的 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已经关闭。有人可以帮我解释此页面上的信息或建议任何替代解决方案吗?

4

1 回答 1

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 已成功安装。我现在可以运行统计包而不会失败。

于 2015-09-22T09:40:54.727 回答