IllegalStateException编译Clojure-Contrib [英] IllegalStateException Compiling Clojure-Contrib

查看:210
本文介绍了IllegalStateException编译Clojure-Contrib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Maven编译我自己的版本的clojure-contrib我得到以下异常:

 线程中的异常mainjava.lang.IllegalStateException:不能动态绑定非动态var:clojure.contrib.pprint / * format-str *,compile:(dispatch.clj:90)



我也使用下面的命令编译它:

  mvn package -Dclojure.jar = / usr / local / share / jars / clojure.jar 

clojure.jar链接到实际的jar(在同一目录),因为我使用的是从Git仓库编译的版本。



任何想法?



感谢您的意见! =)

解决方案

clojure-contrib,单一整体构建,在Clojure 1.2.0之后不推荐使用,它不是基于最新的Clojure 1.3.0-alpha *版本构建的。



新的contrib库(每个Github存储库一个)正在http://github.com/clojure



请参阅 http://dev.clojure.org/display/design/Clojure+Contrib 及其子页面了解更多信息。


I am trying to compile my own version of clojure-contrib with Maven I get the following exception:

Exception in thread "main" java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: clojure.contrib.pprint/*format-str*, compiling:(dispatch.clj:90)

I am also using the following command to compile it:

mvn package -Dclojure.jar=/usr/local/share/jars/clojure.jar

clojure.jar is link to the actual jar (that is on the same directory) because I am using a version that I compiled from the Git repository.

Any Ideas?

Thanks in advance for your comments! =)

解决方案

clojure-contrib, the single monolithic build, is deprecated after Clojure 1.2.0 and is not actively maintained. It doesn't build on the latest Clojure 1.3.0-alpha* releases.

New contrib libraries, one per Github repository, are being created under http://github.com/clojure

See http://dev.clojure.org/display/design/Clojure+Contrib and its sub-pages for more information.

这篇关于IllegalStateException编译Clojure-Contrib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