Ruby 2.5.0 and SQLite3

219 views
Skip to first unread message

Steffen Roller

unread,
Mar 21, 2018, 5:30:27 PM3/21/18
to RubyInstaller
There is currently no SQLite gem for 2.5 available. I'm trying to build the gem natively using the msys64 installed with Ruby.
extconf.rb fails me. Before I dig deeper into it: Has anybody tried and was successfull?

I couldn't even build SQLite3 v3220000 using the current msys64. It seems the current gcc cannot deal with parameter '-V'. bash -c ./configure already fails.

Any advice?

-st

Lars Kanis

unread,
Mar 22, 2018, 2:21:54 AM3/22/18
to RubyInstaller
You can use the MSYS package for sqlite3:

ridk exec pacman -S mingw-w64-x86_64-sqlite3
gem inst sqlite3 --platform ruby


Unfortunately bundler doesn't work with a mix of fat binary and source gems, due to https://github.com/bundler/bundler/pull/6247 . So you have to disable fat binary gems at all and make sure all required MSYS packages are installed for all source gems:
bundle config force_ruby_platform true
Would you mind to open a ticket on sqlite3-ruby for releasing a new version?

--
Regards,
Lars


Steffen Roller

unread,
Mar 24, 2018, 9:08:44 PM3/24/18
to RubyInstaller
Hi Lars,

thank you. That solved my problem.
I'm going to create a ticket for it.

-st
Reply all
Reply to author
Forward
0 new messages