Installing R in cloudera's hadoop VM - r

Using cloudera's distro of hadoop for virtualbox, I first updated the epel:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86/epel-release-5-4.noarch.rpm
Which goes through just fine. But when I try
sudo yum install R
I get this:
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtcl8.4.so()(64bit)
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtk8.4.so() (64bit)
And the installation just quits. Is there any recommended steps from here? I get the same errors when trying to open the files from cran as well.
edit: I finally figured out the issue. Since I'm new to this kind of thing, I didn't realize the epel-release... file was out of date. If you're blindly following some guide like me and they haven't updated the epel release, you can check by going to http://dl.fedoraproject.org/pub/epel/6/x86_64/ and searching for epel-release. The most current version should be there.
By doing:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://download2.rstudio.org/rstudio-server-0.97.336-x86_64.rpm
sudo yum install --nogpgcheck rstudio-server-0.97.336-x86_64.rpm
That fixed the issue.

Related

R ERROR: dependencies ‘xml2’, ‘httr’ are not available for package (Linux Mint 20.1)

I did not quite know where this belongs exactly, so I decided to post this here on stack overflow.
I recently had package issues with R and R-Studio on Linux Mint 20.1, where I always recieved dependency errors when installing packages like plotly and tidyverse. Therefore, in order to test if my system was responsible I live booted a fresh Linux Mint USB and installed R and R-Studio the following way:
sudo apt update
sudo apt dist-upgrade
sudo apt install r-base
Then download R-Studio from here and installed it like:
sudo apt-get install gdebi-core
# Install R-Studio with gdebi
sudo gdebi rstudio-1.2.5042-amd64.deb
Then, I opened RStudio by typing rstudio in the terminal. Inside RStudio I tried to install the package tidyverse by install.packages("tidyverse") which resulted in some dependency errors like:
ERROR: dependencies ‘xml2’, ‘httr’ are not available for package ‘rvest’
* removing ‘/home/mint/R/x86_64-pc-linux-gnu-library/3.6/rvest’
* installing *source* package ‘tibble’ ...
The solution was to use the command, suggested in the r-lib issue by #fredaas:
sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
By using this command I was able to resolve the issue and install every package I required flawlessly.
I am sorry if this does not belong here but I hope I can help someone saving hours of troubleshooting. This issues is maybe caused by Linux Mint or the most recent R Version 4.0.3 so I was not sure where to share my results.

Installing rgl and rgdal packages in R 3.3.2 on Ubuntu 16.10

I'm using R 3.3.2 and Ubuntu 16.10. I'm unable to install rgl and rgdal packages.
When I use
install.packages("rgl")
gives the following error message:
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
When I use
install.packages("rgdal")
gives the following error message:
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
Edited
When I use
sudo apt-get install r-cran-rgl
in Ubuntu Terminal, it says
r-cran-rgl is already the newest version (0.95.1441-2)
However, the latest version of rgl is 0.96.0.
When I use
sudo apt-get install libgdal-dev libgeos++-dev
it throws the following error:
The following packages have unmet dependencies:
libgdal-dev : Depends: libopenjp2-7-dev but it is not going to be installed
I found a solution that was useful for me here: http://robinlovelace.net/r/2013/11/26/installing-rgdal-on-ubuntu.html.
In short, the solution would be this tree command lines:
sudo apt-get install aptitude # install aptitude as an alternative to apt-get
sudo aptitude install libgdal-dev # install the package (you may have to respond to queries here)
sudo aptitude install libproj-dev # install the proj.4 projection library
For rgl, just do sudo apt-get install r-cran-rgl.
For rgdal, follow the recommendation of the spatial folks eg here for sf and do this
add ubuntugis-unstable to the package repositories (e.g. with sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable and then sudo apt-get install libgdal-dev libgeos++-dev)
For general 'R on Ubuntu or Debian' questions, go to the r-sig-debian list.
Edit: Note that you don't need need ubuntugis-unstable repo if the current/older libgdal, libproj4 versions are good enough for you. Those are in the Ubuntu distro so just do sudo apt-get install ....
These installations worked for me provided that, in addition, I installed libxerces-c28. The need for the related shared object was indicated in the error log the first time I tried, after doing the installations indicated (libgdal, libgdal-dev, etc)

