有两种方式建立环境
A 下载 closure-1.7xx zip 包
B 使用 leiningen
windows 下 一个 lein.bat
lein.bat self-install
发生异常
lein>lein.bat self-install
Downloading Leiningen now...
使用“2”个参数调用“DownloadFile”时发生异常:“在 WebClient 请求期间发生异常。
”
所在位置 行:1 字符: 165
+ & {param($a,$f) $client = New-Object System.Net.WebClient; $client.Proxy.Cre
dentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; $client.Down
loadFile <<<< ($a, $f)} "https://github.com/technomancy/leiningen/releases/down
load/2.5.3/leiningen-2.5.3-standalone.zip" "C:\Users\Administrator-410111
552\.lein\self-installs\leiningen-2.5.3-standalone.jar.pending"
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
系统找不到指定的文件。
怀疑是网络 土蔷 问题。
马上开vpn , 几分钟之后, succeed
\lein>lein.bat self-install
Downloading Leiningen now...
移动了 1 个文件。
\lein>lein.bat
Leiningen is a tool for working with Clojure projects.
Several tasks are available:
change Rewrite project.clj by applying a function.
check Check syntax and warn on reflection.
classpath Print the classpath of the current project.