Fork me on GitHub
#babashka
<
2020-07-16
>
bherrmann14:07:55

Humm.... I was setting up bb on a new Ubuntu 20.04 machine, and I use the docopt stuff... The docopt page ( https://github.com/nubank/docopt.clj#babashka ) says do this,

export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {docopt {:git/url "" :sha "12b997548381b607ddb246e4f4c54c01906e70aa"}}}')
but on my machine,
$ clojure -Spath -Sdeps '{:deps {docopt {:git/url "" :sha "12b997548381b607ddb246e4f4c54c01906e70aa"}}}'
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-Spath (No such file or directory)

Full report at:
/tmp/clojure-8616373056470595069.edn
Are there different "clojure" command line programs about? I installed "clojure" using $ sudo apt install clojure
$ clojure
Clojure 1.10.1
user=> 
Color me confused.

bherrmann16:07:34

ok, I solved my issue.

$ sudo apt remove clojure
$ curl -O    # from 
$ chmod +x linux-install-1.10.1.536.sh
$ sudo ./linux-install-1.10.1.536.s
# and now it works!
$ clojure -Spath -Sdeps '{:deps {docopt {:git/url "" :sha "12b997548381b607ddb246e4f4c54c01906e70aa"}}}'
src:/home/bob/.m2/repository/org/clojure/clojure/1.10.1/clojure-1.10.1.jar:/home/bob/.gitlibs/libs/docopt/docopt/12b997548381b607ddb246e4f4c54c01906e70aa/src:/home/bob/.m2/repository/org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar:/home/bob/.m2/repository/org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar

👍 3