Python: mysqldb install error - python

So i've been pulling my hair out trying to install the mysqldb package.
When i run the build i get a long transcript of errors, heres just part of it, i would posit it all but its huge list of errors
[rv#med240-183 MySQL-python-1.2.3c1]$ sudo python setup.py build
[sudo] password for rv:
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX
_mysql.c:36:23: error: my_config.h: No such file or directory
_mysql.c:38:19: error: mysql.h: No such file or directory
Any ideas?

yum install mysql-devel

Related

Error while installing pam-python-1.0.5

When i run make command i receive following error
rm -f html/index.html && ln -s pam_python.html html/index.html
make[1]: Leaving directory `/home/vagrant/pam-python-1.0.5/doc'
make --directory src
make[1]: Entering directory `/home/vagrant/pam-python-1.0.5/src'
gcc -O0 -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -g -o ctest ctest.c -lpam
CFLAGS="-Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" ./setup.py build
running build
running build_ext
building 'pam_python' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -fPIC -DLIBPYTHON_SO="libpython2.6.so.1.0" -I/usr/include/python2.6 -c pam_python.c -o build/temp.linux-x86_64-2.6/pam_python.o
In file included from /usr/include/python2.6/pyconfig.h:6,
from /usr/include/python2.6/Python.h:8,
from pam_python.c:36:
/usr/include/python2.6/pyconfig-64.h:1043:1: error: "_XOPEN_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from /usr/include/security/_pam_macros.h:12,
from pam_python.c:32:
/usr/include/features.h:164:1: error: this is the location of the previous definition
error: command 'gcc' failed with exit status 1
System which i am using is CentOs 6.7.
Is there any other way to directly install pam module for python so that it generated pam_python.so in lib64/security directory.
Suggest : Use the stable version = python-pam-1.8.2 .
The EL6 package : python-pam-1.8.2-2.el6.noarch.rpm ( 9.7kB ) https://drive.google.com/file/d/0B7S255p3kFXNQ1FrM1poTXR5Nmc/view?usp=sharing
Download the package, and ...
cd Downloads/
# yum install python-pam-1.8.2-2.el6.noarch.rpm
EDIT : About the other "module" = pam-python 1.0.5 : Seems I found a solution →
cd pam-python-1.0.5/src/
python setup.py build
... and the file build/lib.linux-x86_64-2.6/pam-python.so was created.
Install : # python setup.py install ... the install text shows what's installed ... pam_python.py, pam_python.pyc,
/usr/lib64/python2.6/site-packages/pam_python-1.0.5-py2.6-linux-x86_64.egg/pam_python.so

Can't install Pillow in Fedora23

(.newenv)[max#cyber life_besto]$ sudo pip install git+https://github.com/python-pillow/Pillow.git
Collecting git+https://github.com/python-pillow/Pillow.git
Cloning https://github.com/python-pillow/Pillow.git to /tmp/pip-zSgmXr-build
Installing collected packages: Pillow
Found existing installation: Pillow 3.0.0
Uninstalling Pillow-3.0.0:
Successfully uninstalled Pillow-3.0.0
Running setup.py install for Pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zSgmXr-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BMRc40-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
_____There are some codes_____
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c _imaging.c -o build/temp.linux-x86_64-2.7/_imaging.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Bands.c -o build/temp.linux-x86_64-2.7/libImaging/Bands.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/ConvertYCbCr.c -o build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Draw.c -o build/temp.linux-x86_64-2.7/libImaging/Draw.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/GifEncode.c -o build/temp.linux-x86_64-2.7/libImaging/GifEncode.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Filter.c -o build/temp.linux-x86_64-2.7/libImaging/Filter.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/LzwDecode.c -o build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Offset.c -o build/temp.linux-x86_64-2.7/libImaging/Offset.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/Quant.c -o build/temp.linux-x86_64-2.7/libImaging/Quant.ogcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/RawEncode.c -o build/temp.linux-x86_64-2.7/libImaging/RawEncode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/UnpackYCC.c -o build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/ZipEncode.c -o build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/tmp/pip-zSgmXr-build/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c libImaging/BoxBlur.c -o build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/_imaging.o build/temp.linux-x86_64-2.7/decode.o build/temp.linux-x86_64-2.7/encode.o build/temp.linux-x86_64-2.7/map.o build/temp.linux-x86_64-2.7/display.o build/temp.linux-x86_64-2.7/outline.o build/temp.linux-x86_64-2.7/path.o build/temp.linux-x86_64-2.7/libImaging/Access.o build/temp.linux-x86_64-2.7/libImaging/AlphaComposite.o build/temp.linux-x86_64-2.7/libImaging/Resample.o build/temp.linux-x86_64-2.7/libImaging/Bands.o build/temp.linux-x86_64-2.7/libImaging/BitDecode.o build/temp.linux-x86_64-2.7/libImaging/Blend.o build/temp.linux-x86_64-2.7/libImaging/Chops.o build/temp.linux-x86_64-2.7/libImaging/Convert.o build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o build/temp.linux-x86_64-2.7/libImaging/Copy.o build/temp.linux-x86_64-2.7/libImaging/Crc32.o build/temp.linux-x86_64-2.7/libImaging/Crop.o build/temp.linux-x86_64-2.7/libImaging/Dib.o build/temp.linux-x86_64-2.7/libImaging/Draw.o build/temp.linux-x86_64-2.7/libImaging/Effects.o build/temp.linux-x86_64-2.7/libImaging/EpsEncode.o build/temp.linux-x86_64-2.7/libImaging/File.o build/temp.linux-x86_64-2.7/libImaging/Fill.o build/temp.linux-x86_64-2.7/libImaging/Filter.o build/temp.linux-x86_64-2.7/libImaging/FliDecode.o build/temp.linux-x86_64-2.7/libImaging/Geometry.o build/temp.linux-x86_64-2.7/libImaging/GetBBox.o build/temp.linux-x86_64-2.7/libImaging/GifDecode.o build/temp.linux-x86_64-2.7/libImaging/GifEncode.o build/temp.linux-x86_64-2.7/libImaging/HexDecode.o build/temp.linux-x86_64-2.7/libImaging/Histo.o build/temp.linux-x86_64-2.7/libImaging/JpegDecode.o build/temp.linux-x86_64-2.7/libImaging/JpegEncode.o build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o build/temp.linux-x86_64-2.7/libImaging/Matrix.o build/temp.linux-x86_64-2.7/libImaging/ModeFilter.o build/temp.linux-x86_64-2.7/libImaging/MspDecode.o build/temp.linux-x86_64-2.7/libImaging/Negative.o build/temp.linux-x86_64-2.7/libImaging/Offset.o build/temp.linux-x86_64-2.7/libImaging/Pack.o build/temp.linux-x86_64-2.7/libImaging/PackDecode.o build/temp.linux-x86_64-2.7/libImaging/Palette.o build/temp.linux-x86_64-2.7/libImaging/Paste.o build/temp.linux-x86_64-2.7/libImaging/Quant.o build/temp.linux-x86_64-2.7/libImaging/QuantOctree.o build/temp.linux-x86_64-2.7/libImaging/QuantHash.o build/temp.linux-x86_64-2.7/libImaging/QuantHeap.o build/temp.linux-x86_64-2.7/libImaging/PcdDecode.o build/temp.linux-x86_64-2.7/libImaging/PcxDecode.o build/temp.linux-x86_64-2.7/libImaging/PcxEncode.o build/temp.linux-x86_64-2.7/libImaging/Point.o build/temp.linux-x86_64-2.7/libImaging/RankFilter.o build/temp.linux-x86_64-2.7/libImaging/RawDecode.o build/temp.linux-x86_64-2.7/libImaging/RawEncode.o build/temp.linux-x86_64-2.7/libImaging/Storage.o build/temp.linux-x86_64-2.7/libImaging/SunRleDecode.o build/temp.linux-x86_64-2.7/libImaging/TgaRleDecode.o build/temp.linux-x86_64-2.7/libImaging/Unpack.o build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o build/temp.linux-x86_64-2.7/libImaging/UnsharpMask.o build/temp.linux-x86_64-2.7/libImaging/XbmDecode.o build/temp.linux-x86_64-2.7/libImaging/XbmEncode.o build/temp.linux-x86_64-2.7/libImaging/ZipDecode.o build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o build/temp.linux-x86_64-2.7/libImaging/TiffDecode.o build/temp.linux-x86_64-2.7/libImaging/Incremental.o build/temp.linux-x86_64-2.7/libImaging/Jpeg2KDecode.o build/temp.linux-x86_64-2.7/libImaging/Jpeg2KEncode.o build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o build/temp.linux-x86_64-2.7/libImaging/QuantPngQuant.o -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L/usr/lib64 -ljpeg -lz -ltiff -lpython2.7 -o build/lib.linux-x86_64-2.7/PIL/_imaging.so
gcc: error: build/temp.linux-x86_64-2.7/_imaging.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/decode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/encode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/map.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/display.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/outline.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/path.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Access.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/AlphaComposite.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Resample.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Bands.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/BitDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Blend.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Chops.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Convert.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ConvertYCbCr.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Copy.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Crc32.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Crop.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Dib.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Draw.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Effects.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/EpsEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/File.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Fill.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Filter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/FliDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Geometry.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GetBBox.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GifDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/GifEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/HexDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Histo.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/JpegDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/JpegEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/LzwDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Matrix.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ModeFilter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/MspDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Negative.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Offset.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Pack.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PackDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Palette.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Paste.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Quant.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantOctree.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantHash.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantHeap.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcdDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcxDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/PcxEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Point.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RankFilter.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RawDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/RawEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Storage.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/SunRleDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/TgaRleDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Unpack.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/UnpackYCC.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/UnsharpMask.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/XbmDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/XbmEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ZipDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/ZipEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/TiffDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Incremental.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Jpeg2KDecode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Jpeg2KEncode.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o: No such file or directory
gcc: error: build/temp.linux-x86_64-2.7/libImaging/QuantPngQuant.o: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-ld: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of Pillow
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-zSgmXr-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BMRc40-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zSgmXr-build/
I also tried to install using pip install Pillow, but it didn't help too.
Try installing python-devel as well as redhat-rpm-config packages first (see how to do it here), then pip install Pillow.
More info on manual installation (as opposed to installing native OS packages like python-imaging) you'll find in official installation guide

Error with a python module installation

I have been trying to install banyan python modules to run python scripts.
I thought that it can be easily installed by using python command "pip install banyan"
However, I got error messages against my expectation. My gcc version is 4.4.7 and python 2.6.
and below large sentences are my error log files.
Can you give me suggestions how to fix my problems? I have already read the related previously posts
but I cannot solve it and every required modules is already installed with latest versions.
and never mind "gcc: unrecognized option '-Qunused-arguments'. It doesn't matter to my problem.
/usr/bin/pip run on Wed Oct 15 22:54:27 2014
Downloading/unpacking banyan
Running setup.py egg_info for package banyan
running egg_info
writing pip-egg-info/Banyan.egg-info/PKG-INFO
writing top-level names to pip-egg-info/Banyan.egg-info/top_level.txt
writing dependency_links to pip-egg-info/Banyan.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/Banyan.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/Banyan.egg-info/SOURCES.txt'
Source in /tmp/pip-build-sclee1/banyan has version 0.1.5, which satisfies requirement banyan
Installing collected packages: banyan
Running setup.py install for banyan
Running command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed
running install
running build
running build_py
running build_ext
building 'banyan_c' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/module.cpp -o build/temp.linux-x86_64-2.6/banyan/module.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/min_gap_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/min_gap_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree.cpp -o build/temp.linux-x86_64-2.6/banyan/tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/rank_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/rank_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/node.cpp -o build/temp.linux-x86_64-2.6/banyan/node.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree_view.cpp -o build/temp.linux-x86_64-2.6/banyan/tree_view.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/tree_view.cpp: In function ‘void tree_view_dealloc(TreeView*)’:
banyan/tree_view.cpp:37: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/tree_view.cpp:39: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/overlapping_intervals_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/overlapping_intervals_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_pyobject_utils.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_pyobject_utils.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/_int_imp/_pyobject_utils.cpp: In destructor ‘_CachedKeyPyObject::~_CachedKeyPyObject()’:
banyan/_int_imp/_pyobject_utils.cpp:416: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_pyobject_utils.cpp:418: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_build_tree_imp.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_build_tree_imp.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
In file included from banyan/_int_imp/_tree_imp_metadata_base.hpp:14,
from banyan/_int_imp/_tree_imp_lt_base.hpp:6,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp: In constructor ‘_PyObjectCachedKeyUniqueSorterIncer<true>::_PyObjectCachedKeyUniqueSorterIncer(PyObject*, const _CachedKeyPyObjectCacheGeneratorLT&)’:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:33: error: using ‘typename’ outside of template
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:35: error: using ‘typename’ outside of template
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:10,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘__MinGapMetadata<PyObject*>& __MinGapMetadata<PyObject*>::operator=(const __MinGapMetadata<PyObject*>::ThisT&)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:195: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘void __MinGapMetadata<PyObject*>::update(PyObject*, const __MinGapMetadata<PyObject*>::ThisT*, const __MinGapMetadata<PyObject*>::ThisT*)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:206: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:208: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:210: warning: suggest explicit braces to avoid ambiguous ‘else’
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:11,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘_PyObjectIntervalMaxMetadata& _PyObjectIntervalMaxMetadata::operator=(const _PyObjectIntervalMaxMetadata&)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:59: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In destructor ‘virtual _PyObjectIntervalMaxMetadata::~_PyObjectIntervalMaxMetadata()’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:73: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘void _PyObjectIntervalMaxMetadata::update(PyObject*, const _PyObjectIntervalMaxMetadata*, const _PyObjectIntervalMaxMetadata*)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:80: warning: suggest explicit braces to avoid ambiguous ‘else’
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
running build_ext
building 'banyan_c' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/module.cpp -o build/temp.linux-x86_64-2.6/banyan/module.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/min_gap_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/min_gap_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_set_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_set_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree.cpp -o build/temp.linux-x86_64-2.6/banyan/tree.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/rank_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/rank_metadata.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/node.cpp -o build/temp.linux-x86_64-2.6/banyan/node.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/frozen_dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/frozen_dict_tree.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/dict_tree.cpp -o build/temp.linux-x86_64-2.6/banyan/dict_tree.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/tree_view.cpp -o build/temp.linux-x86_64-2.6/banyan/tree_view.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/tree_view.cpp: In function ‘void tree_view_dealloc(TreeView*)’:
banyan/tree_view.cpp:37: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/tree_view.cpp:39: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/overlapping_intervals_metadata.cpp -o build/temp.linux-x86_64-2.6/banyan/overlapping_intervals_metadata.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_pyobject_utils.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_pyobject_utils.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
banyan/_int_imp/_pyobject_utils.cpp: In destructor ‘_CachedKeyPyObject::~_CachedKeyPyObject()’:
banyan/_int_imp/_pyobject_utils.cpp:416: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_pyobject_utils.cpp:418: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -Qunused-arguments -Qunused-arguments -fPIC -I/usr/local/include -Ibanyan -I/usr/include/python2.6 -c banyan/_int_imp/_build_tree_imp.cpp -o build/temp.linux-x86_64-2.6/banyan/_int_imp/_build_tree_imp.o
gcc: unrecognized option '-Qunused-arguments'
gcc: unrecognized option '-Qunused-arguments'
In file included from banyan/_int_imp/_tree_imp_metadata_base.hpp:14,
from banyan/_int_imp/_tree_imp_lt_base.hpp:6,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp: In constructor ‘_PyObjectCachedKeyUniqueSorterIncer<true>::_PyObjectCachedKeyUniqueSorterIncer(PyObject*, const _CachedKeyPyObjectCacheGeneratorLT&)’:
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:33: error: using ‘typename’ outside of template
banyan/_int_imp/_tree_imp_pyobject_cached_key_value_type_set_base.hpp:35: error: using ‘typename’ outside of template
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:10,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘__MinGapMetadata<PyObject*>& __MinGapMetadata<PyObject*>::operator=(const __MinGapMetadata<PyObject*>::ThisT&)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:175: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In destructor ‘virtual __MinGapMetadata<PyObject*>::~__MinGapMetadata()’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:195: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:197: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:199: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp: In member function ‘void __MinGapMetadata<PyObject*>::update(PyObject*, const __MinGapMetadata<PyObject*>::ThisT*, const __MinGapMetadata<PyObject*>::ThisT*)’:
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:206: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:208: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_min_gap_metadata_base.hpp:210: warning: suggest explicit braces to avoid ambiguous ‘else’
In file included from banyan/_int_imp/_tree_imp_lt_base.hpp:11,
from banyan/_int_imp/_tree_imp.hpp:7,
from banyan/_int_imp/_set_tree_imp.hpp:7,
from banyan/_int_imp/_build_tree_imp.cpp:9:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘_PyObjectIntervalMaxMetadata& _PyObjectIntervalMaxMetadata::operator=(const _PyObjectIntervalMaxMetadata&)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:59: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In destructor ‘virtual _PyObjectIntervalMaxMetadata::~_PyObjectIntervalMaxMetadata()’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:73: warning: suggest explicit braces to avoid ambiguous ‘else’
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp: In member function ‘void _PyObjectIntervalMaxMetadata::update(PyObject*, const _PyObjectIntervalMaxMetadata*, const _PyObjectIntervalMaxMetadata*)’:
banyan/_int_imp/_tree_imp_interval_max_metadata_base.hpp:80: warning: suggest explicit braces to avoid ambiguous ‘else’
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-sclee1/banyan
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.6/site-packages/pip/util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-sclee1/banyan/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CZTp63-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-sclee1/banyan
Why don't you try installing an executable file from http://www.lfd.uci.edu/~gohlke/pythonlibs/. I always use when there is an issue with pip/easy_install

SciPy installation fails: quadpack error

I tried to install scipy on my user account ~/local using both easy_install and the 'python setup.py install' method with source files. I get this error:
error: Setup script exited with error:
Command "gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE
-fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC
-I/usr/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6
-c scipy/integrate/_quadpackmodule.c
-o build/temp.linux-x86_64-2.6/scipy/integrate/_quadpackmodule.o"
failed with exit status 1
I'm using 'gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)'. Could this issue be related to the compiler or python2.6 version? Otherwise what could I check?
Thanks!
F.

Error when installing pyodbc-3.0.6 on Fedora

I am trying to install pyodbc-3.0.6 on Fedora.
I had downloaded it from here
When I run it with python setup.py install it's displaying the following error
running install
running bdist_egg
running egg_info
writing pyodbc.egg-info/PKG-INFO
writing top-level names to pyodbc.egg-info/top_level.txt
writing dependency_links to pyodbc.egg-info/dependency_links.txt
writing pyodbc.egg-info/PKG-INFO
writing top-level names to pyodbc.egg-info/top_level.txt
writing dependency_links to pyodbc.egg-info/dependency_links.txt
reading manifest file 'pyodbc.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'tests/*'
writing manifest file 'pyodbc.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pyodbc' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/home
creating build/temp.linux-x86_64-2.7/home/local
creating build/temp.linux-x86_64-2.7/home/local/PENNYWISE
creating build/temp.linux-x86_64-2.7/home/local/PENNYWISE/shivakrishnab
creating build/temp.linux-x86_64-2.7/home/local/PENNYWISE/shivakrishnab/Desktop
creating build/temp.linux-x86_64-2.7/home/local/PENNYWISE/shivakrishnab/Desktop/pyodbc-3.0.6
creating build/temp.linux-x86_64-2.7/home/local/PENNYWISE/shivakrishnab/Desktop/pyodbc-3.0.6/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=3.0.6 -I/usr/include/python2.7 -c /home/local/user/Desktop/pyodbc-3.0.6/src/buffer.cpp -o build/temp.linux-x86_64-2.7/home/local/user/Desktop/pyodbc-3.0.6/src/buffer.o -Wno-write-strings
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
Can anyone let me know how to solve this.
Edited Code:
After installing g++ as indicated by below command and when I run the following command
python setup.py install
from inside the pyodbc downloaded folder I got the following error
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pyodbc' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=3.0.6 -I/usr/include/python2.7 -c /home/local/user/Desktop/pyodbc-3.0.6/src/buffer.cpp -o build/temp.linux-x86_64-2.7/home/local/user/Desktop/pyodbc-3.0.6/src/buffer.o -Wno-write-strings
In file included from /home/local/user/Desktop/pyodbc-3.0.6/src/buffer.cpp:12:0:
/home/local/user/Desktop/pyodbc-3.0.6/src/pyodbc.h:48:17: fatal error: sql.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
You need to install g++ package. yum install compat-gcc-34-c++
(edit: it seems they moved it to compat-gcc-34-c++)
[edit]
For the second issue - you are missing unixODBC-devel package.
For CentOS the package name is gcc-c++
To suppress the exception:
sql.h: No file or directory in CentOS install unixODBC-devel.x86_64
Run the following command for 64-bit:
yum install unixODBC-devel.x86_64

Categories

Resources