-
Notifications
You must be signed in to change notification settings - Fork 77
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
Installation issue on Ubuntu 20.04 LTS #235
Comments
I've also just tried with the newest version of R and am met with the same error:
|
What's wrong with apt-get ? edd@rob:~$ docker run --rm -ti rocker/r-bspm:20.04 bash # ignore the sub-container; it is "just" Ubuntu 20.04 under it
root@3a1364ea3417:/# apt update >/dev/null 2>&1
root@3a1364ea3417:/# apt install r-cran-rjava
[.... copious output removed ...]
root@3a1364ea3417:/# R
R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Loading required package: utils
> library(rJava)
> |
@moldach please have a look at |
I followed advice from this post which suggested:
this worked for me. |
It means your |
Hi @s-u thank you for clearing that up. Is this a_bad_ thing to have my And if so any suggestions on how to fix/better-set-up? Thanks,
|
It's not bad in general, but if it pick up something wrong it won't work - e.g. on some systems the user has full JDK on |
Sorry but where do you think I could find this I've tried searching but cannot seem to find it...
|
The problem I'm facing with this |
It is actually correct that the From the same Docker container: root@c4113c846e7e:/# apt-cache policy r-cran-rjava
r-cran-rjava:
Installed: (none)
Candidate: 0.9-13-1cran1.2004.0
Version table:
0.9-13-1cran1.2004.0 500
500 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal/main amd64 Packages
0.9-11-2 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
root@c4113c846e7e:/# This is not tied to Docker. You want the c2d4u.team/c2d4u4.0+ repo when you run R 4.0.2 (as you should). That is all. It will pull in a binary with its matching Java SDK. |
Following @eddelbuettel still get errors:
Any idea how to solve this @s-u ? |
You did not read what I wrote. Your This is entirely between and you and your system. @s-u has nothing to do with this. As I wrote
|
Sorry things are not working out, perhaps I'm not choosing the appropriate PPA?
|
Do you see the line: Do you understand that that is the repo you need to add? Do you understand that As I mentioned to you before here or on Twitter DM, it is all explained in this README.md. Pay particular attention to the last paragraph in the header before Installation. (Link edited) |
The link was broken in your last post, here is the link: https://cloud.r-project.org/bin/linux/ubuntu/README.html So there is
Looks like it installed... Open R and check:
? |
You need to also understand your
Your path, not the system. So after all these messages you actually do have the working rJava installed. But you also still have a broken one, and R will always try in order. So it tries the broken one first, and you are still frustrated. |
I'm closing this since it seems to veer of-topic and the standard installation even from sources works just fine on Ubuntu 20.04 LTS:
|
Sure, no surprise it works find on Ubuntu 20.04 -- it has been a package inside Debian (and Ubuntu) since version 0.6.0 in 2008. If you have what the package Build-Depends: prescribe it is virtually guaranteed to work. Just how it works at CRAN. Random mixing and matching does not .... |
Following your instructions @s-u , it does not work fine on Ubuntu... Ubuntu 20.04 LTS
Following installations instructions
Error
|
So what is surprising is that it does not work out-of-the-box with Ubuntu 20.04.
Yes, I am still frustrated.
|
Just do
I have maintained the package as a binary in the Debian (and Ubuntu) distributions since about 2008 precisely because the installation is not always trivial. PS We just had an somewhat extended discussion about installing a package from the (binary) distribution (here Ubuntu 20.04) versus from the contributed PPA (c2d4u4+) when something is only in the former (and wants |
@moldach Please read the output:
you have broken your |
Okay so I have the newest distribution:
Hi @s-u, do you have suggestions for how to fix This SE post suggested:
But I get the same errors. Not sure what to do to fix this. |
|
@moldach do NOT set That said, I don't think that's necessarily the main point. My guess would be that you're missing some libraries needed for R - I bet you didn't use the steps I sent as they are known to work. If you did, this is what you would see: But first back to Dirk's point - since you finally installed the rJava binary, why don't you just use it? It also works out of the box without the need to do anything (not even use
If you have some broken one in there, just make sure you remove it - that's why he told you to check your
But make sure you have not messed up your R in the first place by hand - if in doubt, purge R and packages and re-install. If you modified the R Java settings and broke it, it will be harder to fix since the system assumes you know what you're doing and won't override your manual changes unless instructed to do so (Dirk may be the expert on that one). Please do NOT mix the two approaches, installing binary rJava ( If you want to check what goes wrong, the easiest is to install rJava from a local directory so
|
Trouble installing on Ubuntu20.04 LTS using the following:
followed by opening R and
install.packages("rJava")
.The log:
SystemInfo()
The use of
install.packages("rJava",,"http://rforge.net")
also errors.The text was updated successfully, but these errors were encountered: