Skip to content

Instantly share code, notes, and snippets.

@wdiechmann
Last active November 25, 2015 18:17
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 wdiechmann/323dd78e83e34e87660c to your computer and use it in GitHub Desktop.
Save wdiechmann/323dd78e83e34e87660c to your computer and use it in GitHub Desktop.
nanobox hurls - complaining about mysql
[premier] bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
...cut...
Using mysql2 0.3.20
Installing puma 2.15.3
Using sprockets 3.4.0
...cut...
Using web-console 2.2.1
Bundle complete! 15 Gemfile dependencies, 56 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[premier] gem list mysql2
*** LOCAL GEMS ***
mysql2 (0.3.20, 0.3.18)
[premier] nanobox run
+> Created /Users/walther/.nanobox/apps/premier/vagrant.log
+> Created /Users/walther/.nanobox/apps/premier/server.log
+> Resuming nanobox...
- Booting virtual machine......
+> Deploying codebase...
+> Creating build container
+> Detecting app language & engine
+> LANGUAGE AND ENGINE DETECTED [√]
--------------------------------
[√] LANGUAGE : ruby
[√] ENGINE : ruby (generic)
--------------------------------
NOTE : This is a generic ruby engine. It's likely you will need to
configure your nanobox environment to suit your app via the Boxfile[1].
If you're willing to answer a few questions about configuring and
running this particular app, it's a quick and simple process to create
an engine specific to your app or framework. So contact us and let's
get this rolling!
[1] http://engines.nanobox.io/engines/
--------------------------------
IRC : #nanobox (freenode)
EMAIL : engines@nanobox.io
--------------------------------
+> Copying code into build container...
INSTALLING PACKAGES ------------------------------------------------->
+> installing ruby-2.2...
+> installing ruby22-bundler...
+> installing nodejs-0.12...
+> Configuring Puma
- quiet: false
- thread min: 0
- thread max: 16
- workers: 1
- prune bundler: false
- preload app: false
- worker timeout: 60
$ bundle install --path vendor/bundle
BUNDLE INSTALL ------------------------>
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.3
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.2
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.4
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.7
Using loofah 2.0.3
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.2
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.2
Using globalid 0.3.6
Using activejob 4.2.2
Using mime-types 2.99
Using mail 2.6.3
Using actionmailer 4.2.2
Using activemodel 4.2.2
Using arel 6.0.3
Using activerecord 4.2.2
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using byebug 8.2.0
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using coffee-script 2.4.1
Using thor 0.19.1
Using railties 4.2.2
Using coffee-rails 4.1.0
Using multi_json 1.11.2
Using jbuilder 2.3.2
Using jquery-rails 4.0.5
with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/data/bin/ruby -r ./siteconf20151124-1055-1jscqly.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
-----
libmysqlclient is missing. Trying again with extra runtime libraries...
-----
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 main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
-----
libmysqlclient 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=/data/bin/$(RUBY_BASE_NAME)
--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
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
extconf failed, exit code 1
Gem files will remain installed in /opt/code/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.20 for inspection.
Results logged to /opt/code/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/mysql2-0.3.20/gem_make.out
An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.20'` succeeds before bundling.
[!] FAILED
$ bundle clean
BUNDLE CLEAN -------------------------->
Could not find mysql2-0.3.20 in any of the sources
[!] FAILED
+> Copying code into final build...
+> Moving final build into release environment...
+> Launching Code services
+> Launching Code services
- Creating worker1 container
- Creating web1 container
- Starting worker1 service
- Starting web1 service
--------------------------------------------------------------------------------
[√] APP SUCCESSFULLY BUILT /// DEV URL : premier.dev
--------------------------------------------------------------------------------
++> STREAMING LOGS (ctrl-c to exit) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
web1 (app) :: 2015-11-24T10:30:08.65262 bundler: command not found: puma
..cut...
web1 (app) :: 2015-11-24T10:30:22.11036 Install missing gem executables with `bundle install`
web1 (app) :: 2015-11-24T10:30:23.45119 bundler: command not found: puma
web1 (app) :: 2015-11-24T10:30:23.45122 Install missing gem executables with `bundle install`
^Cweb1 (app) :: 2015-11-24T10:30:24.84023 bundler: command not found: puma
web1 (app) :: 2015-11-24T10:30:24.84026 Install missing gem executables with `bundle install`
+> Suspending nanobox...
web1 (app) :: 2015-11-24T10:30:26.35060 Install missing gem executables
web1 (app) :: 2015-11-24T10:30:26.35060 Install missing gem executables with `bundle install`
web1 (app) :: 2015-11-24T10:30:27.70425 bundler: command not found: puma
web1 (app) :: 2015-11-24T10:30:27.70429 Install missing gem executables with `bundle install`
- Saving virtual machine...
+> Exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment