Skip to content

cwchentw/clojure-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-install

License: MIT

Wrapper and Utility for Clojure

System Requirements

  • JDK
  • Clojure
  • jline 1.x, only for Windows
  • (Optional) rlwrap, only for Unix

Our script will download Clojure and jline automatically. Hence, you don't need to manage dependency issue except JDK itself.

rlwrap support is detected and added automatically if it is available on a host.

We test our scripts against OpenJDK.

Usage

Windows

Download clojure-install.bat

Run clojure-install.bat without parameter to install Clojure to default location:

> clojure-install.bat

Default installation path is %USERPROFILE%\clojure, e.g. C:\Users\user\clojure.

Run the script with parameter to install Clojure to some specific prefix:

> clojure-install.bat %USERPROFILE%\opt

In this case, Clojure will be installed to %USERPROFILE%\opt\clojure, e.g. C:\Users\user\opt\clojure.

Remember to set PATH variable by yourself. Later, call Clojure with cljrun.bat.

Unix

Download clojure-install.

Run clojure-install without parameter to install Clojure to default location:

$ clojure-install

Default installation path is $HOME/clojure, e.g. /home/user/clojure.

Run the script with parameter to install Clojure to some specific prefix:

> clojure-install $HOME/opt

In this case, Clojure will be installed to $HOME/opt/clojure, e.g. /home/user/opt/clojure.

Remember to set PATH variable by yourself. Later, call Clojure with cljrun.

Note

To avoid name collision with official Clojure cli tools, we name our main scripts cljrun on Unix and cljrun.bat on Windows.

For Windows Users

As our cljrun.bat script add jline 1.x support to the REPL environment of Clojure, press Ctrl + d to quit its interactive mode.

For Unix Users

Since our cljrun script add optional rlwrap support to the REPL environment of Clojure, press Ctrl + d to exit its interactive mode if rlwrap is available on the host.

Known Issues or Bugs

Currently, our script fails to compile Clojure with system Maven.

On Windows, Invoke-WebRequest cmdlet is only supported on PowerShell 3.0 or above. PowerShell 3.0 is available on Windows 8 or Windows 7 with service pack 1.

Copyright

Copyright (c) 2020 Michael Chen. Licnesed under MIT.

About

Wrapper and Utility for Clojure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published