You are here

Installation error on R 3.1.2 for Linux

3 posts / 0 new
Last post
Pontifex's picture
Offline
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)
CPICFLAGS = -fpic
CPPFLAGS =
CXX = g++
CXXCPP = $(CXX) -E
CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g $(LTO)
CXXPICFLAGS = -fpic
CXX1X = g++
CXX1XFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g
CXX1XPICFLAGS = -fpic
CXX1XSTD = -std=c++11

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

mhunter's picture
Offline
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. http://askubuntu.com/questions/259681/the-program-curl-is-currently-not-installed

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

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.