Failed to install rvest package

I need to install the rvest package for R version 3.1.2 (2014-10-31)

I get the following errors:

    checking whether the C++ compiler supports the long long type... no
*** stringi cannot be built. Upgrade your C++ compiler settings
ERROR: configuration failed for package ‘stringi’
* removing ‘/usr/local/lib64/R/library/stringi’
ERROR: dependency ‘stringi’ is not available for package ‘stringr’
* removing ‘/usr/local/lib64/R/library/stringr’
ERROR: dependency ‘stringr’ is not available for package ‘httr’
* removing ‘/usr/local/lib64/R/library/httr’
ERROR: dependency ‘stringr’ is not available for package ‘selectr’
* removing ‘/usr/local/lib64/R/library/selectr’
ERROR: dependencies ‘httr’, ‘selectr’ are not available for package ‘rvest’
* removing ‘/usr/local/lib64/R/library/rvest’

Any ideas how I can install the rvest R package?

+4
source share
3 answers

I managed to create a stringi package as follows:

install.packages('stringi', configure.args='--disable-cxx11')
+2
source

My system is Ubuntu 14.04 with R: 3.2.3, and I had the same problem.

Then I checked err meg and tried to install the libcurl4-openssl-dev and libxml2-dev library:

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libxml2-dev

After installation install.packages("rvest")was successful.

+16
source

My answer was definitely late for this question. However, someone may find this useful.

I ran into the same problem, so I ran this command in the shell:

sudo apt-get upgrade pkg-config

It worked for me.

0
source

All Articles