From: Frederick Cheung Date: 2008-09-07T21:51:29+09:00 Subject: Re: "gem install mysql" failing horribly on OS X leaopard On 7 Sep 2008, at 12:47, Doug Livesey wrote: > > > > "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/universal-darwin8.0 -I. > -I/usr/local/mysql/include -I/usr/local/include -g -O2 -fno-common > -pipe -fno-common conftest.c -L"/usr/local/lib" > -L"/usr/local/mysql/lib" -L"/usr/local/lib" -L"/usr/local/lib/mysql" > -arch i386 -lz -lm -lruby-static -lmysqlclient -lz -lm -lpthread - > ldl > -lobjc " > ld: warning in /usr/local/mysql/lib/libmysqlclient.dylib, file is > not of > required architecture This appears to be the key bit: you're asking for an i386 executable but that library is apparently a different architecture (lipo - detailed_info /usr/local/mysql/lib/libmysqlclient.dylib will tell you what it is) Fred > Undefined symbols: > "_mysql_query", referenced from: > _t in ccxGmlzF.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > checked program was: > /* begin */ > 1: /*top*/ > 2: int main() { return 0; } > 3: int t() { mysql_query(); return 0; } > /* end */ > > -------------------- > > > Can anyone offer me any advice on getting this to work? > Cheers, > Doug. > -- > Posted via http://www.ruby-forum.com/. >