How to install Tidyverse on Ubuntu 16.04 and 17.04

后端 未结 3 1777
甜味超标
甜味超标 2020-12-16 17:52

I\'m running Ubuntu 16.04 [now 17.04: see note in bold below] and R 3.4.1. I installed the latter this morning, so I presume it\'s the latest version. I want to install Tidy

3条回答
  •  隐瞒了意图╮
    2020-12-16 18:23

    I run into the same problem, using elementary loki, based on ubuntu 16.04. Reading the output, I realized there was a very informative error message, that looked like this

        ------------------------- 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=...'
    

    So I followed each prompt, installing the required deb, which came up to

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

    and it worked, after I had already tried installing the cran packages listed above, without adding the new repositories.

提交回复
热议问题