Menu

Install on OS10.2.1 - -arch flag: i386

Help
Don
2002-09-25
2012-09-19
  • Don

    Don - 2002-09-25

    Greetings -
    I am trying to install on OS 10.2.1 on a PowerBook G4.

    You and I know this is a PPC machine, but it seems to the python setup that is is an i386.

    I am getting the following errors:

    Blah blah

    running build_ext
    building '_mysql' extension
    skipping _mysql.c (build/temp.darwin-6.1-Power Macintosh-2.2/_mysql.o up-to-date)
    gcc -arch i386 -arch ppc -bundle -flat_namespace -undefined suppress build/temp.darwin-6.1-Power Macintosh-2.2/_mysql.o -L/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient -lz -o build/lib.darwin-6.1-Power Macintosh-2.2/_mysql.so -flat_namespace
    ld: for architecture i386
    ld: warning /usr/lib/bundle1.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
    ld: warning build/temp.darwin-6.1-Power Macintosh-2.2/_mysql.o cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
    ld: warning /usr/local/mysql/lib/libmysqlclient.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
    ld: warning /usr/lib/libz.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
    ld: warning /usr/lib/gcc/darwin/3.1/libgcc.a archive's cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can't load from it)
    ld: warning /usr/lib/libSystem.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)

    Python seems to be running okay with other things - I installed the PyXML modules without a hitch. Very weird - the reference to i386.

    Hope someone can help

    Don

     
    • Kent Sandvik

      Kent Sandvik - 2002-10-31

      Hi, that's strange. I just built MySQLdb with two 10.2 systems, the only thing I had to do was to go into setup.py and change the library and include paths so the libraries and headers were found.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.