Skip to content
Prev 325468 / 398503 Next

can't install rugarch and nloptr packages in R 3.01 opensuse linux

ce
Thanks for the answer.
All packages in build-requires are installed. Anyway neither configure nor make complains . After make install I get :

# find /usr -name "*nlopt*"
/usr/local/share/man/man3/nlopt.3
/usr/local/include/nlopt.f
/usr/local/include/nlopt.hpp
/usr/local/include/nlopt.h
/usr/local/lib64/libnlopt.la
/usr/local/lib64/libnlopt.a
/usr/local/lib64/pkgconfig/nlopt.pc

I attach log file of nlopt installation too.  (nlopt_opensuse.txt) 


-----Original Message-----
From: "David Winsemius" [dwinsemius at comcast.net]
Date: 06/16/2013 11:00 AM
To: "ce" <zadig_1 at excite.com>
CC: "" <r-help at r-project.org>
Subject: Re: [R] can't install rugarch and nloptr packages in R 3.01 opensuse linux
On Jun 16, 2013, at 3:42 AM, ce wrote:

            
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.