Ram
2010-Jun-15 08:41 UTC
mysql gem install not happening on Mac OS Leopard - any inputs at all??
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_configIm 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-15 08:52 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-16 11:07 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
<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? On Jun 15, 1:52 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Jun-16 15:58 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
On Tue, Jun 15, 2010 at 1:41 AM, Ram <yourstruly.vinay-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.> Im trying to upgrade my Rails apps to 2.3.5 but when i try to install > the mysql gemIf it was "working fine with Rails 2.1.0" and you''re just upgrading Rails itself, why are you trying to (re-)install the mysql gem? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-17 05:06 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
Im not re-installing the mysql gem. I have been using the Ruby based mysql library that used to ship with Rails by default (pre 2.2). If I am to migrate to Rails 2.3 then I HAVE to install the gem now. On Jun 16, 8:58 pm, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Jun 15, 2010 at 1:41 AM, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Ive got Mac OS XLeopard(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. > > Im trying to upgrade my Rails apps to 2.3.5 but when i try to install > > themysqlgem > > If it was "working fine with Rails 2.1.0" and you''re just upgrading Rails > itself, why are you trying to (re-)install themysqlgem? > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Jun-17 08:37 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
On Jun 16, 12:07 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-17 08:58 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
Hello Fred, I can see the following errors in the mkmf.log residing in ../ mysql-2.8.1/ext/mysql_api/ . 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 16, 12:07 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Jun-17 12:21 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
On Jun 17, 9:58 am, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On Jun 16, 12:07 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-17 16:15 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
:) 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 17, 9:58 am, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > On Jun 16, 12:07 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jun-28 18:23 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On Jun 17, 9:58 am, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > > > > On Jun 16, 12:07 pm, Ram <yourstruly.vi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jul-06 20:28 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
Ram wrote:> 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!Hivelogic''s advice to roll your own Ruby installation is generally pointless and silly on Leopard (unless you''re using 1.9). Now that you have it all running, I suggest that you get it working with the system Ruby (which it *will* do) and delete the unnecessary Hivelogic one.> > Thank you all for the help! :)Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ram
2010-Jul-07 04:29 UTC
Re: mysql gem install not happening on Mac OS Leopard - any inputs at all??
Hello Marnen, On the contrary, I find hivelogic''s logic (:P) quite sound. I understand that the possibility of software updates breaking the environment is kinda remote, but learning to build from source and knowing exactly where your software is helps a lot. Whats the point in developing in RoR but having little knowledge of where your components are installed on your machine or how to update them? I help maintain a couple other Macs where we followed hivelogic''s article the very day the Macs were opened from their boxes, and they have no issues whatsoever in maintenance. In contrast, my setup has been giving trouble regularly. Still remains to be seen though, whether having hivelogic''s setup on top now on my machine will work consistently :). Besides, gem install mysql simply dint work in my older setup. Spent couple of weeks on it. On Jul 7, 1:28 am, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Ram wrote: > > Okay ... RESOLVED! :D > > > I left themysqlinstallation 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 "sudogeminstallmysql-- --with-mysql-dir=/usr/local/mysql" . > > Worked like a charm! > > Hivelogic''s advice to roll your own Ruby installation is generally > pointless and silly on Leopard (unless you''re using 1.9). Now that you > have it all running, I suggest that you get it working with the system > Ruby (which it *will* do) and delete the unnecessary Hivelogic one. > > > > > Thank you all for the help! :) > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.