Tuesday, November 21, 2017

devtools on Ubuntu virtual machine qin64ubuntu, part 1, to be continued

Microsoft R client on Ubuntu virtual machine

This insruction fails at the following step:
# Install the packages apt-get install microsoft-r-client-packages-3.4.1

This package did not exist.

I then installed microsoft R open

It turns out my 32bit Ubuntu is not supported.

Created a 64 bit Ubuntu virtual machine. Resinallted R, Rstudio, microsoft open R.
However, cannot install 'devtools' due to missing open SSL problem.

sudo apt-get install openssl (wrong for Ubuntu)

sudo R
install.pakages('devtools'), error again:

   The OpenSSL library that is required to
   build git2r was not found.

   Please install:
     libssl-dev    (package on e.g. Debian and Ubuntu)
     openssl-devel (package on e.g. Fedora, CentOS and RHEL)
     openssl       (Homebrew package on OS X)
   and try again.

   If the OpenSSL library is installed on
   your system but the git2r configuration
   is unable to find it, you can specify
   the include and lib path to OpenSSL with:
   R CMD INSTALL --configure-args='--with-libssl-include=INCLUDE_PATH --with-libssl-lib=LIB_PATH' git2r

See `config.log' for more details
ERROR: configuration failed for package ‘git2r’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/git2r’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/devtools’

$ sudo apt-get install libssl-dev

$ sudo R --vanilla -e 'install.packages("devtools", repos="http://cran.us.r-project.org")'

This time it seems to be working, comping in process, ... ..., error in 'curl' this time.

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

$ sudo apt-get install libcurl4-openssl-dev

Try again
$ sudo R --vanilla -e 'install.packages("devtools", repos="http://cran.us.r-project.org")'

No error reported this time.


it worked.

Try install microsoft open packages

see https://mran.microsoft.com/package/geojsonR 
It is installed successfuy. 

 How to install revoScaleR on Ubuntu?
This is not clear from microsoft open-R site.

No comments:

Post a Comment