lein bin clojure插件制作可执行jar/zip malloc错误bug?
在Mac OS X 10.9.5上,当我运行“lein bin”时,会生成二进制文件,但运行时会出现以下错误:lein bin clojure插件制作可执行jar/zip malloc错误bug?,clojure,leiningen,Clojure,Leiningen,在Mac OS X 10.9.5上,当我运行“lein bin”时,会生成二进制文件,但运行时会出现以下错误: paul$ target/event-hub-cli -bash(64435,0x7fff7e177310) malloc: *** error for object 0x7fdd7d10f190: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abo
paul$ target/event-hub-cli
-bash(64435,0x7fff7e177310) malloc: *** error for object 0x7fdd7d10f190: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
但是,当我运行uberjar时,它就工作了
paul$ java -jar target/event-hub-cli-0.1.0-SNAPSHOT-standalone.jar
Hello, World!
我的project.clj如下
(defproject event-hub-cli "0.1.0-SNAPSHOT"
:description "An event hub client"
:dependencies [[org.clojure/clojure "1.5.1"]
[edu.byu.eventhub/eventhub-client "1.0.0-SNAPSHOT"]]
:main event-hub-cli.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}}
:plugins [[lein-bin "0.3.4"]]
:bin {:name "event-hub-cli"
:bin-path "~/bin"}
)
这是一个bug还是我只是错误地使用了插件?尝试使用
lein-bin
的0.3.5版,它会解决您的问题:
:plugins [[lein-bin "0.3.5"]]
我试图在MacOSX10.10.5(和Java8)上构建您的项目lein bin
插件版本0.3.4失败,但使用的是版本0.3.5