[英]Leiningen in Ubuntu 13.10 won't work
I have upgraded my Ubuntu to 13.10, and now I can't seem to use leiningen. 我已经将Ubuntu升级到13.10,现在似乎无法使用leiningen。
I have project that I was working on before upgrade, and all dependencies I have added before upgrade, are working, but now I have added plaza
to work with RDF, but I keep getting FileNotFoundException
. 我有一个在升级之前正在处理的项目,并且在升级之前添加的所有依赖项都在正常工作,但是现在我添加了可与RDF一起使用的
plaza
,但是我一直在获取FileNotFoundException
。
When I try to REPL lein deps
I get following error: 当我尝试REPL
lein deps
以下错误:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: lein in this context, compiling:(NO_SOURCE_PATH:1:42)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: deps in this context, compiling:(NO_SOURCE_PATH:1:42)
lein deps
is a command you run at the shell (for instance, Bash), not at the REPL. lein deps
是您在Shell(例如Bash)而不是REPL上运行的命令。 When you type lein deps
at the REPL Clojure looks for vars named lein
and deps
but they don't exist - thus the error. 当您在REPL上键入
lein deps
时,Clojure将查找名为lein
和deps
var,但它们不存在-因此出现错误。
If you've declared a new dependency in your project.clj
, simply close the REPL you currently have open and then run lein repl
again from within your project directory. 如果您在
project.clj
声明了新的依赖关系,只需关闭当前已打开的REPL,然后在项目目录中再次运行lein repl
。 It will install the dependency and open a new REPL, where you'll then be able to access that dependency (as well as the ones you installed previously). 它将安装依赖关系并打开一个新的REPL,然后您就可以在其中访问该依赖关系(以及之前安装的依赖关系)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.