0
我想在Fedora 23上編譯MGTAXA,但是我得到python的這個錯誤需要是2.2或更高版本(安裝2.7.10),並且需要啓用unicode。如何在Fedora上啓用Python的unicode?
問題
誰能告訴我,我需要做的,使Python的Unicode的Fedora的23,如何讓它看到,Python是至少2.2?
[[email protected] build]# make -f ../Makefile
"BOOST_INC_DIR=/include"
mkdir -p /mgtaxa/build/.deps; /usr/bin/g++ -O3 -fPIC -g -I/mgtaxa/include -I/include -I -I/usr/lib64/python2.7/site-packages/numpy/core/include -MM -o /mgtaxa/build/.deps/py_num_util.d /mgtaxa/src/py_num_util.cpp && cp /mgtaxa/build/.deps/py_num_util.d /mgtaxa/build/.deps/py_num_util.P && sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$//' -e '/^$/ d' -e 's/$/ :/' </mgtaxa/build/.deps/py_num_util.d>> /mgtaxa/build/.deps/py_num_util.P && rm /mgtaxa/build/.deps/py_num_util.d
In file included from /usr/include/boost/python/detail/prefix.hpp:13:0,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /mgtaxa/include/mgtaxa/py_num_util.hpp:21,
from /mgtaxa/src/py_num_util.cpp:16:
/usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python.
#error Python 2.2 or higher is required for this version of Boost.Python.
^
In file included from /usr/include/numpy/ndarraytypes.h:4:0,
from /usr/include/numpy/ndarrayobject.h:17,
from /usr/include/numpy/noprefix.h:9,
from /mgtaxa/include/mgtaxa/py_num_util.hpp:22,
from /mgtaxa/src/py_num_util.cpp:16:
/usr/include/numpy/npy_common.h:301:2: error: #error Must use Python with unicode enabled.
#error Must use Python with unicode enabled.
^
../Makefile:287: recipe for target 'py_num_util.o' failed
make: *** [py_num_util.o] Error 1
[[email protected] build]#
That worked =)我怎麼沒有安裝他們提到的'Shogun,MySQL,HDF5,PyTables'依賴關係?是因爲我必須做點什麼來獲得這些功能? –
簡化了cmake文件:沒有關於已配置依賴項/選項的消息,也沒有關於任何缺失依賴項/選項的消息。和:可能是cmake配置是作弊,通過不包括任何已安裝的好東西:'#dnf install shogun-devel mysql -devel hdf5-devel python-tables python-devel numpy boost-devel' –