Thanks Gang. I did as you said, but when I install 'curl' I get the following error:
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/galit/R/curl’
* restoring previous ‘/home/galit/R/curl’
ERROR: dependency ‘xml2’ is not available for package ‘spelling’
* removing ‘/home/galit/R/spelling’
The downloaded source packages are in
‘/tmp/Rtmp18hMY2/downloaded_packages’
libcurl is installed (so it says when I try to install it). But I am not sure how to follow the rest of the instructions. Here is what I tried to do (and I might have done it all wrong):
1. I checked if 'pkg-config' is in my PATH:
pkg-config --variable pc_path pkg-config
/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
I suppose it means that it is there?
2. I set PKG_CONFIG_PATH to search for packages where the downloaded R packages are:
setenv PKG_CONFIG_PATH /tmp/RtmpUqDXzp/downloaded_packages
It still didn't work, so I suppose I did something wrong here. Your help is highly appreciated!