[R] can't install rugarch and nloptr packages in R 3.01 opensuse linux
David Winsemius
dwinsemius at comcast.net
Sun Jun 16 16:59:59 CEST 2013
On Jun 16, 2013, at 3:42 AM, ce wrote:
> I can't install rugarch package because installation of nloptr package fails .
>
> I use opensuse 12.3
> # uname -a
> Linux candide 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64 x86_64 x86_64 GNU/Linux
> my gcc version is 4.8.1
>
> I compiled and installed R 3.01 . then I tried to install rugarch package but it fails because it can't install depended package nloptr. I try to install nloptr individually with install.packages("nloptr"), i get a lot of deprecated messages and it fails. I attach log file . when I try to compile nlopt software it also gives similar messages.
The first (and only) error says:
gcc -std=gnu99 -shared -L/usr/local/lib64 -o nloptr.so nloptr.o -lm nlopt-2.3/lib/libnlopt_cxx.a -lstdc++ -L/usr/local/lib64/R/lib -lR
gcc: error: nlopt-2.3/lib/libnlopt_cxx.a: No such file or directory
make: *** [nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/usr/local/lib64/R/library/nloptr’
It's unclear how that could be "similar" to messages when attempting to install NLopt.
There are a variety of build requirements for NLopt listed at the opens use repository:
https://build.opensuse.org/package/view_file?file=nlopt.spec&package=nlopt&project=science&rev=284a615adbf4dd3fd550237da1a4e89b
BuildRequires: gcc-c++
BuildRequires: hdf5-devel
BuildRequires: octave-devel
BuildRequires: pkgconfig
BuildRequires: python-numpy-devel
You nave not mentioned any of those (non-R) packages. It would seem that you should be seeking assistance in installing NLopt and that your provided material is not particularly on point of that issue. I suspect there is a mailing list for opensuse.
--
David.
> Following fails too:
>
> R version 3.0.1 (2013-05-16) -- "Good Sport"
> Copyright (C) 2013 The R Foundation for Statistical Computing
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
>> install.packages("nloptr",repos="http://R-Forge.R-project.org")
> Warning message:
> package ‘nloptr’ is not available (for R version 3.0.1)
> <nloptr.txt>______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list