Issues with installing R on Centos 7

I'm trying to install R on my CentOS 7 by...
yum install epel-release
yum install R
but i keep seeing this error at end of installing R
....
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicuuc.so.42()(64bit)
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicui18n.so.42()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I can't figure out what this error means...
What can i do for solving this problem?
or am i missing something with my procedure?
Download the lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm from the below link:
ftp://fr2.rpmfind.net/linux/Mandriva/official/2010.0/x86_64/media/main/release/lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
Install the RPM:
sudo rpm -ivh lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
This could help solving the error. Thanks!
rpm link:
https://www.rpmfind.net/linux/rpm2html/search.php?query=libicuuc.so.42()(64bit)

Installing (and deploying) Mono ASP.Net to Redhat

I have an Asp.Net app (built in mono) that I am trying to deploy to a Linux Redhat 6 environment. I tried following the instructions on the mono website:
http://www.mono-project.com/docs/web/aspnet/
http://www.mono-project.com/docs/getting-started/install/linux/
I was able to get nginx installed and setup; however it appears I don't have fastcgi-mono-server4 installed. I've been googling all over the place trying to find how to install that on Redhat with no luck. I thought I'd try the apache instructions instead but I'm having no luck getting mod_mono installed. I tried to install mono-devel using yum but I keep getting the following errors:
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15()(64bit)
Error: Package: libmonosgen-2_0-1-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5()(64bit)
Error: Package: mono-core-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.16)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: mono-devel-4.0.3.20-0.xamarin.4.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download.mono-project.com_repo_centos_)
Requires: libpng15.so.15(PNG15_0)(64bit)
I'm kind of at a loss here. Can anyone point me in the right direction to get mono installed on redhat and get my Asp.Net application properly deployed using either nginx or apache?
I had the same problem. I needed to reproduce the production environment (Fedora 17) and I was not able to install mono because of many references errors, similar to the issues mentioned in the question.
The only way to fix this was to download mono's source code and follow the steps he mentions.
I will copy-and-paste the procedure mentioned at: http://help.octopusdeploy.com/discussions/problems/39756-install-mono-on-centos-66
$ sudo yum -y install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ sudo wget http://download.mono-project.com/sources/mono/mono-4.4.0.182.tar.bz2
$ sudo tar jxf mono-4.4.0.182.tar.bz2
$ cd mono-4.0.1
$ sudo ./configure --prefix=/opt/mono
$ sudo make
$ sudo make install
after everything is finished:
$ vi ~/.bashrc
add the following lines:
export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig
After that, I was able to correctly compile mono files on Fedora 17.
By the way, I used the latest version of Mono, found at:
http://download.mono-project.com/sources/mono/
Edit:
1) To see the effects of having mono on the path of a root terminal, close all terminal windows and log in again. The effects of changing ~/.bashrc are not seen immediately.
2) To be honest, I would like to be able to run mono from a non-root terminal. To achieve this, the idea is to edit ~/.bashrc from a non-root terminal. The process is the same as above but add "sudo" to edit the bash config for your (non-root) user.
It's been more than a month, if you are still looking for the answer, I found few links which seems to be useful.
http://help.octopusdeploy.com/discussions/problems/39756-install-mono-on-centos-66
http://www.linuxquestions.org/questions/linux-software-2/installing-mono-error-requires-libc-so-6-glibc_2-15-64bit-4175540534/
Even I facing the same problem, trying to fix this, will update if I manage to fix :)
I never did find a solution to this with Redhat 6. We ended up wiping the server and installing Redhat 7. From there, we were able to install and configure mono running on nginx and it works beautifully. I think the Redhat 6 repositories are just too far out of date to handle mono. I would recommend using Redhat 7+.

‘seewave' install error “'sndfile.h' file not found” (for R 3.2.0 under OSX Yosemite)

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

Resources