Skip to content

Commit

Permalink
Bump mysql2 gem in assets/sinatra_app to 0.5.2
Browse files Browse the repository at this point in the history
FIXES:
```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

                     current directory:
                     /tmp/contents725151073/deps/0/vendor_bundle/ruby/2.4.0/gems/mysql2-0.4.3/ext/mysql2
                     /tmp/contents725151073/deps/0/ruby/bin/ruby -I
                     /tmp/contents725151073/deps/0/ruby/lib/ruby/site_ruby/2.4.0 -r
                     ./siteconf20190114-60-uzpajc.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
                     -----
                     Using mysql_config at /usr/bin/mysql_config
                     -----
                     checking for mysql.h... yes
                     checking for errmsg.h... yes
                     checking for mysqld_error.h... yes
                     -----
                     Setting libpath to /usr/lib/x86_64-linux-gnu/
                     -----
                     creating Makefile

                     current directory:
                     /tmp/contents725151073/deps/0/vendor_bundle/ruby/2.4.0/gems/mysql2-0.4.3/ext/mysql2
                     make DESTDIR= clean

                     current directory:
                     /tmp/contents725151073/deps/0/vendor_bundle/ruby/2.4.0/gems/mysql2-0.4.3/ext/mysql2
                     make DESTDIR=
                     compiling client.c
                     In file included from client.c:1:0:
                     ./mysql2_ext.h:14:10: fatal error: mysql_com.h: No such file or directory
                      #include <mysql_com.h>
                               ^~~~~~~~~~~~~
                     compilation terminated.
                     Makefile:241: recipe for target 'client.o' failed
                     make: *** [client.o] Error 1

                     make failed, exit code 2

                     Gem files will remain installed in
                     /tmp/contents725151073/deps/0/vendor_bundle/ruby/2.4.0/gems/mysql2-0.4.3 for
                     inspection.
                     Results logged to
                     /tmp/contents725151073/deps/0/vendor_bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/mysql2-0.4.3/gem_make.out

                     An error occurred while installing mysql2 (0.4.3), and Bundler cannot continue.
                     Make sure that Building native extensions.  This could take a while...
Successfully installed mysql2-0.4.3
1 gem installed
                     succeeds before bundling.

                     In Gemfile:
                       mysql2
                     **ERROR** Unable to install gems: exit status 5
```
Signed-off-by: Alvaro Perez-Shirley <[email protected]>
  • Loading branch information
jpalmerpivotal authored and APShirley committed Jan 15, 2019
1 parent ba5029f commit 526ea62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/sinatra_app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: http://rubygems.org/
specs:
mysql2 (0.4.3)
mysql2 (0.5.2)
rack (1.6.4)
rack-protection (1.5.3)
rack
Expand Down
Binary file not shown.

0 comments on commit 526ea62

Please sign in to comment.