pharo-rdbms / Pharo-SQLite3

Community-owned official SQLite3 binding for Pharo
MIT License
22 stars 20 forks source link

Sqlite libraries no longer works for macos (Big Sur) #34

Closed kasperosterbye closed 2 years ago

kasperosterbye commented 3 years ago

It seems like apple has decided not to include those libraries as part of their OS (I am on macOS 11.2.3 - Big sur).

If nothing else need to be changed, the documentation need to explain what to do.

kasperosterbye commented 3 years ago

Fortunately I was mistaken. I was able to get it back to working by changing SQLite3Library>>macLibraryName to include the string 'sqlite3/libtclsqlite3.dylib'.

SQLite3Library>>macLibraryName
    | pluginDir |
    pluginDir := FileSystem /'usr'/'lib'.
    #('libsqlite3.dylib' 'libsqlite3.0.dylib' 'sqlite3/libtclsqlite3.dylib')
        detect: [ :each | (pluginDir / each) exists ] 
        ifFound: [ :libName | ^ (pluginDir / libName) fullName  ].

    self error: 'Module not found.'

I do not have the time to create a PR right now unfortunately.

akevalion commented 2 years ago

I got the same error in pharo10 macOs m1 pro.

The change actually fixes the error