pharo-rdbms / Pharo-ODBC

ODBC Connectivity for Pharo
MIT License
10 stars 6 forks source link

ODBCLibrary looks for a specific library name (libodbc.so) #9

Open NicolasAnquetil opened 1 year ago

NicolasAnquetil commented 1 year ago

On my computer (linux) it was named libodbc.so.2 Some initialization is done on loading, I could not load Pharo-ODBC (with Monticello)

I had two solutions:

I would have preferred the first one, but to change the code it must be loaded, and the problem appears when loading ...

astares commented 16 hours ago

@NicolasAnquetil

Maybe we should better use

FFIUnix32LibraryFinder
    ^ FFIUnix32LibraryFinder findAnyLibrary: #(
        'libodbc.so'
        'libodbc.so.2')

then