Note that there are some explanatory texts on larger screens.

plurals
  1. POerror: Setup script exited with error: command 'gcc' failed with exit status 1
    primarykey
    data
    text
    <p>I get the following error when I try to install MySQL-python-1.2.3 under Python 2.6 in Fedora 14. </p> <p>Fedora 14 comes with Python 2.7 by default and I am working in a project which runs in Python 2.6, So I am not in a position to update Python from 2.6 to 2.7.</p> <pre><code>_mysql.c:35:23: fatal error: my_config.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 </code></pre> <p>The complete error message is as below</p> <pre><code>[root@localhost MySQL-python-1.2.2]# python setup.py build running build running build_py creating build creating build/lib.linux-i686-2.6 copying _mysql_exceptions.py -&gt; build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/converters.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/connections.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/cursors.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/release.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/times.py -&gt; build/lib.linux-i686-2.6/MySQLdb creating build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CR.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/ER.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/REFRESH.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants running build_ext building '_mysql' extension creating build/temp.linux-i686-2.6 gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/include/mysql -I/usr/local/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:35:23: fatal error: my_config.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 [root@localhost MySQL-python-1.2.2]# python2.6 setup.py build running build running build_py copying MySQLdb/release.py -&gt; build/lib.linux-i686-2.6/MySQLdb running build_ext building '_mysql' extension gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/include/mysql -I/usr/local/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:35:23: fatal error: my_config.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload