installation problem

36 views
Skip to first unread message

Potomac Firefly

unread,
Jan 9, 2018, 5:19:03 PM1/9/18
to ANNarchy
Hi,

I had installed annachy awhile ago (12/24/2017)  without a problem.Today I tried to install annarchy to another computer with the same procedure. First I installed anaconda3. It seemed alright: 

$ python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Then I did 

cd annarchy/
python setup.py install --user

I got errors as follows,

$ python setup.py install --user
No module named 'ANNarchy.core.cython_ext.Connector'
No module named 'ANNarchy.core.cython_ext.Connector'
Error: Could not import Cython modules. Try reinstalling ANNarchy.
ANNarchy 4.6 (4.6.4.1) on linux (posix).
Checking for setuptools... OK
Checking for numpy... OK
Checking for cython... OK
Checking for CUDA... NO
Warning: CUDA is not available on your system. Only OpenMP can be used to perform the simulations.
Compiling ANNarchy/core/cython_ext/Connector.pyx because it changed.
Compiling ANNarchy/core/cython_ext/Coordinates.pyx because it changed.
Compiling ANNarchy/core/cython_ext/Transformations.pyx because it changed.
[1/3] Cythonizing ANNarchy/core/cython_ext/Connector.pyx
[2/3] Cythonizing ANNarchy/core/cython_ext/Coordinates.pyx
[3/3] Cythonizing ANNarchy/core/cython_ext/Transformations.pyx
no previously-included directories found matching 'docs/_build'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-std=c++11"
error: command 'gcc' failed with exit status 1

I tried a few times and got the same results. Please help. Thank you!

Best,
Potomac Firefly


Julien Vitay

unread,
Jan 9, 2018, 5:44:52 PM1/9/18
to ANNarchy
Hi,

that's weird, it is a typical message when using very old versions of gcc (before 4.3, without c++11 support), but your conda installation says you have 7.2... What is the result of "g++ -v"? Another explanation would be that you have only gcc installed, not g++. Which Linux distribution is it?

Best
Julien
Message has been deleted

Potomac Firefly

unread,
Jan 10, 2018, 6:17:23 AM1/10/18
to ANNarchy
Julien,

Now it works. The system is old -- an old Redhat; the default gcc was old -- 4.8.x; I did a "module load gcc/7.2.0" and then it worked.

I have the following in .bashrc, export PATH="/home/user/Software/anaconda3/bin:$PATH" , just do not know why the gcc in anaconda3 did not suppress the default old gcc. But anyway it works after I load gcc/7.2.0.

Thanks!
Potomac Firefly
Reply all
Reply to author
Forward
0 new messages