I had install MySQL 4.1 successfully in kwort linux.
Now when i run python setup.py build
i got this error message:
running build.
running build_py
copying MySQLdb/release.py -> build/lib.linux-i586-2.5/ MySQLdb
running build_ext
building 'mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -03 -march=i486 -mtune=i686 -Dversion_info=(1,2,2,'final', 0) -Dversion=1.2.2 -I/usr/local/mysql/include -I/usr/include/python2.5 -c _mysql.c -o build/temp.linux-i586-2.5/ mysql.o
In file included from /usr/include/bits/posix1_lim. h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/limits.h: 122,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/syslimits. h:7,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/limits.h: 11,
from /usr/include/python2.5/Python. h:18,
from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/bits/local_lim.h: 36:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/errno.h:36,
from /usr/include/python2.5/Python. h:39,
from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/bits/errno.h:25: 26 error: linux/errno.h:No such file or directory
error: command 'gcc' failed with exit status 1
currently using python 2.5.1
thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have a fundamental problem with your Linux installation, this isn't a MySQLdb problem. You're missing all or most of the headers that come with the Linux kernel and are necessary to many things (really, nearly anything) built on glibc.
Work with people who know your distribution to fix any missing symlinks (maybe a link from /usr/include to the kernel source's include directory) or missing packages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I had install MySQL 4.1 successfully in kwort linux.
Now when i run python setup.py build
i got this error message:
running build.
running build_py
copying MySQLdb/release.py -> build/lib.linux-i586-2.5/ MySQLdb
running build_ext
building 'mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -03 -march=i486 -mtune=i686 -Dversion_info=(1,2,2,'final', 0) -Dversion=1.2.2 -I/usr/local/mysql/include -I/usr/include/python2.5 -c _mysql.c -o build/temp.linux-i586-2.5/ mysql.o
In file included from /usr/include/bits/posix1_lim. h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/limits.h: 122,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/syslimits. h:7,
from /usr/lib/gcc/i486-slackware- linux/4.1.2/include/limits.h: 11,
from /usr/include/python2.5/Python. h:18,
from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/bits/local_lim.h: 36:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/errno.h:36,
from /usr/include/python2.5/Python. h:39,
from pymemcompat.h:10,
from _mysql.c:29:
/usr/include/bits/errno.h:25: 26 error: linux/errno.h:No such file or directory
error: command 'gcc' failed with exit status 1
currently using python 2.5.1
thanks.
You have a fundamental problem with your Linux installation, this isn't a MySQLdb problem. You're missing all or most of the headers that come with the Linux kernel and are necessary to many things (really, nearly anything) built on glibc.
Work with people who know your distribution to fix any missing symlinks (maybe a link from /usr/include to the kernel source's include directory) or missing packages.