I'm in trouble installing rgdal packages in R. I'm using R version 3.4.3 (2017-11-30) on a computer with:
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty
The problem is actually that I can't run on my console.
$ sudo apt-get install libgdal1-dev
It gives me a lot of 'NOT FOUND' I really don't know what to do in this situation.
Please help me.
According to https://wiki.ubuntu.com/ZestyZapus/ReleaseNotes the support for Zesty ended in January. You have to update to Artful, c.f.
https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes#Upgrading_from_Ubuntu_17.04.
Related
I am trying to set up Rstudio on an Ubuntu cloud server (gcloud). I currently have version R-3.4.4 on RStudio, but would like to upgrade. The issue is, I am unable to.
I am running the following version of Ubuntu.
name#sc1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
I installed the RStudio server for Ubuntu 18 as suggested here: https://www.rstudio.com/products/rstudio/download-server/debian-ubuntu/
So essentially running to install the server:
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1717-amd64.deb
sudo gdebi rstudio-server-1.4.1717-amd64.deb
Checking the version of R Studio I have:
sudo -i R
Output:
name#sc1:~$ sudo -i R
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
However, this is what pops up in my RStudio.
Anyone have ideas for what I'm doing wrong? How can I upgrade my package?
Furthermore, in my /home/user/R/x86_64-pc-linux-gnu-library directory, I have an R-3.4 folder, which is confusing…
Turns out that after I installed R 4.0, I had to restarted the VM and that seemed to work. Unclear why this is, but at least it worked!
I'm trying to install gifski which is a dependency for gganimate.
I get this error.
------------------ RUST COMPILER NOT FOUND --------------------
Cargo was not found on the PATH. Please install cargo / rustc:
- yum install cargo (Fedora/CentOS)
- apt-get install cargo (Debian/Ubuntu)
- brew install rustc (MacOS)
Alternatively install Rust from: <https://www.rust-lang.org>
---------------------------------------------------------------
The yum install cargo command didn't work, so I installed Rust with
curl https://sh.rustup.rs -sSf | sh
The installation prompt said I needed to add $HOME/.cargo/bin to my path environment variable, so I tried this.
$ source $HOME/.cargo/env
$ export PATH=$PATH:$HOME/.cargo/bin
$ export PATH=$PATH:/.cargo/bin
$ export PATH=$HOME/.cargo/bin
I reset my machine and I continue to receive the same error.
> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Amazon Linux AMI 2018.03
I am running R 3.5.2 on Ubuntu 18.4 lts and trying to install car package. I am getting bellow error.
Please just run
sudo apt-get install r-cran-car
as the package has been part of Debian and Ubuntu for a decade and a half (maintained by yours truly). We provide binaries because installation from source is not for everybody.
I'm using Ubuntu 16.04 on Azure Linux Virtual Machine
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
The current R version for Rstudio/Rserver is 3.4.4 and I would like to update it to the latest version (i.e. version 3.5.2)
R --version
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
From some reasons, the most common method doesn't work:
apt-get update
apt-get upgrade
So I did some research and find this post on biostars.org
One of the posts says the following codes might work
sudo su
echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get update
apt-get install r-base
apt-get install r-base-dev
However, after apt-get install r-base I'm getting the following error message:
root#VMforR:/usr/local/bin# apt-get install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 3.5.2-1xenial) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I don't understand what "held broken packages" means, and more importantly, how to update the R base?
What worked for me was to add the PPA of Michael Rutter:
sudo add-apt-repository ppa:marutter/rrutter3.5
sudo apt-get update
Update R:
sudo apt install r-api-3.5
I'm with the 16.04 LTS ubuntu.
Have tried some other methods, the following seems to work:
sudo apt-get install r-base-core=3.5.2-1xenial
Ref:
1. Install particular version(2.15.2) of r-base on ubuntu
2. https://cran.rstudio.com/bin/linux/ubuntu/xenial-cran35/
But I'm not sure if this also work for others or not, as I can't reproduce it.
After
apt-get update
do
apt-get dist-upgrade
first to "move your installation forward". That includes upgrading already installed packages. It should just upgrade your R installation (unless you also switch / need to switch repositories).
The r-sig-debian list is good and patient with basic 'how do it od X for R on Debian/Ubuntu'. Consider subscribing to lurk and/or ask questions.
Mine said some of my packages were missing. So, I ran sudo dpkg --configure -a and then re-run the R --update and it worked to correct the missing package error.
When updating to R 3.2.0 I had to reinstall seewave.
I managed to install the required packages fftw, tuneR, rgl, and rpanel.
But, when trying to compile seewave I got the message:
stft.c:3:11: fatal error: 'sndfile.h' file not found
On linux it is sufficient to install libsndfile library, for example with
sudo apt-get install libsndfile1-dev
On OS X just do:
brew install libsndfile
Pisca46 - Installing via 'brew install libsndfile' helped.
On CentOS, the package has a different name :
sudo yum install libsndfile-devel
I also had to install the fftw-devel yum package