gurobi R library "not found" problem
Awaiting user inputHi!
I'm a linux user and I had the typical "not found" problem when loading gurobi library in R.
Error: package or namespace load failed for ‘gurobi’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/javifl/R/x86_64-pc-linux-gnu-library/4.3/gurobi/libs/gurobi.so':
libgurobi100.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio
I updated the system environment variables in .bashrc as well as in .profile. I reviewed all steps from here: https://support.gurobi.com/hc/en-us/community/posts/360060468031-R-3-6-1-Gurobi-9-0-1-
gurobi_cl is working correctly in my terminal
everything looks fine when I run:
ldd ~/R/x86_64-pc-linux-gnu-library/4.2/gurobi/libs/gurobi.so
or
ldd ~/R/x86_64-pc-linux-gnu-library/4.3/gurobi/libs/gurobi.so
The only thing that warns me is that my gurobi R package is gurobi_10.0-1_R_4.2.0.tar.gz, but my R version is 4.3 (from several days ago).
Is the problem maybe related to this?
Session Info:
R version 4.3.0 (2023-04-21) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.6 LTS
Gurobi info:
Gurobi Optimizer version 10.0.1 build v10.0.1rc0 (linux64)
Copyright (c) 2023, Gurobi Optimization, LLC
Thanks in advance!
-
Hi Javier,
Can you try re-installing the R package after you have defined those variables?
I can imagine that if the \(\texttt{LD_LIBRARY_PATH}\) system environment variable was not defined during the installation (i.e. was defined afterwards) this may lead to problems.
I would also recommend defining all the system environment variables as per the bottom of our Software Installation Guide.
Cheers,
David0
Please sign in to leave a comment.
Comments
1 comment