2 years 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 rb_absint_size()... yes
#12 18.53 checking for rb_absint_singlebit_p()... yes
#12 18.53 checking for rb_gc_mark_movable()... yes
#12 18.53 checking for rb_wait_for_single_fd()... yes
#12 18.53 checking for rb_enc_interned_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/$(RUBY_BASE_NAME)
#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