Robyn icon indicating copy to clipboard operation
Robyn copied to clipboard

Error while installing Robyn on the server

Open catchrishi opened this issue 2 years ago • 11 comments

Project Robyn

Error while installing Robyn on the server

ERROR: dependencies ‘glmnet’, ‘nloptr’ are not available for package ‘Robyn’

  • removing ‘/home/mgholmieh/R/x86_64-pc-linux-gnu-library/4.1/Robyn’ Warning messages: 1: In i.p(...) : installation of package ‘nloptr’ had non-zero exit status 2: In i.p(...) : installation of package ‘glmnet’ had non-zero exit status 3: In i.p(...) : installation of package ‘/tmp/RtmpgkrYTY/file68bb6d36066a/Robyn_3.6.1.tar.gz’ had non-zero exit status

Provide dummy data & model configuration

None

Environment & Robyn version

R version latest

catchrishi avatar Mar 11 '22 08:03 catchrishi

Hi @catchrishi, can you share the exacts commands you ran? Have you tried to install.packages( ‘nloptr’) and install.packages( ‘glmnet’) directly?

Leonelsentana avatar Mar 11 '22 09:03 Leonelsentana

We were unable to solve the errors we are facing when installing Robyn. The errors are mainly related to two packages: "nloptr" and "glmnet" which are not getting installed: We tried installing them separately as well as installing packages and dependencies related to these two but this was unfruitful. Can your team please help in debugging this error? We want to move forward with this and implement Robyn as soon as possible. image

catchrishi avatar Mar 16 '22 09:03 catchrishi

This is the root error we are getting when trying to run : install.packages ("nloptr")

image

catchrishi avatar Mar 16 '22 09:03 catchrishi

and when trying to install "nlopt" : image

catchrishi avatar Mar 16 '22 09:03 catchrishi

Hi @catchrishi,

  1. First, please make sure you have the latest R version installed in your devserver

  2. It seems your devserver is on LINUX. If so, please read this https://stackoverflow.com/questions/68614337/how-to-install-nloptr-on-linux Where available as a suitable version, install the -dev package from the distro. Here the command is sudo apt install libnlopt-dev after which configure in the R package sees, and also gets to use it as the corresponding shared library itself gets installed from the libnlopt0 package. (The -dev package is always needed for building as opposed to merely running via the shared library package).

  3. Also read this, if the solution above does not work: https://stackoverflow.com/questions/71250259/cannot-install-r-package-cmake-errorr/71255690 similar solution: sudo apt-get install libnlopt-dev

You haven't sent me any error log for glmnet, maybe you can try the same as libnlopt?

Leonelsentana avatar Mar 16 '22 10:03 Leonelsentana

Hey @Leonelsentana, working with @catchrishi on this I tried the commands you sent, we already have the newest version of libnlopt image

As for the R version, we have R 4.1.2 Despite doing this, still getting the same error that was sent earlier (source directory does not exist)

Thanks for the help!

MarcG2000 avatar Mar 16 '22 15:03 MarcG2000

Now we made sure we ran both things I suggested, try to make a fresh new directory where to save and run from your code:

E.g. cmake /home/usr/Downloads/Robyn

Like this case: https://stackoverflow.com/questions/53045426/cmake-source-directory-does-not-exist

Leonelsentana avatar Mar 16 '22 16:03 Leonelsentana

@Leonelsentana @catchrishi I'm getting the same error. Were you able to resolve it?

HasanShaukat avatar Mar 24 '22 11:03 HasanShaukat

@catchrishi have you been able to find the root cause of the problem?

Leonelsentana avatar May 05 '22 15:05 Leonelsentana

It's still not clear, but as per my discussions, it looks like more of an internal IT restrictions than the Robyn package itself.

catchrishi avatar May 06 '22 07:05 catchrishi

Hi @catchrishi , @HasanShaukat hope you are well. I created a docker image in case it helps to run things on LINUX. LMK if that helps! https://hub.docker.com/layers/leosentana/robyn/latest/images/sha256:fd701fe582d1314d4baae99b6daa664f210b21e310006d003c8c42710ab70382

Leonelsentana avatar May 10 '22 11:05 Leonelsentana

Please reopen if this issue reoccurs.

gufengzhou avatar Oct 28 '22 12:10 gufengzhou