-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I'm trying to use rails-diff to understand the diff between my Rails 8 app and Rails 8.1. Running a basic command like rails-diff dotfiles triggers a bunch of errors because I don't have mysql installed.
I'm only using sqlite in my rails app, and don't do any MySQL work on this machine so it's not surprising that there are no supporting packages available.
$ rails-diff --version
0.6.0
$ rails-diff dotfiles
info: Checking out Rails (at commit 66e027d)
info: Installing Rails dependencies
Command failed: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/mysql2-0.5.6/ext/mysql2
/home/bamnet/.rbenv/versions/3.3.9/bin/ruby extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_gc_mark_movable()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enc_interned_str() in ruby.h... yes
checking for -lmysqlclient... no
-----
mysql client is missing. You may need to 'sudo apt-get install libmariadb-dev',
'sudo apt-get install libmysqlclient-dev' or 'sudo 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=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/bamnet/.rbenv/versions/3.3.9/bin/$(RUBY_BASE_NAME)
--with-openssl-dir
--without-openssl-dir
--with-mysql-dir
--without-mysql-dir
--with-mysql-include=${mysql-dir}/include
--without-mysql-include
--with-mysql-lib=${mysql-dir}/lib
--without-mysql-lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include
--with-mysql-lib
--without-mysql-lib
--with-mysqlclient-dir
--without-mysqlclient-dir
--with-mysqlclient-include=${mysqlclient-dir}/include
--without-mysqlclient-include
--with-mysqlclient-lib=${mysqlclient-dir}/lib
--without-mysqlclient-lib
--with-mysqlclientlib
--without-mysqlclientlib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mysql2-0.5.6/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/mysql2-0.5.6 for
inspection.
Results logged to
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mysql2-0.5.6/gem_make.out
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in
`run'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:28:in
`build'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in
`build_extension'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in
`block in build_extensions'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`each'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`build_extensions'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/3.3.0/rubygems/installer.rb:844:in
`build_extensions'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/rubygems_gem_installer.rb:111:in
`build_extensions'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/rubygems_gem_installer.rb:30:in
`install'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/source/rubygems.rb:220:in
`install'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/installer/gem_installer.rb:55:in
`install'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/installer/gem_installer.rb:17:in
`install_from_spec'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/installer/parallel_installer.rb:133:in
`do_install'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/installer/parallel_installer.rb:124:in
`block in worker_pool'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/worker.rb:62:in
`apply_func'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/worker.rb:57:in
`block in process_queue'
<internal:kernel>:187:in `loop'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/worker.rb:54:in
`process_queue'
/home/bamnet/.rbenv/versions/3.3.9/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'
An error occurred while installing mysql2 (0.5.6), and Bundler cannot continue.
In Gemfile:
mysql2Metadata
Metadata
Assignees
Labels
No labels