Linux undefined symbol _mkdir in the .so file of swmm5 python package -
i new python , linux. installed swmm5 package in linux downloading source swmm5-5.1.0.102.zip:
python setup.py install
before typing previous syntax install swmm5, have unquoted #define cle
, deleted #include <direct.h>
in file swmm5.c, otherwise installation won't succeed.
then tried test swmm5 package , following error:
from swmm5.swmm5tools import swmm5simulation traceback (most recent call last): file "<stdin>", line 1, in <module> file "/home/pyangac/py_libs/lib64/python/swmm5-5.1.0.102-py2.7-linux-x86_64.egg/swmm5/swmm5tools.py", line 1, in <module> . import swmm5 file "/home/pyangac/py_libs/lib64/python/swmm5-5.1.0.102-py2.7-linux-x86_64.egg/swmm5/swmm5.py", line 28, in <module> _swmm5 = swig_import_helper() file "/home/pyangac/py_libs/lib64/python/swmm5-5.1.0.102-py2.7-linux-x86_64.egg/swmm5/swmm5.py", line 20, in swig_import_helper import _swmm5 importerror: /home/pyangac/py_libs/lib64/python/swmm5-5.1.0.102-py2.7-linux-x86_64.egg/_swmm5.so: undefined symbol: _mkdir
i have installed swmm5 package in window, , similar testing process gets no error.
is there understand what's going on , should use swmm5 package in linux? thanks.
Comments
Post a Comment