-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Loading OpenSSL is creating an issue for the MS SQL Server ODBC driver. Any help or guidance would be appreciated. Example below is ran with UBI8 minimal container image. ODBC works fine without OpenSSL loaded, but errors when it is loaded. Using msodbcsql17-17.9.1.1, but had same issue with various other versions of the SQL Server ODBC driver.
(@v1.8) pkg> st
Status `/usr/local/julia/depot/environments/v1.8/Project.toml`
[be6f12e9] ODBC v1.1.2
[4d8831e6] OpenSSL v1.3.1
julia> using ODBC
julia> conn = ODBC.Connection("driver=ODBC Driver 17 for SQL Server;pwd=$password;uid=$user;server=$server;database=$database");
julia> ODBC.disconnect!(conn)
julia> exit()
[root@0f4b46074e95 /]# julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.8.2 (2022-09-29)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using ODBC, OpenSSL
julia> conn = ODBC.Connection("driver=ODBC Driver 17 for SQL Server;pwd=$password;uid=$user;server=$server;database=$database");
ERROR: 01000: [unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.9.so.1.1' : file not found
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] driverconnect(connstr::String)
@ ODBC.API /usr/local/julia/depot/packages/ODBC/9VZTC/src/API.jl:111
[3] connect
@ /usr/local/julia/depot/packages/ODBC/9VZTC/src/API.jl:349 [inlined]
[4] ODBC.Connection(dsn::String; user::Nothing, password::Nothing, extraauth::Nothing)
@ ODBC /usr/local/julia/depot/packages/ODBC/9VZTC/src/dbinterface.jl:57
[5] ODBC.Connection(dsn::String)
@ ODBC /usr/local/julia/depot/packages/ODBC/9VZTC/src/dbinterface.jl:54
[6] top-level scope
@ REPL[3]:1
julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 2 × 12th Gen Intel(R) Core(TM) i7-12800H
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, goldmont)
Threads: 1 on 2 virtual cores
Metadata
Metadata
Assignees
Labels
No labels