[英]problems installing clojure lein under mac os 10.13.6
I am using Homebrew with the command brew install leiningen but trying lein repl
gives 我将Homebrew与命令brew install leiningen一起使用,但是尝试
lein repl
给
java.lang.ClassCastException: java.lang.Character cannot be cast to java.uti
l.Map$Entr
followed by many pages ending with 其次是许多以结尾的页面
clojure.main.main (main.java:37)
the same happens with Macports or supplied script, boot
installs perfectly with Homebrew. Macports或提供的脚本也会发生同样的情况,
boot
程序可通过Homebrew完美安装。 I am learning Clojure from the Brave and True book which needs lein repl 我正在从《勇敢与真实》一书中学习Clojure,该书需要lein repl
To "install" lein just download the download script from the web page and run it : https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein 要“安装” lein,只需从网页下载下载脚本并运行它即可: https ://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
Hope it helps 希望能帮助到你
Consider using sdkman
, even if leiningen is straightforward to use: 考虑使用
sdkman
,即使leiningen易于使用:
curl -s "https://get.sdkman.io" | bash
Then open a new terminal and type: 然后打开一个新终端并输入:
sdk install leiningen
Now try your: 现在尝试:
lein repl
While you're at it, sdk
can be used to manage your Java installations. 使用它时,
sdk
可用于管理Java安装。 Never again worry about dirtying your system with various versions, as they all go in your home directory, cleanly. 不必再担心会因各种版本而弄脏系统,因为它们都干净地放在您的主目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.