Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error with Boost and numpy #2

Open
drewmicro opened this issue Jan 27, 2015 · 1 comment
Open

Installation error with Boost and numpy #2

drewmicro opened this issue Jan 27, 2015 · 1 comment

Comments

@drewmicro
Copy link

I am trying to install from the github lastest stable release using the commands on the MG-TAXA website on Ubuntu 14.04. When I execute ~/bin/andreyto-mgtaxa-c5c5114/build$ make -f ../Makefile i get the following errors. From the error message it looks like Boost is finding the wrong version of python. Any suggestions on how to overcome this error would be appreciated.
Thanks,
-Andrew

"BOOST_INC_DIR=/include"
mkdir -p /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps; /usr/bin/g++ -O3 -fPIC -g -I/home/iak/bin/andreyto-mgtaxa-c5c5114/include -I/include -I -I/home/iak/qiime_software/numpy-1.7.1-release/lib/python2.7/site-packages/numpy/core/include -MM -o /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps/py_num_util.d /home/iak/bin/andreyto-mgtaxa-c5c5114/src/py_num_util.cpp && cp /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps/py_num_util.d /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps/py_num_util.P && sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ *$//' -e '/^$/ d' -e 's/$/ :/' < /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps/py_num_util.d >> /home/iak/bin/andreyto-mgtaxa-c5c5114/build/.deps/py_num_util.P && rm /home/iak/bin/andreyto-mgtaxa-c5c5114/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 /home/iak/bin/andreyto-mgtaxa-c5c5114/include/mgtaxa/py_num_util.hpp:21,
from /home/iak/bin/andreyto-mgtaxa-c5c5114/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 /home/iak/bin/andreyto-mgtaxa-c5c5114/include/mgtaxa/py_num_util.hpp:22,
from /home/iak/bin/andreyto-mgtaxa-c5c5114/src/py_num_util.cpp:16:
/usr/include/numpy/npy_common.h:268:2: error: #error Must use Python with unicode enabled.
#error Must use Python with unicode enabled.
^
make: *
* [py_num_util.o] Error 1

@andreyto
Copy link
Owner

You would have to install all the required dependencies first. There are install_stage_1 and install_stage_2 scripts under deps/ for doing that, but they were designed for CentOS 6. They also assume that the sources of the dependencies are already located where the scripts expect to find them. Additionally, most of the dependencies that get installed are not required for all functions of MGTAXA. There is really a need to automate the superbuild with CMake, but there has been no time so far. Could you try using the Web server instead of installing the package locally: http://mgtaxa.jcvi.org/? It might save you a lot of work.
Thanks,
Andrey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants