linux installation error

30 views
Skip to first unread message

Xavier Giroux-Bougard

unread,
Nov 27, 2015, 11:50:24 AM11/27/15
to pyamg-user
Hello all,

I am trying to install pyamg from source on a linux mint machine. but I get the following error message:

linux@linux-MacPro ~/Desktop/pyamg-2.1.0 $ sudo python setup.py install
Running from numpy source directory.
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building extension "pyamg.amg_core._amg_core" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
copying pyamg/version.py -> build/lib.linux-x86_64-2.7/pyamg
copying build/src.linux-x86_64-2.7/pyamg/__config__.py -> build/lib.linux-x86_64-2.7/pyamg
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'pyamg.amg_core._amg_core' extension
compiling C++ sources
C compiler: c++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC

compile options: '-D__STDC_FORMAT_MACROS=1 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
c++: pyamg/amg_core/amg_core_wrap.cxx
sh: 1: c++: not found
sh: 1: c++: not found
error: Command "c++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -D__STDC_FORMAT_MACROS=1 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c pyamg/amg_core/amg_core_wrap.cxx -o build/temp.linux-x86_64-2.7/pyamg/amg_core/amg_core_wrap.o" failed with exit status 127


I am not quite certain why the compiler is failing, any suggestions?

Thanks fro your time!

Xavier

scipy version 0.13.3
numpy version 1.8.2
nose version 1.3.1

Luke

unread,
Nov 27, 2015, 11:55:43 AM11/27/15
to pyamg-user

Xavier

It looks like it's having difficulty finding a c++ compiler. 

1. What version of Mac OS X are you running?
2. Have you installed the Mac command-line tools with Xcode (so that you have a compiler)
3. What is the output of running c++ --version?

As an alternative, you could run pip install pyamg but again you'll need a working compiler.

Luke
Reply all
Reply to author
Forward
0 new messages