ERROR: could not load symbol "gmshInitialize" while using gmsh.initialize() in Julia
I am getting ERROR: could not load symbol "gmshInitialize"
while using the Julia API of the latest version of gmsh 4.12.2 on the Linux Cent OS system.
I used Julia API with the gmsh 4.8.4 version for a long time on the same Linux system without any trouble. Now, upgrading to 4.12.2 due to some desirable features in the latest versions.
I have used the compiled binaries downloaded from here. The same version of gmsh worked smoothly on Windows, but failed on the Linux Cent OS.
PS: I tried this solution, but it didn't work.
julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 56 × Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, haswell)
Threads: 1 default, 0 interactive, 1 GC (on 56 virtual cores)
Environment:
JULIA_LOAD_PATH = :/home/rajesh/softwares/Julia/myPkg/gmsh_sdk/gmsh-4.12.2-Linux64-sdk/lib
julia> gmsh.GMSH_API_VERSION
"4.12.2"
julia> gmsh.initialize()
ERROR: could not load symbol "gmshInitialize":
..../julia-1.10.2/bin/julia: undefined symbol: gmshInitialize
Stacktrace:
[1] initialize(argv::Vector{String}, readConfigFiles::Bool, run::Bool)
@ gmsh ~/softwares/Julia/myPkg/gmsh_sdk/gmsh-4.12.2-Linux64-sdk/lib/gmsh.jl:58
[2] initialize()
@ gmsh ~/softwares/Julia/myPkg/gmsh_sdk/gmsh-4.12.2-Linux64-sdk/lib/gmsh.jl:57
[3] top-level scope
@ REPL[11]:1
Edited by Rajesh Nakka