Назад | Перейти на главную страницу

Ошибка 'gcc' со статусом выхода 1 - MySQL-python-1.2.3

Я устанавливаю MySQL db для python2.6. Я установил это из Вот но когда я на связи

Я извлек файл, и когда я это сделал

python2.6 setup.py build

дает много ошибок и конфликтов и заканчивается некоторыми строками

_mysql.c: At top level:
_mysql.c:2331: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:2338: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:2345: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2352: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2359: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2422: error: â_mysql_ResultObjectâ has no member named âconverterâ
_mysql.c:2422: error: initializer element is not constant
_mysql.c:2422: error: (near initialization for â_mysql_ResultObject_memberlist[0].offsetâ)
_mysql.c: In function â_mysql_ConnectionObject_getattrâ:
_mysql.c:2444: error: â_mysql_ConnectionObjectâ has no member named âopenâ
error: command 'gcc' failed with exit status 1

РЕДАКТИРОВАТЬ

команда

# yum --enablerepo=smartfile install MySQL-python26

это говорит

 perl-DBD-MySQL-3.0007-2.el5.x86_64 from installed has depsolving problems
--> Missing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by   package perl-DBD-MySQL-3.0007-2.el5.x86_64 (installed)
 php-mysql-5.1.6-27.el5_5.3.x86_64 from installed has depsolving problems
--> Missing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by package php-mysql-5.1.6-27.el5_5.3.x86_64 (installed)
 mysql-5.0.77-4.el5_6.6.i386 from base has depsolving problems
--> mysql conflicts with MySQL-server
 php-mysql-5.1.6-27.el5_5.3.x86_64 from installed has depsolving problems
 --> Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package php-mysql- 5.1.6-27.el5_5.3.x86_64 (installed)
 perl-DBD-MySQL-3.0007-2.el5.x86_64 from installed has depsolving problems
 --> Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package perl-DBD-  MySQL-3.0007-2.el5.x86_64 (installed)
 MySQL-python-1.2.1-1.x86_64 from installed has depsolving problems
--> Missing Dependency: libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by package MySQL-python-1.2.1-1.x86_64 (installed)
 MySQL-python-1.2.1-1.x86_64 from installed has depsolving problems
 --> Missing Dependency: libmysqlclient_r.so.15()(64bit) is needed by package MySQL-   python-1.2.1-1.x86_64 (installed)
 Error: Missing Dependency: libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by package MySQL-python-1.2.1-1.x86_64 (installed)
 Error: Missing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by package perl-DBD-MySQL-3.0007-2.el5.x86_64 (installed)
 Error: Missing Dependency: libmysqlclient_r.so.15()(64bit) is needed by package MySQL-python-1.2.1-1.x86_64 (installed)
 Error: Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package php-mysql-5.1.6-27.el5_5.3.x86_64 (installed)
 Error: mysql conflicts with MySQL-server
 Error: Missing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by package php-mysql-5.1.6-27.el5_5.3.x86_64 (installed)
 Error: Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package perl-DBD-MySQL-3.0007-2.el5.x86_64 (installed)

но когда я нашел sqlclient, я получил

[root@domain ~]locate libmysqlclient
/usr/lib64/mysql/libmysqlclient.so.15
/usr/lib64/mysql/libmysqlclient.so.15.0.0
/usr/lib64/mysql/libmysqlclient_r.so.15
/usr/lib64/mysql/libmysqlclient_r.so.15.0.0

Как я могу предоставить ссылку на это? РЕДАКТИРОВАТЬ 2

команда

 [root@domain /]# yum whatprovides libmysqlclient.so.15

говорит

 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
 * base: mirror.steadfast.net
 * epel: mirror.steadfast.net
 * extras: mirror.wiredtree.com
 * updates: mirror.wiredtree.com
   base             | 1.1 kB     00:00
   chl              |  951 B     00:00
   chl-source       |  951 B     00:00
   epel             | 3.7 kB     00:00
   epel/primary_db  | 3.8 MB     00:00
   extras           | 2.1 kB     00:00
   smartfile        |  951 B     00:00
   updates          | 1.9 kB     00:00
   mysql-5.0.77-4.el5_6.6.i386 : MySQL client programs and shared libraries
   Repo        : base
   Matched from:
   Other       : libmysqlclient.so.15

РЕДАКТИРОВАТЬ 3

[root@domain ~]# rpm -qa | grep -i mysql

урожай

mysql-5.0.77-4.el5_6.6
mysql-server-5.0.77-4.el5_6.6
mysql-devel-5.0.77-4.el5_6.6
perl-DBD-MySQL-3.0007-2.el5
php-mysql-5.1.6-27.el5_5.3

означает, что mysql и mysql-server имеют одинаковую версию.

Если вы используете smartfile репо, то почему бы не установить MySQL-python отсюда:

# yum --enablerepo=smartfile install MySQL-python26