[R] install.packages problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Nov 6 07:24:14 CET 2011


This is something missing from your (unstated) Linux installation.

curl-config is part of the original libcurl sources, but Linux 
distributors tend to separte it out.  *How* they do so is 
non-standard:

Fedora and other RPM-based distributions tend to use libcurl-devel
Debian and related tend to use libcurl-dev

You need to figure this out for your distribution and install the 
missing piece.

On Sat, 5 Nov 2011, eric wrote:

> I'm trying to install the rdatamarket package. I did an
> install.packages('rdatamarket') command but got an error about half way
> through the install as follows:
>
> * installing *source* package ‘RCurl’ ...
> checking for curl-config... no
> Cannot find curl-config
> ERROR: configuration failed for package ‘RCurl’
>
> The install continued after the error but looks like it was completed. I'm
> trying to figure out what the error means and how I fix it.
>
> Here's what I'm seeing ...ideas on how to address this would be appreciated
> :
>
> install.packages('rdatamarket')
> Installing package(s) into ‘/home/eric/R/i486-pc-linux-gnu-library/2.13’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> also installing the dependencies ‘RCurl’, ‘RJSONIO’
>
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/RCurl_1.7-0.tar.gz'
> Content type 'application/x-gzip' length 813252 bytes (794 Kb)
> opened URL
> ==================================================
> downloaded 794 Kb
>
> trying URL
> 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/RJSONIO_0.96-0.tar.gz'
> Content type 'application/x-gzip' length 1144519 bytes (1.1 Mb)
> opened URL
> ==================================================
> downloaded 1.1 Mb
>
> trying URL
> 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rdatamarket_0.6.3.tar.gz'
> Content type 'application/x-gzip' length 12432 bytes (12 Kb)
> opened URL
> ==================================================
> downloaded 12 Kb
>
> * installing *source* package ‘RCurl’ ...
> checking for curl-config... no
> Cannot find curl-config
> ERROR: configuration failed for package ‘RCurl’
> * removing ‘/home/eric/R/i486-pc-linux-gnu-library/2.13/RCurl’
> * installing *source* package ‘RJSONIO’ ...
> Trying to find libjson.h header file
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> USE_LOCAL = ""
> Using local libjson code. Copying files
> /tmp/RtmpFw9QeX/R.INSTALL4ebf657f/RJSONIO
> configure: creating ./config.status
> config.status: creating src/Makevars
> config.status: creating cleanup
> ** libs
> gcc -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -std=gnu99 -O3 -pipe  -g -c ConvertUTF.c
> -o ConvertUTF.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONChildren.cpp -o
> JSONChildren.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONDebug.cpp -o
> JSONDebug.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONIterators.cpp -o
> JSONIterators.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONMemory.cpp -o
> JSONMemory.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONNode.cpp -o
> JSONNode.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONNode_Mutex.cpp -o
> JSONNode_Mutex.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONStream.cpp -o
> JSONStream.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONValidator.cpp -o
> JSONValidator.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONWorker.cpp -o
> JSONWorker.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSONWriter.cpp -o
> JSONWriter.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c JSON_Base64.cpp -o
> JSON_Base64.o
> gcc -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -std=gnu99 -O3 -pipe  -g -c JSON_parser.c
> -o JSON_parser.o
> gcc -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -std=gnu99 -O3 -pipe  -g -c RJSON.c -o
> RJSON.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c internalJSONNode.cpp -o
> internalJSONNode.o
> g++ -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -O3 -pipe  -g -c libjson.cpp -o libjson.o
> gcc -I/usr/share/R/include -I. -Ilibjson -Ilibjson/Source -DNDEBUG=1
> -DJSON_NO_EXCEPTIONS=1     -fpic  -std=gnu99 -O3 -pipe  -g -c rlibjson.c -o
> rlibjson.o
> g++ -shared -o RJSONIO.so ConvertUTF.o JSONChildren.o JSONDebug.o
> JSONIterators.o JSONMemory.o JSONNode.o JSONNode_Mutex.o JSONStream.o
> JSONValidator.o JSONWorker.o JSONWriter.o JSON_Base64.o JSON_parser.o
> RJSON.o internalJSONNode.o libjson.o rlibjson.o -L/usr/lib/R/lib -lR
> installing to /home/eric/R/i486-pc-linux-gnu-library/2.13/RJSONIO/libs
> ** R
> ** inst
> ** preparing package for lazy loading
> in method for ‘toJSON’ with signature ‘"AsIs"’: no definition for class
> "AsIs"
> ** help
> *** installing help indices
> ** building package indices ...
> ** testing if installed package can be loaded
>
> * DONE (RJSONIO)
> ERROR: dependency ‘RCurl’ is not available for package ‘rdatamarket’
> * removing ‘/home/eric/R/i486-pc-linux-gnu-library/2.13/rdatamarket’
>
> The downloaded packages are in
> 	‘/tmp/Rtmpz8PqWE/downloaded_packages’
>
>> require(rdatamarket)
> Loading required package: rdatamarket
> Warning message:
> In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return
> = TRUE,  :
>  there is no package called 'rdatamarket'
>
> --
> View this message in context: http://r.789695.n4.nabble.com/install-packages-problem-tp3994239p3994239.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list