magefree / magefree/mage

Unable to run the server on an ARM-based Mac

Open
#12,598 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Unable to run the server on an ARM-based Mac. Received the following error:
```
Caused by: java.lang.Exception: No native library found for os.name=Mac, os.arch=aarch64, paths=[/Users/user/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:367) ~[sqlite-jdbc-3.32.3.2.jar:na]
at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:67) ~[sqlite-jdbc-3.32.3.2.jar:na]
at org.sqlite.core.NativeDB.load(NativeDB.java:63) ~[sqlite-jdbc-3.32.3.2.jar:na]
at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235) ~[sqlite-jdbc-3.32.3.2.jar:na]
... 52 common frames omitted
```

I got it working by changing `sqlite-jdbc` from version `3.32.3.2` to version `3.32.3.3`

Solution from the sqlite-jdbc repository:
https://github.com/xerial/sqlite-jdbc/issues/562#issuecomment-741265278

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the dependency declaration for sqlite-jdbc; the issue does not name a file or test. Verify the dependency is 3.32.3.3, then run the server on an ARM-based Mac and confirm SQLite loads without the native-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos, sqlite
Domain
backend, databases, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.