Error loading library file 'gurobi.dylib' with R
Dear all,
I've just installed Gurobi 9.0.0 on a MacOS 10.15.2 system. While I can execute it through "exec gurobi.sh" from the Terminal, and managed to integrate it with Python, I'm struggling to make it work with R.
The package installation went through fine, but whenever I try to load the library I get the following error & traceback:
Error: package or namespace load failed for ‘gurobi’ in library.dynam(lib, package, package.lib): shared object ‘gurobi.dylib’ not found Traceback: 1. library("gurobi") 2. tryCatch({ . attr(package, "LibPath") <- which.lib.loc . ns <- loadNamespace(package, lib.loc) . env <- attachNamespace(ns, pos = pos, deps, exclude, include.only) . }, error = function(e) { . P <- if (!is.null(cc <- conditionCall(e))) . paste(" in", deparse(cc)[1L]) . else "" . msg <- gettextf("package or namespace load failed for %s%s:\n %s", . sQuote(package), P, conditionMessage(e)) . if (logical.return) . message(paste("Error:", msg), domain = NA) . else stop(msg, call. = FALSE, domain = NA) . }) 3. tryCatchList(expr, classes, parentenv, handlers) 4. tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. value[[3L]](cond) 6. stop(msg, call. = FALSE, domain = NA)
Any ideas on what might be causing it?
Best, Giovanni
0
-
Hi Giovanni,
Which version of R are you using?
Best regards,
Silke0 -
Hi Silke,
I'm using R version 3.6.1 (2019-07-05).
Best, Giovanni
0
Please sign in to leave a comment.
Comments
2 comments