3ecommunications.net

Home > Failed To > Error Installing Mysql2: Error: Failed To Build Gem Native Extension.

Error Installing Mysql2: Error: Failed To Build Gem Native Extension.

Contents

How can "USB stick" online identification possibly work? Are people of Nordic Nations "happier, healthier" with "a higher standard of living overall than Americans"? Browse other questions tagged mysql ruby osx-leopard or ask your own question. Just install it before ``` gem install mysql2 ``` or ``` rails new app_name -d mysql ```. –bestmike007 Jan 8 '15 at 3:55 worked for me.. –q0re Feb 4 http://3ecommunications.net/failed-to/error-failed-to-build-gem-native-extension-mysql2.html

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby --help --clean /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install Not the answer you're looking for? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed no checking for mysql_query() in -lmysqlclient... http://stackoverflow.com/questions/11881785/gem-install-mysql-failed-to-build-gem-native-extension-mac-lion

Error Installing Mysql2: Error: Failed To Build Gem Native Extension.

no checking for mysql_query() in -lmysqlclient... Well, it didn't really help me much… The command causing looked like this: xcrun cc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common Try specifying the MySQL directory, e.g. Can the integral of a function be larger than function itself?

Did 17 U.S. fails): Version issues Try upgrading the ruby version using rbenv. This could take a while... Uninitialized Constant Mysql2::client::secure_connection Error installing mysql2: Failed to build gem native extension I would recommend to use the normal command prompt.

Continuing with compilation. Where can I find Boeing 777 safety records? Once I got that on my PATH, I was able to install it without a problem. –justspamjustin Jan 28 '14 at 14:02 2 I had to sudo locate mysql_config to http://stackoverflow.com/questions/8389301/os-x-rails-failed-to-build-gem-native-extension I opened it, and agreed to the terms/conditions, then everything after that went smoothly with rails.

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Gem::ext::builderror: Error: Failed To Build Gem Native Extension. Are the guns on a fighter jet fixed or can they be aimed? no checking for main() in -lm... The next step is to download the gem for your ruby/rails use sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- \ --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include The next error encountered is when

Don't Know How To Set Rpath On Your System, If Mysql Libraries Are Not In Path Mysql2 May Not Load

Give an indeterminate limit of a function that is always indeterminate with iterated attempts at l'Hopital's Rule. click site share|improve this answer edited Jun 30 '15 at 6:50 bummi 22.9k83567 answered Jun 30 '15 at 4:00 Bishisht Bhatta 90110 add a comment| up vote 2 down vote You need to Error Installing Mysql2: Error: Failed To Build Gem Native Extension. This site is not affiliated with or endorsed by Apple Inc. Ruby Mysql Gem Conflicting definitions of quasipolynomial time Is it bad practice to use GET method as login username/password for administrators?

try with gem install mysql2 Its working.. this contact form JSON Gem0ERROR: Failed to build gem native extension. - can't install breakpoint and singularity0gem install rails build error failed to build gem native extension0Ruby not installing json -v 1.8.1 as part Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out doing "which mysql" on the command line returns nothing, which means it's not recognizing it. Does every data type just boil down to nodes with pointers? Error Installing Nokogiri: Error: Failed To Build Gem Native Extension.

You may need configuration options. Use xcode-select -switch , or see the xcode-select manpage (man xcode-select) for further information. I can confirm that installing the command line tools fixes it. http://3ecommunications.net/failed-to/failed-to-build-gem-native-extension-mysql2-mac.html ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for ruby/thread.h...

I got this error because I was on a new Mac and didn't have XCode installed on this machine (using another one for Mac development). Ld: Library Not Found For -lssl I upgraded ruby installation through rbenv to 2.2.0, made that the global default ruby installation, and this issue was fixed. I then do a ‘bundle install’ and it gripes about not having mysql2 gem installed.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

Results logged to /Users/serg/.rvm/gems/ree-1.8.7-head/gems/mysql-2.8.1/ext/mysql_api/gem_make.out How can i fix that? mysql2 is miles better than the original. –Damien Wilson Feb 11 '11 at 8:08 2 to install mssql with homebrew, type command : "brew install mysql". –Pierre-Gilles Levallois Mar 30 Keeping windshield ice-free without heater Can this number be written in (3^x) - 1 format? How to make random draws from an unspecified distribution? 12 hour to 24 hour time converter At what point is brevity no longer a virtue?

Where can I report criminal intent found on the dark web? Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.7.2/ext/nokogiri/gem_make.out el-capitan ruby rails share|improve this question edited May 24 '16 at 6:51 Graham Miln 17.8k34566 asked May 24 '16 at 1:39 rbApostate 103 add a comment| 1 no checking for main() in -lz... Check This Out Solving the integral of a function with modulus What early computers had excellent BASIC (or other language) at bootup?

According to Xcode 5.1 Release Notes: The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. What am I doing wrong? We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. Move directories despite of errors How does Decomission (and Revolt) work with multiple permanents leaving the battlefield?

no checking for main() in -lmygcc... Results logged to /Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.15/ext/mysql2/gem_make.out mysql ruby share|improve this question asked Apr 6 '14 at 3:52 Adler Hsieh 34429 marked as duplicate by karlphillip, Nakilon, Jonesopolis, karthik, trudyscousin Apr 20 '14 at Are people of Nordic Nations "happier, healthier" with "a higher standard of living overall than Americans"? Are people of Nordic Nations "happier, healthier" with "a higher standard of living overall than Americans"?

just install xcode from apps store / homebrew or go to terminal ... $ xcode-select --install complete the installation and agree on the licensing etc, then ... $ sudo gem install Can time travel make us rich through trading, and is this a problem? Does anyone know what that blue thing is? I did : sudo apt-get install libmysqlclient-dev After this I did: gem install mysql2 And now I can successfully do rails new -d mysql without any errors.

Check the mkmf.log file for more details. Thanks all .