Okay ... RESOLVED! :D I left the mysql installation as such in /usr/local . I had been running the ruby and rails shipped with leopard in /usr/ bin. Followed the hivelogic article (http://hivelogic.com/articles/ruby- rails-leopard) to roll my own installations in /usr/local/ and then ran "sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql" . Worked like a charm!
Thank you all for the help! :) On Jun 17, 9:15 pm, Ram <yourstruly.vi...@gmail.com> wrote: > :) I do. And no, not a dumb question. Im happy answering *any* > question if it means you can help me fix this hair-loss-causing > issue!!! > > On Jun 17, 5:21 pm, Frederick Cheung <frederick.che...@gmail.com> > wrote: > > > > > On Jun 17, 9:58 am, Ram <yourstruly.vi...@gmail.com> wrote: > > > > Hello Fred, > > > > I can see the following errors in the mkmf.log residing in ../ > > >mysql-2.8.1/ext/mysql_api/ . > > > dumb question: do you have the apple developer tools installed? > > > Fred > > > > 1. (Under "find_library: checking for mysql_query() in - > > > lmysqlclient... -------------------- no") > > > conftest.c: In function 't': > > > conftest.c:3: error: 'mysql_query' undeclared (first use in this > > > function) > > > conftest.c:3: error: (Each undeclared identifier is reported only once > > > conftest.c:3: error: for each function it appears in.) > > > > 2. (Under "find_library: checking for mysql_query() in - > > > lmysqlclient... -------------------- no") > > > ld: library not found for -lmysqlclient > > > collect2: ld returned 1 exit status > > > > 3. ld: library not found for -lmygcc (Under "have_library: checking > > > for main() in -lmygcc... -------------------- no") > > > > 4. ld: library not found for -lnsl (Under "have_library: checking for > > > main() in -lnsl... -------------------- no") > > > > 5. ld: library not found for -lsocket (Under "have_library: checking > > > for main() in -lsocket... -------------------- no") > > > > Hope that helps. Thanks! > > > > On Jun 17, 1:37 pm, Frederick Cheung <frederick.che...@gmail.com> > > > wrote: > > > > > On Jun 16, 12:07 pm, Ram <yourstruly.vi...@gmail.com> wrote: > > > > > > <on my knees now> :S > > > > > > Im not comfortable uninstalling everything and installing it from > > > > > scratch again. Dont want to lose my existing setup. Pointers from > > > > > anyone at all? > > > > > There should be a log file detailing what went wrong when it tried to > > > > build thegem. What's in it? > > > > > Fred > > > > > > On Jun 15, 1:52 pm, Ram <yourstruly.vi...@gmail.com> wrote: > > > > > > > I also get this warning in the very beginning of thegeminstall. Does > > > > > > it have any relevance? > > > > > > > WARNING: Installing to ~/.gemsince /Library/Ruby/Gems/1.8 and > > > > > > /usr/bin aren't both writable. > > > > > > WARNING: You don't have /Users/Ram/.gem/ruby/1.8/bin in your PATH, > > > > > > gemexecutables will not run. > > > > > > > On Jun 15, 1:41 pm, Ram <yourstruly.vi...@gmail.com> wrote: > > > > > > > > Hello all, > > > > > > > > Ive got Mac OS X Leopard (10.5.8), ruby 1.8.6 (2009-06-08 > > > > > > > patchlevel > > > > > > > 369) [universal-darwin9.0] andmysql5.0.67 installed and working > > > > > > > fine > > > > > > > with Rails 2.1.0. > > > > > > > > "which ruby" outputs /usr/bin/ruby. I can see themysqlsymlink in / > > > > > > > usr/local/mysql. I can also see themysql-5.0.67-osx10.5-x86 folder > > > > > > > in /usr/local . > > > > > > > > Im trying to upgrade my Rails apps to 2.3.5 but when i try to > > > > > > > install > > > > > > > themysqlgem, I get "ERROR: Failed to buildgemnative extension." I > > > > > > > tried all the following commands with and without sudo and get the > > > > > > > same error everytime > > > > > > > > > env ARCHFLAGS="-arch i386"geminstallmysql-- > > > > > > > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > > > > > > > env ARCHFLAGS="-arch i386"geminstallmysql-- > > > > > > > > --with-mysql-dir=/usr/local/mysql--with-mysql-lib=/usr/local/mysql/lib > > > > > > > > --with-mysql-include=/usr/local/mysql/include > > > > > > > > env ARCHFLAGS="-arch i386"geminstallmysql-- > > > > > > > > --with-mysql-dir=/usr/local/mysql--with-mysql-lib=/usr/local/mysql/lib > > > > > > > > --with-mysql-include=/usr/local/mysql/include > > > > > > > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > > > > > > > env ARCHFLAGS="-arch > > > > > > > > i386"geminstallmysql--with-mysql-dir=/usr/local/mysql > > > > > > > >geminstallmysql-- --with-mysql-dir=/usr/local/mysql > > > > > > > >geminstallmysql-- > > > > > > > >--with-mysql-config=/usr/local/mysql/bin/mysql_config > > > > > > > > Im not sure what Im doing wrong. Am I supposed to uninstall the > > > > > > > existingmysqland reinstall the latest (5.1.x) before I install the > > > > > > >mysqlgem? Or are my ruby andmysqlpaths screwed up? Ive googled a > > > > > > > lot and tried all the suggestions (as you can see above) but none > > > > > > > work. > > > > > > > > I raised this issue already in the group but no replies yet. So > > > > > > > I've > > > > > > > reframed it in a simpler fashion. Even if noone knows the solution > > > > > > > right away, I'd really appreciate any inputs at all. > > > > > > > > Thanks!- Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.