You are here

Installation error on R 3.1.2 for Linux

3 posts / 0 new
Last post
Pontifex's picture
Joined: 03/02/2015 - 21:13
Installation error on R 3.1.2 for Linux

I'm attempting to install OpenMx in R 3.1.2 on a machine running Linux Mint 17.1 (a fork of Ubuntu 14.04). After sourcing the "getOpenMx.R" script, R downloads the package, but then hits the following error:

* installing *source* package ‘OpenMx’ ...
Change default C/C++ compiler and default compile flags by editing /usr/lib/R/etc/Makeconf
./configure: line 113: curl: command not found
ERROR: configuration failed for package ‘OpenMx’
* removing ‘~/R/x86_64-pc-linux-gnu-library/3.1/OpenMx’
Warning message:
In install.packages(pkgs = c("OpenMx"), contriburl = contrib.url(repos), :
installation of package ‘OpenMx’ had non-zero exit status

The appropriate lines from the /usr/lib/R/etc/Makeconf file are:

C_VISIBILITY = -fvisibility=hidden
CC = gcc -std=gnu99
CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g $(LTO)
CXX = g++
CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g $(LTO)
CXX1X = g++
CXX1XFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g
CXX1XSTD = -std=c++11

Does anyone have suggestions for how to solve this? Many thanks.

mhunter's picture
Joined: 07/31/2009 - 15:26
Try installing curl

Line 113 of configure is

     curl -s -o src/libnpsol.a "$npsol_url"

and the error is complaining about curl. So I'm betting you don't have curl installed. This might help you install curl.

Pontifex's picture
Joined: 03/02/2015 - 21:13

Thanks! For some reason I was under the assumption that curl was part of the libcurl package, which I already had. The installation was now a success.