An Error Occured While Installing Mysql2 Mac
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and an error occurred while installing mysql2 (0.3.13), and bundler cannot continue. policies of this site About Us Learn more about Stack Overflow the company
An Error Occurred While Installing Mysql2 (0.3.20), And Bundler Cannot Continue.
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users nameerror: uninitialized constant mysql2::client::secure_connection Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a bundler::gemrequireerror: there was an error while trying to load the gem 'mysql2'. minute: Sign up can't install mysql2 on Mac OS 10.9 [closed] up vote 6 down vote favorite 1 I've tried bundle install and gem install mysql2 and rvm gem install mysql2 all have the same output below. rMBP:scripts admin$ rvm gem install mysql2 Please note that `rvm gem ...` was removed, try `gem install mysql2` or `rvm all do gem install
Add `gem 'mysql2'` To Your Gemfile
mysql2` instead. ( see: 'rvm usage' ) rMBP:scripts admin$ rvm all do gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/admin/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-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=/Users/admin/.rvm/rubies/ruby-2.0.0-p247/bin/ruby --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/ --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib
here for a quick overview of the site Help Center Detailed answers to any questions you might library not loaded: /usr/local/lib/libmysqlclient.18.dylib (loaderror) have Meta Discuss the workings and policies of this site About error installing mysql2: error: failed to build gem native extension. Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Gem Load Error Is: Uninitialized Constant Mysql2::client::secure_connection
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 http://stackoverflow.com/questions/17758945/cant-install-mysql2-on-mac-os-10-9 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Installing mysql2 gem for Ruby on Rails with Mac OSX 10.6 up vote 16 down vote favorite 5 I am having a problem installing the mysql2 gem. This comes up when I do gem install mysql2: Marks-MacBook-Pro:~ Mark$ http://stackoverflow.com/questions/5409761/installing-mysql2-gem-for-ruby-on-rails-with-mac-osx-10-6 gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/useruser/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. 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=/Users/useruser/.rvm/rubies/ruby-1.9.2-p136/bin/ruby --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib --with-mlib --without-mlib --with-mysqlclientlib --without-mysqlclientlib --with-zlib --without-zlib --with-mysqlclientlib --without-mysqlclientlib --with-socketlib --without-socketlib --with-mysqlclientlib --without-mysqlclientlib --with-nsllib --with
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/25819795/redmine-an-error-occurred-while-installing-mysql2-0-3-16-and-bundler-cannot policies of this site About Us Learn more about Stack Overflow the https://teamtreehouse.com/community/resolved-mysql-error-gem-install-with-rails company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes an error a minute: Sign up Redmine - An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue up vote 1 down vote favorite I just got this issue during installing redmine on digital ocean cloud server (FYI I'm using centos 7). after I bundle install, I got this error message, An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue. while installing mysql2 Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling. Then I try to install mysql2 using this command gem install mysql2 An error message pop out, Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/bin/ruby -r ./siteconf20140913-16462-tdplhf-0.rb extconf.rb checking for ruby/thread.h... no checking for rb_thread_blocking_region()... no checking for rb_wait_for_single_fd()... no checking for rb_hash_dup()... no checking for rb_intern3()... no ----- Using mysql_config at /usr/bin/mysql_config ----- checking for mysql.h... no checking for mysql/mysql.h... no ----- mysql.h is missing. please check your installation of mysql and try again. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. 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=/usr/bin/ruby --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config extconf failed, exit code 1 Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql2-0.3.16 for inspection. Results logged to /usr/lib64/ruby/gems/1.8/extensions/x86_64-linux/1.8/mysql2-0.3.16/gem_make.out I follow this tutorial how to setup ruby and rails: https://www.digitaloc
with Hampton's course on ActiveRecord Basics. In the Migrations video in Stage 2, the project is created using rails new biller -d mysql However, when I try I get an error when it tries to install mysql with gem install. Here is my console output Errno::EACCES: Permission denied @ rb_sysopen - /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/MIT-LICENSE An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling. run bundle exec spring binstub --all /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:352:in `resolve': Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound) from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:165:in `start' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/resolver.rb:129:in `resolve' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:203:in `resolve' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in `specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in `specs_for' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/definition.rb:167:in `requested_specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/environment.rb:18:in `requested_specs' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:13:in `setup' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler.rb:120:in `setup' from /Users/andrew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/setup.rb:17:in `