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 the gem. 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 the gem install. Does > > > > it have any relevance? > > > > > WARNING: Installing to ~/.gem since /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, > > > > gem executables 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] and mysql 5.0.67 installed and working fine > > > > > with Rails 2.1.0. > > > > > > "which ruby" outputs /usr/bin/ruby. I can see the mysql symlink in / > > > > > usr/local/mysql. I can also see the mysql-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 > > > > > the mysql gem, I get "ERROR: Failed to build gem native extension." I > > > > > tried all the following commands with and without sudo and get the > > > > > same error everytime > > > > > > > env ARCHFLAGS="-arch i386" gem install mysql -- > > > > > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > > > > > env ARCHFLAGS="-arch i386" gem install mysql -- > > > > > > --with-mysql-dir=/usr/local/mysql > > > > > > --with-mysql-lib=/usr/local/mysql/lib > > > > > > --with-mysql-include=/usr/local/mysql/include > > > > > > env ARCHFLAGS="-arch i386" gem install mysql -- > > > > > > --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" gem install mysql > > > > > > --with-mysql-dir=/usr/local/mysql > > > > > > gem install mysql -- --with-mysql-dir=/usr/local/mysql > > > > > > gem install mysql -- > > > > > > --with-mysql-config=/usr/local/mysql/bin/mysql_config > > > > > > Im not sure what Im doing wrong. Am I supposed to uninstall the > > > > > existing mysql and reinstall the latest (5.1.x) before I install the > > > > > mysql gem? Or are my ruby and mysql paths 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! -- 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.