Closed AndyObtiva closed 1 year ago
I installed Contact Manager using "Option 3: Clone Project Locally", JRuby 9.3.4.0, Windows 7 Professional SP 1 x86_64, and it works fine. This does seem to be an ARM64 issue.
According to https://stackoverflow.com/questions/70048681/java-sql-sqlexception-error-opening-connection, M1 support was added in 3.32.3.3 version of sqlite-jdbc, but this gem bundles 3.28.0, so it needs to be upgraded I guess.
@kares @enebo Ahem, sqlite not working on M1 is pretty poor form...
We need to get the updted sqlite driver gem released. I copied in the latest jar to make my local env work, but not having this gem updated is pretty ugly.
I released an update based on master yesterday. It is not the latest sqlite driver, though, so we should probably consider another update.
I built an open-source JRuby 9.3.4.0 app, called Contact Manager, using activerecord-jdbcsqlite3-adapter v61.1 and activerecord v6.1.6, and I get an error every time I run it on a Mac ARM64 only (it works on Mac x86_64, Windows 10 x86_64, and Linux x86_64):
System details:
JRuby/JDK details:
SQLite details:
In any case, you can replicate the error for yourself on a Mac M1 Chip ARM64 machine by following these instructions: https://github.com/AndyObtiva/contact_manager#option-3-clone-project-locally
This is the current db code:
You can check out all the project files at GitHub if needed: https://github.com/AndyObtiva/contact_manager
By the way, I plan to blog about using
activerecord-jdbcsqlite3-adapter
sometime soon, and I was hoping it would work on Mac ARM64 machines in addition to the other platforms mentioned above.I look forward to your help in the meantime.
Cheers,
Andy Maleh