# gem install mysql --with-mysql-lib=/usr/local/mysql/lib ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --with-mysql-lib=/usr/local/mysql/lib --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
try: gem install mysql -- --with-mysql-lib=/usr/local/mysql/lib notice the double --''s with a space in between -Bill boo wrote:> # gem install mysql --with-mysql-lib=/usr/local/mysql/lib > ERROR: While executing gem ... (OptionParser::InvalidOption) > invalid option: --with-mysql-lib=/usr/local/mysql/lib > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I should have explained why as well. the first set of double dashes tells the gem command that any options following it are build options to be sent to the gem rather than options for the gem command itself. The command template looks like this: gem install GEMNAME [options] -- --build-flags [options] -Bill boo wrote:> # gem install mysql --with-mysql-lib=/usr/local/mysql/lib > ERROR: While executing gem ... (OptionParser::InvalidOption) > invalid option: --with-mysql-lib=/usr/local/mysql/lib > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---