Skip to content
Advertisement

How to install R and RMySQL in RedHat Linux 8?

How do I install R and RMYSQL on RedHat Linux 8?

Cannot get the epel working. Trying to install R gives dependency errors.

Advertisement

Answer

Followed the instructions here: https://linuxconfig.org/install-r-on-linux-redhat-8 (Assuming that you have already installed the MySQL)

  1. Untar the downloaded R :

    JavaScript
  2. Now install the following using yum:

    JavaScript
  3. Now configure:

    JavaScript
  4. Make install :

    JavaScript
  5. Now to launch R from anywhere:

    JavaScript

    That should install the R.

  6. you can move R: cp -r R-3.6.0 /usr/local/R

After this you can install DBI:

  1. Install DBI:

    JavaScript
  2. Create the mariadb repo:

    JavaScript
  3. Add the following in the repo file:

    JavaScript
  4. Install mariadb

    JavaScript
  5. Get RMySQL from here: https://cran.r-project.org/web/packages/RMySQL/index.html

  6. Install RMySQL:

    JavaScript
  7. Test the installation:

    JavaScript
Advertisement