Re: Installing MySQL-Python



Cathy Hui wrote:
Do u know why do i get the following message
error: command 'gcc' failed with exit status 1

yes:
error: command 'gcc' failed with exit status 1

means: there's no compiler gcc ...

kai

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)
<unknown>                           0x840
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0x84c
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0x9b4
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0x9bc
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0x9f8
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0xa04
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0xa98
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0xaac
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0xad0
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           0xae0
/usr/local/mysql/lib/mysql/libmysqlclient_r.a(default.o)
<unknown>                           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

.



Relevant Pages

  • problem in compiling C API in mingw
    ... I wonder if so far only Python 2.5.x support c extension. ... collect2: ld returned 1 exit status ...
    (comp.lang.python)
  • Re: Scriptbasic - Compiling the generated C code
    ... compiler), which I have used in the past, tell me that it has a GCC ... a command line similar to Microsoft C. ... collect2: ld returned 1 exit status ...
    (comp.os.linux.development.system)
  • sphere.f program error F77
    ... Hello forum I tried to run this code with gfortran and I obtained the following error: ... collect2: ld returned 1 exit status ... IT THEN CALLS BHMIE, ...
    (comp.lang.fortran)
  • Re: PyQt-x11-gpl-3.16 compile error
    ... collect2: ld returned 1 exit status ... Checking to see if the qtnetwork module should be built... ... distributions, and may also work for other distributions. ...
    (comp.lang.python)
  • Re: Posix fortran and the gnu toolchain
    ... collect2: ld returned 1 exit status ... So I deleted the libposix90.a that I had put in the same directory as the caller, which only left the one in the lib subdirectory. ... blev1.f90:: undefined reference to ...
    (comp.lang.fortran)