Problems installing the devtools package
As per damienfrancois's suggestion, I installed libcurl4-gnutls-dev and the problem was solved.
EDIT (@dardisco)
In your shell:
apt-get -y build-dep libcurl4-gnutls-dev
apt-get -y install libcurl4-gnutls-dev
R/ RStudio - install devtools fails?
The error messages may be a bit confusing, because RStudio is asking you to install libcurl and openssl libraries for your Linux OS; for those you actually need Ubuntu packages instead of R packages.
Open a command line terminal, and type
sudo apt-get install libcurl4-openssl-dev libssl-dev
Once the installation of your Ubuntu packages is completed, try again and you'll be able to install the devtools R package
Is it possible to install a Fedora package on RedHat Linux Server?
Add the EPEL repository from Fedora to the list of repositories.
Once the repository will be added, you will be able of installing kdevelop using yum
.
How to update to specific R version on Linux (Red Hat/CentOS), keeping the previous version?
Question 1: I'm not sure why, but having multiple versions of R on your PATH can lead to unexpected situations like this. /usr/local/bin
is usually ahead of /usr/bin
in the PATH, so I would've expected R 3.6.3 to be found. Perhaps it has to do with Question 2.
Question 2: Some distros (like CentOS/RHEL) don't put /usr/local/bin
on the PATH by default when using sudo. See https://unix.stackexchange.com/questions/8646/why-are-path-variables-different-when-running-via-sudo-and-su for details. The answers there describe several ways to add /usr/local/bin
to the PATH when using sudo -- for example, modifying secure_path
in /etc/sudoers
to include /usr/local/bin
like:
Defaults secure_path = /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
With R 3.6.3 ahead of the default system R in the PATH, you shouldn't have to delete /bin/R
or /usr/bin/R
. But eventually, I'd recommend installing multiple side-by-side versions of R the same way, using https://docs.rstudio.com/resources/install-r/, so it's easier to manage. The next time you install a new R version, you can just replace the symlinks in /usr/local/bin
. The default system R (from EPEL) is meant to be the only R on a system, with in-place upgrades.
If you want to replace the default R 3.5.2 with a side-by-side R 3.5.2 (or 3.5.3), you could install R 3.5 from https://docs.rstudio.com/resources/install-r/, install all necessary packages, and have Shiny Server use the new R 3.5. Then uninstall the R from EPEL (R-core
or R-core-devel
) to fully switch over. From there, you could even create symlinks to R in /usr/bin
instead of /usr/local/bin
, and not worry about adding /usr/local/bin
to the sudo PATH.
Related Topics
Graphing The Dag Generated by Make
Git: Can't Push (Strange Config Issue)
Why Doesn't Tar Preserve File Permissions
Siege Aborted Due to Excessive Socket Failure
How to Execute Shell Builtin from Scala
How to Add an Icon to The Bash Prompt
Receiving Multicast on a Server with Multiple Interfaces (Linux)
List Directory Entries in The Svn Repository
Getting Android Sdk Tools to Work on Raspberry Pi
Linux: Disable Using Loopback and Send Data via Wire Between 2 Eth Cards of One Comp
Vs Code Ssh Remote Connection Issues
Understanding /Boot/Config File
Reusing Custom Makefile for Static Library with Cmake
Linux Desktop Shortcut and Icon from Install
How to Convert Fixed Size Dimension to Unlimited in a Netcdf File
Vagrant Ssh -C and Keeping a Background Process Running After Connection Closed