Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report of a successful Ubunutu 22.04 install with some hiccups #171

Open
zkamvar opened this issue Jun 25, 2024 · 0 comments
Open

Report of a successful Ubunutu 22.04 install with some hiccups #171

zkamvar opened this issue Jun 25, 2024 · 0 comments

Comments

@zkamvar
Copy link
Contributor

zkamvar commented Jun 25, 2024

I'm on Ubuntu 22.04 and I was able to install R-devel with a couple of hiccups. I'm not sure they best way to amend the current instructions, but here is my experience:

deb-src errors

apt-rdepends --build-depends --follow=DEPENDS r-base-dev | grep " B" | sed -e "s/  Build-Depends: //"
...
Error: You must put some 'deb-src' URIs in your sources.list 

I used sudo vim /etc/apt/sources.list and then used the command :g/^deb /t.|s/deb/deb-src/ to duplicate all the deb lines and copy the deb-src line.

This did not work until I realized three things:

  1. the apt repository for R was commented out after my recent upgrade (instructions found here https://cran.r-project.org/bin/linux/ubuntu/)
  2. some of the sources were moved to their own files in /etc/apt/sources.list.d/
  3. I needed to run sudo apt update to get deb-src to work

Zombie Conda errors

After I was able to get the deb-src to work and pulled down the changes from svn, I compiled R inside the svn repo and I was getting make errors that said:

"$HOME/anaconda3/include/zlib.h" not found

I removed anaconda six months ago, but apparently there are still a few zombies wandering around.

I found the location of the offending config by searching for "anaconda" with ripgrep (I found it in src/main/dounzip.d) and then I found what zlib I actually had by using:

locate -r '\zconf.h$'

and then manually replaced the lines in src/main/dounzip.d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant