Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created January 30, 2016 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/05ad744c2cf3f690f4a2 to your computer and use it in GitHub Desktop.
Save anonymous/05ad744c2cf3f690f4a2 to your computer and use it in GitHub Desktop.
$ gem install mysql2
Fetching: mysql2-0.4.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.2.0 directory.
ubuntu@ip-172-31-25-108:/usr/share/redmine/config$ sudo gem install mysql2
Fetching: mysql2-0.4.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.2 -r ./siteconf20160130-3450-2o8gb0.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
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
-----
mysql client is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', 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_BASE_NAME)2.2
--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
--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
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.2.0/gems/mysql2-0.4.2 for inspection.
Results logged to /var/lib/gems/2.2.0/extensions/x86_64-linux/2.2.0/mysql2-0.4.2/gem_make.out
$ bundle install
Please configure your config/database.yml first
Please configure your config/database.yml first
Using rake 10.5.0
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types 2.99
Using arel 5.0.1.20140414130214
Using coderay 1.1.0
Using concurrent-ruby 1.0.0
Using thor 0.19.1
Using net-ldap 0.13.0
Using ruby-openid 2.7.0
Using bundler 1.11.2
Using redcarpet 3.3.4
Using request_store 1.3.0
Using rmagick 2.15.4
Using tzinfo 1.2.2
Using rack-test 0.6.3
Using mail 2.6.3
Using sprockets 3.5.2
Using rack-openid 1.4.2
Using activesupport 4.1.14.1
Using actionview 4.1.14.1
Using activemodel 4.1.14.1
Using actionpack 4.1.14.1
Using activerecord 4.1.14.1
Using protected_attributes 1.1.3
Using actionmailer 4.1.14.1
Using actionpack-action_caching 1.1.1
Using railties 4.1.14.1
Using sprockets-rails 2.3.3
Using awesome_nested_set 3.0.3
Using jquery-rails 3.1.4
Using rails 4.1.14.1
Bundle complete! 16 Gemfile dependencies, 37 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
ubuntu@ip-172-31-25-108:/usr/share/redmine/config$ bundle install mysql2
ERROR: "bundle install" was called with arguments ["mysql2"]
Usage: "bundle install [OPTIONS]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment