Installing nloptr on Linux

前端 未结 7 757
醉话见心
醉话见心 2021-02-01 03:52

I am trying to install the R package nloptr on a CentOS Linux machine that doesn\'t have internet connection as follows:

install.packages(\"/hom         


        
相关标签:
7条回答
  • 2021-02-01 04:17

    I had the same issue setting up nloptr on my RHEL 7.2 instance. For those using RHEL you can do the following: Download & install the following RPMS in the same order:

    • NLopt-2.4.2-2.el7.x86_64.rpm- https://pkgs.org/centos-7/epel-x86_64/NLopt-2.4.2-2.el7.x86_64.rpm.html

    • NLopt-devel-2.4.2-2.el7.x86_64.rpm - https://pkgs.org/centos-7/epel-x86_64/NLopt-devel-2.4.2-2.el7.x86_64.rpm.htm

    Please note that these RPMs may need additional dependencies to be installed based on your system configuration.

    Post this you can install nloptr directly using the install.packages utility or download source from CRAN and install from source as suggested in earlier responses.

    Hope this helps!

    Kiran

    0 讨论(0)
提交回复
热议问题