9

I am studying data visualisation with Matrices, Eigen matrices and network graphs, and I am trying to visualise 1D ECG signal by network graphs. I feel the current tools ggnet2 and plotly may be insufficient, but I have not managed to completed the basic tests with plotly because I cannot get it installed. I went through 3 unsuccessful installation attempts of plotly as root in the R prompt by install.packages(plotly) but I keep getting

** building package indices
** testing if installed package can be loaded
* DONE (purrr)
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/usr/local/lib/R/site-library/httr’
ERROR: dependency ‘httr’ is not available for package ‘plotly’
* removing ‘/usr/local/lib/R/site-library/plotly’

The downloaded source packages are in
    ‘/tmp/RtmpoWcHte/downloaded_packages’
Warning messages:
1: In install.packages("plotly") :
  installation of package ‘openssl’ had non-zero exit status
2: In install.packages("plotly") :
  installation of package ‘httr’ had non-zero exit status
3: In install.packages("plotly") :
  installation of package ‘plotly’ had non-zero exit status
> 

Iteration 2 as root

Same problem as above with slightly different command

> install.packages("plotly") 
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘openssl’, ‘httr’

trying URL 'https://cran.wu.ac.at/src/contrib/openssl_0.9.5.tar.gz'
Content type 'unknown' length 1236042 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

trying URL 'https://cran.wu.ac.at/src/contrib/httr_1.2.1.tar.gz'
Content type 'unknown' length 133398 bytes (130 KB)
==================================================
downloaded 130 KB

trying URL 'https://cran.wu.ac.at/src/contrib/plotly_4.5.2.tar.gz'
Content type 'unknown' length 731185 bytes (714 KB)
==================================================
downloaded 714 KB

* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
Using PKG_LIBS=-lssl -lcrypto
------------------------- 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 (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 ‘/usr/local/lib/R/site-library/openssl’
ERROR: dependency ‘openssl’ is not available for package ‘httr’
* removing ‘/usr/local/lib/R/site-library/httr’
ERROR: dependency ‘httr’ is not available for package ‘plotly’
* removing ‘/usr/local/lib/R/site-library/plotly’

The downloaded source packages are in
    ‘/tmp/RtmpU1mQnG/downloaded_packages’
Warning messages:
1: In install.packages("plotly") :
  installation of package ‘openssl’ had non-zero exit status
2: In install.packages("plotly") :
  installation of package ‘httr’ had non-zero exit status
3: In install.packages("plotly") :
  installation of package ‘plotly’ had non-zero exit status

OS: Debian 8.5
R: 3.3.1

0

1 Answer 1

11

httr depends on the openssl and curl package. The openssl package needs as system requirement libssl-dev

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because openssl was not found. Try installing:
 * deb: libssl-dev (Debian, Ubuntu, etc)
...

The curl package needs as system requirement libcurl4-openssl-dev:

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
...

So, to install you will need to run:

sudo apt-get install libssl-dev libcurl4-openssl-dev

afterwards install.packages("plotly") should work.

1
  • 1
    I think plotly should put libssl-dev as a dependency or give at least a warning about it. There are so many packages which will not install without the package. The error/warning output is so undescriptive here. Commented Nov 3, 2016 at 4:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .