Menu

Problems installing on RedHat

Help
2006-07-05
2012-09-19
  • Javier de la Torre

    Hi,

    I am trying to install MySQL-python-1.2.1_p2 on RedHat and when doing:

    sudo python setup.py install

    I get:

    .....
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/mysql/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -unroll2 -ip -mp -restrict -Dversion_info="(1,2,1,'final',2)" -Dversion="1.2.1_p2"
    gcc: unrecognized option -restrict' cc1: error: unrecognized command line option "-ip" cc1: error: invalid optionp'
    error: command 'gcc' failed with exit status 1


    Any idea of what I can do? I thought trying to remove these options sent to gcc, but I do not know where they are coming from, there is no such a thing as a Make file no?

    Thanks.

    Javier.

     
    • Andy Dustman

      Andy Dustman - 2006-07-05

      I recommend you try this instead:

      python setup.py bdist_rpm

      and install the resulting RPM.

      Those compiler options are coming from one of two places:

      1) mysql_config
      2) Your Python installation's Makefile (probably /usr/local/python2.4/config/Makefile)

      My suspicion is if you are using mysql.com RPM packages, these are probably compiled with the Intel compiler and these options are for it. Not sure what the best solution is here, but you may have to hack setup.py to filter out these options.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.