Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Problem compiling source MySQL-python on atv2

Help
Skill83
2011-06-09
2012-09-19
  • Skill83
    Skill83
    2011-06-09

    Hi everybody, i'm trying to compile mysqldb on the atv2 i alredy istalled
    python2.5 mysql5.0.45 zlib1.2.3, i put threadsafe = False in site.cfg but when
    i try to compile it i can't because of this error:

    AppleTV:~/MySQL-python-1.2.3 root# python setup.py build

    running build

    running build_py

    copying MySQLdb/release.py -> build/lib.darwin-10.5-arm-2.5/MySQLdb

    running build_ext

    building '_mysql' extension

    arm-apple-darwin9-gcc -undefined dynamic_lookup -dynamiclib
    build/temp.darwin-10.5-arm-2.5/_mysql.o -L/usr/local/arm-apple-darwin/lib/
    -L/private/var/root/mysql/lib/mysql -lmysqlclient -lz -lm -o
    build/lib.darwin-10.5-arm-2.5/_mysql.dylib

    ld: library not found for -lm

    collect2: ld returned 1 exit status

    error: command 'arm-apple-darwin9-gcc' failed with exit status 1

    Somebody could help me please? wich library is missing???

     
  • Andy Dustman
    Andy Dustman
    2011-06-09

    The library for -lm would be libm. It seems to be a math library.