'RStudio hangs, won't start on Ubuntu 22.04LTS (R compiled from source)
Just another post about RStudio does not start.
I'm using Ubuntu Linux 22.04LTS "jammy". Since the new R version (currently 4.2.0) wasn't available in the repositories for almost two weeks, I compiled and installed it from source.
Among other things, from configuring options I chose with shared libraries as RStudio desires.
./configure --enable-R-shlib
I then simply used make
with the default settings, so that R can be found under /usr/local/bin/R
.
I'm using both VSCode and RStudio. In VSCode, R works like a charm, while RStudio now won't even start. Since the window won't close and I have to kill
it, it might be suspended in some sort of endless loop.
I have no software firewall enabled, and I only have one libR.so
located at /usr/local/lib/R/lib/libR.so
.
The "explanations" on community.rstudio.com were not very helpful. Also the official support suggestion resetting didn't work, and their explanation how to force RStudio to use a specific R version is Windows-biased.
I should add that I have also updated Ubuntu to the new version. Actually all settings should have been taken over, but maybe it's an issue with permissions. But then I am not sure which permissions should be changed.
I appreciate any advice on how to solve the problem.
Edit
When I start rstudio
from terminal, I get the empty window shown above, no errors, the following output, and nothing else happens:
$ rstudio
TTY detected. Printing informational message about logging
configuration. Logging configuration loaded from '/etc/xdg/xdg-
ubuntu:/etc/xdg/rstudio/logging.conf'. Logging to '/home
/jay/.local/share/rstudio/log/rdesktop.log'.
However:
$ cat home/jay/.local/share/rstudio/log/rdesktop.log
cat: home/jay/.local/share/rstudio/log/rdesktop.log: No such file or directory
Solution 1:[1]
rstudio --no-sandbox
Type this into your terminal and it will boot up nicely.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | U Bhalraam |