installation of package ‘devtools’ had non-zero exit status on Ubuntu

前端 未结 4 1633
旧巷少年郎
旧巷少年郎 2021-02-07 11:09

I\'m trying to install devtools in a PowerPC with a R version 3.1.1 but failed at the end because the curl library:

...
** testing if installed package can be lo         


        
4条回答
  •  庸人自扰
    2021-02-07 11:52

    I m using Ubuntu 16.04 and this is how I solved this issue:

    aptitude install libssl-dev
    

    then aptitude packg manage will allow you to choose the right version which is required for installation of devtools. Repeat the same for

    aptitude libcurl4-gnutls-dev
    aptitude libxml2-dev
    

    Finally, install this libgit2 lib

    devtools::install_github('ropensci/git2r')
    devtools::load_all()
    R CMD INSTALL git2r
    

    I could not solve it with apt-get packg manager. Thats all :) !

提交回复
热议问题