Question about Load gurobi library in R
AnsweredHi,
I am using Windows system and I have downloaded the gurobi successfully.

Then I try to install R package in RStudio.


When I run library(gurobi), I get the following error Error: package or namespace load failed for ‘gurobi’ in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/peiza/AppData/Local/R/win-library/4.5/gurobi/libs/x64/gurobi.dll': LoadLibrary failure: The specified module could not be found.
-
Hi Peizan,
I will open a ticket up in our Help Center to discuss this installation issue. An email from us will arrive shortly.
- Riley
0 -
Thanks, Riley! I have resolved this issue! I don't know why. I just re-run the code “library(gurobi)”, and this time it returns no error. Thank you so much!
All the best,
Peizan
0 -
I am getting a very similar error. I am on ubuntu 22 and I get the following error when I do library("gurobi")
Error: package or namespace load failed for ‘gurobi’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/ysw7/R/x86_64-pc-linux-gnu-library/4.5/gurobi/libs/gurobi.so': libgurobi130.so: cannot open shared object file: No such file or directory
0 -
Hi Yu-hsuan,
I will create a ticket through our Help Center to assist you with this issue. Please keep an eye out for an email which will come soon.
- Riley
0
Please sign in to leave a comment.
Comments
4 comments