I am trying to install "devtools" and "tidyverse", however, it giving the following errors in Fedora 28. I have searched on various forums but could not fix the issue.
Can any please help. The Error message is stated below.
install.packages("devtools")
Installing package into ‘/home/ahsaniftikhar/R/x86_64-redhat-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘openssl’, ‘httr’
trying URL 'https://cran.rstudio.com/src/contrib/openssl_1.0.2.tar.gz'
Content type 'application/x-gzip' length 1194883 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/httr_1.3.1.tar.gz'
Content type 'application/x-gzip' length 147593 bytes (144 KB)
==================================================
downloaded 144 KB
trying URL 'https://cran.rstudio.com/src/contrib/devtools_1.13.6.tar.gz'
Content type 'application/x-gzip' length 486446 bytes (475 KB)
==================================================
downloaded 475 KB
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl#1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.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 ‘openssl’
* removing ‘/home/ahsaniftikhar/R/x86_64-redhat-linux-gnu-library/3.5/openssl’
Warning in install.packages :
installation of package ‘openssl’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/home/ahsaniftikhar/R/x86_64-redhat-linux-gnu-library/3.5/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘devtools’
* removing ‘/home/ahsaniftikhar/R/x86_64-redhat-linux-gnu-library/3.5/devtools’
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpm6tM0n/downloaded_packages’
Related
Introduction
OS: Ubuntu 20.04.3 LTS
I am currently install the languageserver packages on R, to use the R VS Code extension.
Problematic
But when I execute the install.packages("languageserver") in R with the Ubuntu's terminal, I have this error:
> install.packages("languageserver")
Installing package into ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘httr’, ‘lintr’
trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz'
Content type 'application/x-gzip' length 793345 bytes (774 KB)
==================================================
downloaded 774 KB
trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.2.tar.gz'
Content type 'application/x-gzip' length 159950 bytes (156 KB)
==================================================
downloaded 156 KB
trying URL 'https://cloud.r-project.org/src/contrib/lintr_2.0.1.tar.gz'
Content type 'application/x-gzip' length 219142 bytes (214 KB)
==================================================
downloaded 214 KB
trying URL 'https://cloud.r-project.org/src/contrib/languageserver_0.3.12.tar.gz'
Content type 'application/x-gzip' length 78124 bytes (76 KB)
==================================================
downloaded 76 KB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- 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/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/curl’
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/httr’
ERROR: dependency ‘httr’ is not available for package ‘lintr’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/lintr’
ERROR: dependency ‘lintr’ is not available for package ‘languageserver’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/languageserver’
The downloaded source packages are in
‘/tmp/RtmpVaqLTX/downloaded_packages’
Warning messages:
1: In install.packages("languageserver") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("languageserver") :
installation of package ‘httr’ had non-zero exit status
3: In install.packages("languageserver") :
installation of package ‘lintr’ had non-zero exit status
4: In install.packages("languageserver") :
installation of package ‘languageserver’ had non-zero exit status
But I don't know how to solve this error, can someone help me to solve this?
you should install libcurl4-openssl-dev in Ubuntu, try the following codes in Ubuntu terminal:
sudo apt update
sudo apt-get install libcurl4-openssl-dev
then try again to install languageserver package in R
I am trying to use the package tseries on R-studio.
Running the import line of code I get an error:
> library(tseries)
Error in library(tseries) : there is no package called ‘tseries’
I tried installing the relative package so, and I get the following output.
> install.packages("tseries", dependencies = TRUE)
Installing package into ‘/home/roberto/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘TTR’, ‘curl’, ‘quantmod’
trying URL 'https://cloud.r-project.org/src/contrib/TTR_0.23-6.tar.gz'
Content type 'application/x-gzip' length 309148 bytes (301 KB)
==================================================
downloaded 301 KB
trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.tar.gz'
Content type 'application/x-gzip' length 673779 bytes (657 KB)
==================================================
downloaded 657 KB
trying URL 'https://cloud.r-project.org/src/contrib/quantmod_0.4.17.tar.gz'
Content type 'application/x-gzip' length 152204 bytes (148 KB)
==================================================
downloaded 148 KB
trying URL 'https://cloud.r-project.org/src/contrib/tseries_0.10-47.tar.gz'
Content type 'application/x-gzip' length 164796 bytes (160 KB)
==================================================
downloaded 160 KB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- 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/roberto/R/x86_64-pc-linux-gnu-library/3.6/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘TTR’
* removing ‘/home/roberto/R/x86_64-pc-linux-gnu-library/3.6/TTR’
Warning in install.packages :
installation of package ‘TTR’ had non-zero exit status
ERROR: dependencies ‘TTR’, ‘curl’ are not available for package ‘quantmod’
* removing ‘/home/roberto/R/x86_64-pc-linux-gnu-library/3.6/quantmod’
Warning in install.packages :
installation of package ‘quantmod’ had non-zero exit status
ERROR: dependency ‘quantmod’ is not available for package ‘tseries’
* removing ‘/home/roberto/R/x86_64-pc-linux-gnu-library/3.6/tseries’
Warning in install.packages :
installation of package ‘tseries’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpUNGZv6/downloaded_packages’
The installation wasn't successful, as trying to import the library again, I get the same error as before.
> library(tseries)
Error in library(tseries) : there is no package called ‘tseries’
I also tried installing manually curl but it still doesn't work. What am I doing wrong? How to solve this issue?
The problem is mentioned here:
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)
Do you have libcurl on your computer? If not, you'll need to install it with e.g.
sudo apt-get install libcurl4-openssl-dev
in your terminal (i.e. not R) if you are on Debian or install other library if you have another OS, like mentioned above.
I'm trying to run my web scraper on a raspberry pi but keep failing. I have never worked with Linux so my problem is probably pretty basic.
When I open R and type install.packages('rvest') it always gives me the same error.
What am I doing wrong?
install.packages('rvest')
Installing package into ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘openssl’, ‘xml2’, ‘httr’
trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.tar.gz'
Content type 'application/x-gzip' length 673779 bytes (657 KB)
==================================================
downloaded 657 KB
trying URL 'https://cloud.r-project.org/src/contrib/openssl_1.4.1.tar.gz'
Content type 'application/x-gzip' length 1206885 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cloud.r-project.org/src/contrib/xml2_1.3.2.tar.gz'
Content type 'application/x-gzip' length 271876 bytes (265 KB)
==================================================
downloaded 265 KB
trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.1.tar.gz'
Content type 'application/x-gzip' length 158465 bytes (154 KB)
==================================================
downloaded 154 KB
trying URL 'https://cloud.r-project.org/src/contrib/rvest_0.3.5.tar.gz'
Content type 'application/x-gzip' length 1129355 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- 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/pi/R/arm-unknown-linux-gnueabihf-library/3.5/curl’
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl#1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.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 ‘openssl’
* removing ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/3.5/openssl’
* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
* deb: libxml2-dev (Debian, Ubuntu, etc)
* rpm: libxml2-devel (Fedora, CentOS, RHEL)
* csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.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 ‘xml2’
* removing ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/3.5/xml2’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/3.5/httr’
ERROR: dependencies ‘xml2’, ‘httr’ are not available for package ‘rvest’
* removing ‘/home/pi/R/arm-unknown-linux-gnueabihf-library/3.5/rvest’
The downloaded source packages are in
‘/tmp/RtmpOJHXRP/downloaded_packages’
Warning messages:
1: In install.packages("rvest") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("rvest") :
installation of package ‘openssl’ had non-zero exit status
3: In install.packages("rvest") :
installation of package ‘xml2’ had non-zero exit status
4: In install.packages("rvest") :
installation of package ‘httr’ had non-zero exit status
5: In install.packages("rvest") :
installation of package ‘rvest’ had non-zero exit status
(StackOverflow says my post is mostly code and that I should add some more words which makes absolutely no sense because it's a short question concerning a long code. So, here are some German words I just found in letters on my desktop (mostly stupid bills):
- Empfangsquittung
- Nebenkostenabrechnung
- Promilleanteil-Abrechnung
- Zusatzleistungsbarcodes
- Liegenschaftsverwaltung
- Rückforderungsbeleg
)
It says, libcurl is missing. So, install it:
apt install -y libcurl4-openssl-dev
I am trying to install the S3 package on R inorder to save csv output on regressions I am running. I tried to install the S3 package to link the Rstudio server to S3 but with no luck. This is the error I recieved when trying to install the aws.s3 package:
> install.packages("aws.s3", repos = c("cloudyr" = "http://cloudyr.github.io/drat"))
Installing package into ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘httr’ is not available
trying URL 'http://cloudyr.github.io/drat/src/contrib/aws.s3_0.3.20.tar.gz'
Content type 'application/gzip' length 47438 bytes (46 KB)
==================================================
downloaded 46 KB
ERROR: dependency ‘httr’ is not available for package ‘aws.s3’
* removing ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4/aws.s3’
Warning in install.packages :
installation of package ‘aws.s3’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpxNVUj5/downloaded_packages’
I then tried installing the httr depence package but with no success as well.
> install.packages("httr")
Installing package into ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘openssl’
trying URL 'https://cran.rstudio.com/src/contrib/openssl_1.3.tar.gz'
Content type 'application/x-gzip' length 1218896 bytes (1.2 MB)
==================================================
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/src/contrib/httr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 156356 bytes (152 KB)
==================================================
downloaded 152 KB
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl#1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.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 ‘openssl’
* removing ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4/openssl’
Warning in install.packages :
installation of package ‘openssl’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/home/jessica/R/x86_64-redhat-linux-gnu-library/3.4/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpxNVUj5/downloaded_packages’
Likewise when installing the openssl package. My EC2 instance type is a t2.medium.
Here, both some OS and some R dependencies are needed before installing the aws.s3 package of cloudyr.
aws.s3 depends on three R packages: curl, httr and xml. These depend, in turn, on the libssl, libxml2 and libcurl4-openssl OS libraries.
On a fresh new EC2 instance, assuming a Ubuntu box (but of course there are the equivalent yum packages for Fedora/CentOS/RedHat distros), OS dependences have to be installed for first:
sudo apt-get install -y build-essential libssl-dev libxml2-dev libcurl4-openssl-dev
Then you can install the following R packages, in the specified order:
install.packages('curl')
install.packages('httr')
install.packages('xml2')
install.packages("aws.s3", repos = c("cloudyr" = "http://cloudyr.github.io/drat"))
Hope this helps
I am trying to install twitteR package in Rstudio from the console using install.packages("twitteR") but it always fails.[the OS I am using is ubuntu]
Below are the messages shown after I give the command:
>install.packages("twitteR")
Installing package into ‘/home/siddhinath/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘httr’
trying URL 'https://cloud.r-project.org/src/contrib/curl_3.3.tar.gz'
Content type 'application/x-gzip' length 371740 bytes (363 KB)
==================================================
downloaded 363 KB
trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 156356 bytes (152 KB)
==================================================
downloaded 152 KB
trying URL 'https://cloud.r-project.org/src/contrib/twitteR_1.1.9.tar.gz'
Content type 'application/x-gzip' length 215838 bytes (210 KB)
==================================================
downloaded 210 KB
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- 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/siddhinath/R/x86_64-pc-linux-gnu-library/3.4/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/siddhinath/R/x86_64-pc-linux-gnu-library/3.4/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘twitteR’
* removing ‘/home/siddhinath/R/x86_64-pc-linux-gnu-library/3.4/twitteR’
Warning in install.packages :
installation of package ‘twitteR’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp8rLTd9/downloaded_packages’
Run this Linux command.
apt-get install libcurl4-openssl-dev