Unable to setup mysql gem
anuragramdasanHOBBY
a year ago
My mysql2 installation for a rails app fails with the below error. I have faced similar issues on my system and have been able to resolve it but unsure how to go about it on railway.
12 18.49 Installing rails 7.1.3.3
12 18.53 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
12 18.53
12 18.53 current directory: /usr/local/bundle/ruby/3.1.0/gems/mysql2-0.5.6/ext/mysql2
12 18.53 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.1.0 extconf.rb
12 18.53 checking for rbabsintsize()… yes
12 18.53 checking for rbabsintsinglebit_p()… yes
12 18.53 checking for rbgcmark_movable()… yes
12 18.53 checking for rbwaitforsinglefd()… yes
12 18.53 checking for rbencinterned_str() in ruby.h… yes
12 18.53 *** extconf.rb failed ***
12 18.53 Could not create Makefile due to some reason, probably lack of necessary
12 18.53 libraries and/or headers. Check the mkmf.log file for more details. You may
12 18.53 need configuration options.
12 18.53
12 18.53 Provided configuration options:
12 18.53 --with-opt-dir
12 18.53 --without-opt-dir
12 18.53 --with-opt-include
12 18.53 --without-opt-include=${opt-dir}/include
12 18.53 --with-opt-lib
12 18.53 --without-opt-lib=${opt-dir}/lib
12 18.53 --with-make-prog
12 18.53 --without-make-prog
12 18.53 --srcdir=.
12 18.53 --curdir
12 18.53 --ruby=/usr/local/bin/$(RUBYBASENAME)
12 18.53 --with-openssl-dir
12 18.53 --without-openssl-dir
12 18.53 --with-mysql-dir
12 18.53 --without-mysql-dir
12 18.53 --with-mysql-include
12 18.53 --without-mysql-include=${mysql-dir}/include
12 18.53 --with-mysql-lib
12 18.53 --without-mysql-lib=${mysql-dir}/lib
12 18.53 --with-mysql-config
12 18.53 --without-mysql-config
12 18.53 --with-mysqlclient-dir
ⓘ Deployment information is only viewable by project members and Railway employees.
0 Replies