1. Install Java 8. At the terminal type:

    sudo yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel
  2. Run the following command and select version 8 of the JRE:

    sudo update-alternatives --config java

    To see if you’ve got the correct Java version:

    java -version

    You should see something like:

    openjdk version "1.8.0_171"
    OpenJDK Runtime Environment (build 1.8.0_171-b10)
    OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)
  3. Install rlwrap:

    wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/rlwrap-0.42-1.el7.x86_64.rpm
    sudo yum -y install rlwrap-0.42-1.el7.x86_64.rpm
  4. Install Clojure 1.9:

    curl -O https://download.clojure.org/install/linux-install-1.9.0.391.sh
    chmod +x linux-install-1.9.0.391.sh
    sudo ./linux-install-1.9.0.391.sh
  5. Add the following dependencies to /usr/local/lib/clojure/deps.edn using an editor available from the command line and with super user privileges (sudo vim):

    :deps {
      org.clojure/clojure            {:mvn/version "1.9.0"}
      org.clojure/core.logic         {:mvn/version "0.8.11"}
      org.clojure/math.numeric-tower {:mvn/version "0.0.4"}
    }
  6. To run the Clojure REPL:

    clj

    Type Ctrl-D to quit the REPL.