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
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
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
Post is closed for comments.
Comments
3 comments