Closed dolgovas closed 11 months ago
It works with manual install sqlite3:1.4.4. It seems like sqlite3 prebuild (after 1.5.0) doesn't work on Centos8_aarch
Sorry! This sounds like it's an issue with upstream and we can't solve that here. Sounds like you've got a workaround, though. 🙏
Looks like the same thing here:
https://github.com/sparklemotion/sqlite3-ruby/issues/372
Doing one of these before installing mailcatcher seems to work:
gem install sqlite3 --version="~> 1.3" --platform=ruby
and is what I'm doing to build working arm64 docker images:
https://github.com/sj26/mailcatcher/commit/68188f1ffd4ce685bf68d907fa77f5f608ce7c7f
@sj26 Manually running this workaround doesn't seem to work for me:
# gem install sqlite3 --version="~> 1.3" --platform=ruby
Fetching mini_portile2-2.8.5.gem
Fetching sqlite3-1.6.8.gem
Successfully installed mini_portile2-2.8.5
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: /usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.6.8/ext/sqlite3
/usr/bin/ruby -I /usr/lib/ruby/3.1.0 extconf.rb
Building sqlite3-ruby using packaged sqlite3.
*** 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=/usr/bin/$(RUBY_BASE_NAME)
--help
--download-dependencies
--with-sqlcipher
--without-sqlcipher
--with-sqlcipher-dir
--without-sqlcipher-dir
--with-sqlcipher-include
--without-sqlcipher-include
--with-sqlcipher-lib
--without-sqlcipher-lib
--enable-system-libraries
--disable-system-libraries
--with-sqlcipher
--without-sqlcipher
--with-sqlcipher-dir
--without-sqlcipher-dir
--with-sqlcipher-include
--without-sqlcipher-include
--with-sqlcipher-lib
--without-sqlcipher-lib
--with-sqlite-source-dir
--with-sqlite-cflags
--without-sqlite-cflags
extconf.rb:70:in `join': no implicit conversion of nil into String (TypeError)
from extconf.rb:70:in `block in configure_packaged_libraries'
from <internal:kernel>:90:in `tap'
from extconf.rb:51:in `configure_packaged_libraries'
from extconf.rb:17:in `configure'
from extconf.rb:285:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /usr/lib/ruby/gems/3.1.0/gems/sqlite3-1.6.8 for inspection.
Results logged to /usr/lib/ruby/gems/3.1.0/extensions/aarch64-linux-musl/3.1.0/sqlite3-1.6.8/gem_make.out
Really strange error in docker based on quay.io/centos/centos:stream8 On ARM It seems like
however on x86 It works with the same version of main libs ...
My dockerfile