当前位置: 动力学知识库 > 问答 > 编程问答 >

clojure - How to start the Speclj tutorial?

问题描述:

Inspired by this coding kata I'd like to try the Clojure language.

After installing lein on my Ubuntu box, I wanted to use speclj for testing, so I went to the official tutorial page, where I was told to simply execute lein new speclj change-counter to create my new project.

However, it seems to me that Leiningen thinks that my project name is "speclj" instead of "change-counter", so instead of having src/change-counter/core.clj I have src/speclj/core.clj.

What am I missing here? (~/.lein is empty.)

网友答案:

Did you install lein by following the instructions in lein's README (as the tutorial you linked instructs)? I wouldn't be surprised to find that the version in your package manager is defective in some way, and it's almost certainly outdated. I don't know how lein templates are distributed, but I think a fresh lein install will magically have the one you're looking for, whereas an install from apt is probably static.

分享给朋友:
您可能感兴趣的文章:
随机阅读: