RStudio and Git Yosemite - r

I seem to have a path problem, perhaps of my own making.
I have Yosemite installed (fresh install) and have installed Git, BUT did not use the Xcode install.
I installed Git directly from their website.
I have altered the path (this is for bash) so Git can be found from the Terminal.
I have tested Git from the Terminal and it is working.
From RStudio Preferences/ Git/SVN
I have set the path in RStudio to the executable. (using the workaround of:
[command] + [Shift] +[.] to see the hidden files.)
which is set to /usr/local/git/bin/git
However when I attempt to set up a project in RStudio with Git I get the following message:
Git was not detected on the system path.
To create Projects from Git repositories you should install Git and then restart
RStudio.
Note that if Git is installed and not in the path, then you can specify its location
using the Preferences dialog
Any ideas?

Related

RStudio Server (community) can't find libR.so even though it is in path

Note: I have filed this as an issue, but I'm not sure if it is really a bug or just something I need to resolve about my system configuration.
This seems to be a library that causes many people trouble with RStudio and RStudio Server. Often people can fix the problem by reinstalling the core R libraries with apt or manually copying or linking the libR.so file to a place where RStudio finds it.
In my case, I'm using a Conda instance for my R executable.
My instance was working and stopped after upgrading my ubuntu 22.04 VM. I tried some things to fix the problem but have not succeeded.
System details
RStudio Edition : Server
RStudio Version : 2022.07.2+576 (Spotted Wakerobin) for Ubuntu Bionic
OS Version : Ubuntu 22.04.1 LTS
R Version : 4.1.3 (2022-03-10) -- "One Push-Up"
Describe the problem in detail
I have a GCP VM running ubuntu 22.04 which I use for RSS.
I did a sudo apt update && sudo apt dist-upgrade and a restart. RSS stopped working. I ran sudo rstudio-server verify-installation and received
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory
I decided to reinstall RSS using:
wget https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2022.07.2-576-amd64.deb
sudo gdebi rstudio-server-2022.07.2-576-amd64.deb
and did not receive any errors during installation. However I received the same error as above with verify-installation. I then tried doing conda update --all -y. This also did not fix the problem.
Here is some useful information:
(base) balter#rstudio:~$ which R
/home/balter/conda/bin/R
(base) balter#rstudio:~$ head -n3 /etc/rstudio/rserver.conf
# Server Configuration File
rsession-which-r=/home/balter/conda/bin/R
(base) balter#rstudio:~$ find . -name "libR.so"
./conda/lib/R/lib/libR.so
./conda/pkgs/r-base-4.1.3-h7880091_3/lib/R/lib/libR.so
(base) balter#rstudio:~$ sudo rstudio-server verify-installation
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
/usr/lib/rstudio-server/bin/rsession: error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory

Install and run jupyterlab from src code as default

I have made a few changes to the jupyterlab code and I want to install and run this version as the default version on my machine.
According to the instructions I did the following:
pip install -e .
jlpm install
jlpm run build
jplm run build:core
jupyter lab build
The build is showing:
[LabBuildApp] Building in /opt/conda/share/jupyter/lab
When I run jupyter lab, I can see that the application is running from there:
[LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
But this build is not from my src code. Only when I run with the --dev-mode tag I can see the changes I made in the code (the change was specifically in the packages).
How do I build jupyterlab from the src (including the packages) and have this be the version always to run on my machine? I feel that I am missing a step in the process.

Deleted /usr/bin/dotnet and pacman -S dotnet-sdk will not install it

I am trying to write a WEB api in dotnet core on my Manjaro Arch linux distro.
I installed the edge version of dotnet first (^3) since i like the bleeding edge. I had, however on a different computer already made the project using dotnet 2.2. Therefore i install dotnet 2.2 aswell. This did not work, since the version in /usr/bin/ was still 3.0.
I deleted the exec from /usr/bin and now i cant get it back. I have run pacman -Su and pacman -R, i have tried rebooting aswell.
OBS: the first to times i installed them, i did it with yay -S dotnet-sdk which allowed me to choose from the different versions
You can force install of packages that is already installed using --force in pacman.
So, you should be able to get the binary again by using sudo pacman -S dotnet-sdk --force.
You might also attempt to remove dotnet-sdk before you install, you can do that by running sudo pacman -Rns dotnet-sdk. (remove package with configurationfiles and dependencies not required by any other package).

Prerequisites for installing TensorFlow not available

I am trying to install Tensorflow in R as explained here- https://github.com/rstudio/tensorflow. I want to use Keras for deep learning in R.
devtools::install_github("rstudio/tensorflow")
library(tensorflow)
install_tensorflow()
but there was an error
Error: Prerequisites for installing TensorFlow not available.
Execute the following at a terminal to install the prerequisites:
$ sudo /usr/local/bin/pip install --upgrade virtualenv
i followed the code given to put into terminal but this seems like another error
The directory '/Users/liangweiteo/Library/Caches/pip/http' or its
parent directory is not owned by the current user and the cache has
been disabled. Please check the permissions and owner of that
directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/liangweiteo/Library/Caches/pip' or its parent
directory is not owned by the current user and caching wheels has been
disabled. check the permissions and owner of that directory. If
executing pip with sudo, you may want sudo's -H flag. Requirement
already up-to-date: virtualenv in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
tried to look for help on this site
Error while installing Tensorflow in R
but somehow the error is still there

Why is there no qmake-qt5 included in the qt5-default package

I installed qt5-default on my Odroid XU3 using the the sudo apt-get install qt5-default command and wanted to run qmake-qt5 using the terminal but it printed that this command is unknown. Then I looked in the usr/share/qt5 folder and noticed that there is only the doc-foder inside. I also looked in the usr/bin folder and could only find qmake-qt4 but no qmake-qt5. When I run the install command, I also read that some libraries will be installed, so I think, libraries are not the problem.
Next I tried to install qmake-q5t manually from this page https://launchpad.net/ubuntu/trusty/+package/qt5-qmake but then I got a message that there is a newer version of qmake-qt5 already installed. I searched the whole system using the find command for qmake-qt5 but couldn't detect it.
Last I also tried to add the ubuntu-sdk ppa using as described here https://askubuntu.com/questions/279421/how-can-i-install-qt-5-x-on-12-04-lts but this also didn't work out.
Does it have something to do with my Odroid or with Lubuntu? Is there any other way to install qmake-qt5?
I tried to compile and make with the already installed qt4 and this did work out using
qmake-qt4 -project
qmake-qt4
make
./helloworld
I want do the same but only with qt5
Thanks in advance
The qmake executable is installed in /usr/lib/<your_arch>/qt5/bin as qmake (no -qt5 suffix).
You can check with qmake --version, it should report you a Qt version 5.x.x

Resources