Error in installing the mysql-python-1.2.3.tar.gz


 
Thread Tools Search this Thread
Operating Systems Solaris Error in installing the mysql-python-1.2.3.tar.gz
# 1  
Old 04-27-2011
Error in installing the mysql-python-1.2.3.tar.gz

Hi,

I followed the step written in README.
It got some error message when I type " #python setup.py build"

Code:
running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.11-i86pc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/lib/python2.4/pycc -DNDEBUG -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/usr/include/python2.4 -c _mysql.c -o build/temp.solaris-2.11-i86pc-2.4/_mysql.o -m32 -KPIC -g -mt -fsimple=1 -ftrap=%%none -nofstore -xbuiltin=%%all -xlibmil -xlibmopt -xtarget=generic
gcc: warning: `-x target=generic' after last input file has no effect
gcc: unrecognized option `-KPIC'
gcc: unrecognized option `-nofstore'
cc1: error: invalid option `t'
cc1: error: unrecognized command line option "-fsimple=1"
cc1: error: unrecognized command line option "-ftrap=%%none"
error: command '/usr/lib/python2.4/pycc' failed with exit status 1

I don't what does it mean? Can you please tell me what's wrong with this? and how can I solve it?

---------- Post updated 04-27-11 at 04:58 AM ---------- Previous update was 04-26-11 at 08:42 PM ----------

please help me~~

Last edited by DukeNuke2; 04-27-2011 at 02:35 AM..
# 2  
Old 04-27-2011
Seem like the wrong version of GCC. Look into the prerequisites. For many products, the ./configure pre-run discovers if you have a compatible compiler. SourceForge.net: MySQL for Python: Topic: problem building on Solaris 2.9 (SunOS 5.9)
# 3  
Old 04-27-2011
Thanks. I get it, but how can I fix it?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error installing MySQL 8 on RHEL 7

My yum install command is failing. I first did yum clean all I even tried with localinstall. Below is the error output: yum install mysql-community-server*.rpm Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an... (8 Replies)
Discussion started by: mohtashims
8 Replies

2. Programming

Python tar script; no errors; no output

This script produces no errors. It also does not produce an output file. Any ideas? #!/usr/bin/python import tarfile output_filename = 'etc.tar' source_dir = '/etc/' #To build a .tar.gz for an entire directory tree: def make_tarfile(output_filename, source_dir): with... (2 Replies)
Discussion started by: bash_in_my_head
2 Replies

3. Red Hat

Problem in installing mysql

Hi i am trying to install mysql rpm package on my linux machine but getting below error : warning: MySQL-embedded-5.5.28-1.rhel5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: MySQL-devel is needed by MySQL-embedded-5.5.28-1.rhel5.i386 ... (9 Replies)
Discussion started by: mukulverma2408
9 Replies

4. Shell Programming and Scripting

Error in installing mysql on unix server

Hi , I am trying to install mysql but getting below error $# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) can anyone provide me this file 'mysql.sock' Thanks (6 Replies)
Discussion started by: aish11
6 Replies

5. BSD

Installing MySQL package

Hey all I'm having a little trouble installing a MySQL database. This is what I tried... export PKG_PATH=ftp://mirror.planetunix.net/pub/OpenBSD/4.9/packages/`machine -a` pkg_add -v mysql-server mysql-client and this is what I get Unknown element: @rcscript /etc/rc.d/mysqld in... (1 Reply)
Discussion started by: desreguard
1 Replies

6. Programming

Python MySQL error

Hey all, I'm trying to enter some data into a database and I keep getting this error: Traceback (most recent call last): File "./ais_file_parser.py", line 77, in <module> cursor.execute(sql) File "/usr/lib/pymodules/python2.7/MySQLdb/cursors.py", line 166, in execute ... (1 Reply)
Discussion started by: pmd006
1 Replies

7. Linux

MySQL python installation

Hi I am using CentOS 4 machine..trying to install MySQL for python to setup a boinc project.. During the building process I am getting this error..I have even set the LD_lIBRARY_PATH to /usr/local/lib where the libmysqlclient.so file is present.. ./python -E ./setup.py build ./python: error... (1 Reply)
Discussion started by: Gayathrirri
1 Replies

8. UNIX for Advanced & Expert Users

Error during installing DBD-mysql-4.005

Hi, Iam not able to install DBD-mysql-4.005 into my Sun machine as the error comes - perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config I will use the following settings for compiling and testing: cflags (mysql_config ) = -I/usr/local/mysql/include/mysql ... (2 Replies)
Discussion started by: aditya.ece1985
2 Replies

9. UNIX and Linux Applications

help: error in installing perl module DBD::mysql

Hi, I am trying to install perl module DBD::mysql and don't know how to resolve the following: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.............ok 3/5install_driver(mysql) failed: Can't load... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies

10. UNIX for Dummies Questions & Answers

Uninstalling Mysql 5.0.15 tar file

Hi Everyone, I want to uninstall mysql-standard-5.0.15-linux-i686.tar. The problem is i don't no how to uninstall tar file. I know how to uninstall it through rpm but we have a binary file. can we use make uninstall or remove comand to do so? Or there is some other way of unistalling tar files.... (1 Reply)
Discussion started by: atul.saxena
1 Replies
Login or Register to Ask a Question