Install MySQL-python-0.9.1
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The system has Python 2.3.3 and Mysql 4.0.21 installed. This is where I downloaded the distribution of the Mysql-python package: http://www.ravenbrook.com/project/p4dti/import/2001-10-16/MySQL-python-0.9.1/MySQL-python-0.9.1.tar.gz I have been doing whatever instructed from the README file. i.e. change the setup.py according to what OS I'm using: elif sys.platform == "sunos5": # Solaris 2.8 include_dirs = ['/usr/local/mysql/include/mysql'] library_dirs = ['/usr/local/mysql/lib/mysql'] libraries = [mysqlclient, "z"] runtime_library_dirs = ['/usr/local/lib:/usr/openwin/lib:/usr/dt/lib'] extra_objects = [] Then run the setup.py script with Python, here is the problem. I am encountering the following issue when running the setup.py script. Do u know why is that? Thanks! == python setup.py build Traceback (most recent call last): File "setup.py", line 123, in ? extra_objects=extra_objects, File "/usr/local/lib/python2.3/distutils/core.py", line 101, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python2.3/distutils/dist.py", line 130, in __init__ setattr(self, method_name, getattr(self.metadata, method_name)) AttributeError: DistributionMetadata instance has no attribute 'get___doc__' python setup.py install Traceback (most recent call last): File "setup.py", line 123, in ? extra_objects=extra_objects, File "/usr/local/lib/python2.3/distutils/core.py", line 101, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python2.3/distutils/dist.py", line 130, in __init__ setattr(self, method_name, getattr(self.metadata, method_name)) AttributeError: DistributionMetadata instance has no attribute 'get___doc__' -- http://mail.python.org/mailman/listinfo/python-list
Installing MySQL-Python
Do u know why do i get the following message when trying to build the MySql-Python (1.2.0) on my Solaris 8 system? (with mysql 4.0.21 and python 2.4). thanks! error mesg: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 see below for the log = # python setup.py build unknown> 0x5c8 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x840 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x84c /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9b4 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9bc /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0x9f8 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xa04 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xa98 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xaac /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xad0 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xae0 /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) 0xb0c /usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o) . . . ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list
Re: Install MySQL-python-0.9.1
Thanks, now I am trying with Mysql-python-1.2.0. There is an other issue I am encoutering when trying to build, do u know why? (please see below) === ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list
Re: Installing MySQL-Python
but the gcc was installed on this system tho: gcc -v Reading specs from /export/home/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.4.2 -- http://mail.python.org/mailman/listinfo/python-list