Skip to content

@KSCGroup /cljsh-lubuntu-install.log
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Log of all the installation steps for cljsh, lein and lein repls on lubuntu 11.10 from scratch (no lein, no cljsh...)
admin@lubuntu:~$ mkdir Development bin
admin@lubuntu:~$ curl https://raw.github.com/technomancy/leiningen/stable/bin/lein > bin/lein
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9824 100 9824 0 0 12419 0 --:--:-- --:--:-- --:--:-- 18397
admin@lubuntu:~$ chmod +x bin/lein
admin@lubuntu:~$ sudo ln -s /home/admin/bin/lein /usr/local/bin/lein
admin@lubuntu:~$ curl https://raw.github.com/franks42/lein-repls/stable/bin/cljsh > bin/cljsh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22819 100 22819 0 0 29793 0 --:--:-- --:--:-- --:--:-- 44743
admin@lubuntu:~$ chmod +x bin/cljsh
admin@lubuntu:~$ sudo ln -s /home/admin/bin/cljsh /usr/local/bin/cljsh
admin@lubuntu:~$ curl https://raw.github.com/franks42/lein-repls/stable/bin/cljsh-test.sh > bin/cljsh-test.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12742 100 12742 0 0 17549 0 --:--:-- --:--:-- --:--:-- 30338
admin@lubuntu:~$ chmod +x bin/cljsh-test.sh
admin@lubuntu:~$ cd Development/
admin@lubuntu:~/Development$ lein new t123
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3165k 100 3165k 0 0 246k 0 0:00:12 0:00:12 --:--:-- 174k
Downloading Leiningen now...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 152 100 152 0 0 202 0 --:--:-- --:--:-- --:--:-- 298
100 9470k 100 9470k 0 0 623k 0 0:00:15 0:00:15 --:--:-- 701k
Created new project in: /home/admin/Development/t123
Look over project.clj and start coding in t123/core.clj
admin@lubuntu:~/Development$ cd t123/
admin@lubuntu:~/Development/t123$ cljsh -u
Determine if the lein-repls plugin is installed...
No lein-repls plugin installed (yet).
Downloading lein-repls info from clojars...
Available versions on clojars:
[lein-repls "1.0.0-SNAPSHOT"]
[lein-repls "1.1.0-SNAPSHOT"]
[lein-repls "1.2.0-SNAPSHOT"]
[lein-repls "1.3.0-SNAPSHOT"]
[lein-repls "1.5.0-SNAPSHOT"]
[lein-repls "1.6.0"]
[lein-repls "1.9.4-SNAPSHOT"]
Enter lein-repls version (e.g. 1.2.3) to install/upgrade-to ([return]: do nothing): 1.9.4-SNAPSHOT
Installing/Upgrading-to lein-repls version 1.9.4-SNAPSHOT...
[INFO] snapshot lein-repls:lein-repls:1.9.4-SNAPSHOT: checking for updates from central
[INFO] snapshot lein-repls:lein-repls:1.9.4-SNAPSHOT: checking for updates from clojars
Downloading: org/clojure/clojure/1.3.0/clojure-1.3.0.pom from repository central at http://repo1.maven.org/maven2
Downloading: org/sonatype/oss/oss-parent/5/oss-parent-5.pom from repository central at http://repo1.maven.org/maven2
Downloading: hiccup/hiccup/0.3.8/hiccup-0.3.8.pom from repository central at http://repo1.maven.org/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'hiccup:hiccup:pom:0.3.8' in repository central (http://repo1.maven.org/maven2)
Downloading: hiccup/hiccup/0.3.8/hiccup-0.3.8.pom from repository clojars at http://clojars.org/repo/
Transferring 2K from clojars
Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.pom from repository clojars at http://clojars.org/repo/
Transferring 1K from clojars
Downloading: hiccup/hiccup/0.3.8/hiccup-0.3.8.jar from repository central at http://repo1.maven.org/maven2
Downloading: org/clojure/clojure/1.3.0/clojure-1.3.0.jar from repository central at http://repo1.maven.org/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'hiccup:hiccup:jar:0.3.8' in repository central (http://repo1.maven.org/maven2)
Downloading: hiccup/hiccup/0.3.8/hiccup-0.3.8.jar from repository clojars at http://clojars.org/repo/
Transferring 8K from clojars
Copying 2 files to /tmp/lein-69d3662e-6b6d-443e-a134-f9ca67e938f1/lib
Including lein-repls-1.9.4-SNAPSHOT.jar
Including hiccup-0.3.8.jar
Including clojure-1.3.0.jar
Created lein-repls-1.9.4-SNAPSHOT.jar
admin@lubuntu:~/Development/t123$ export XTERM=lxterminal
admin@lubuntu:~/Development/t123$ cljsh -l
Starting "lein repls"...
admin@lubuntu:~/Development/t123$ # a new terminal window opened with a lein repls server running...
admin@lubuntu:~/Development/t123$ cljsh -c '(println "hello cljsh-world")'
hello cljsh-world
admin@lubuntu:~/Development/t123$
admin@lubuntu:~/Development/t123$ cljsh -v
cljsh version: 1.9.4 and lein-repls version: 1.9.4-SNAPSHOT
admin@lubuntu:~/Development/t123$ cljsh -r
"Welcome to your Clojure (1.3.0) lein-repls (1.9.4-SNAPSHOT) client!"
user=>
admin@lubuntu:~/Development/t123$ # first generate clj-word completion file with -w
admin@lubuntu:~/Development/t123$ cljsh -wr
"Welcome to your Clojure (1.3.0) lein-repls (1.9.4-SNAPSHOT) client!"
user=> (de
dec def defmacro defn defprotocol deftype deliver derive
decimal? definline defmethod defn- defrecord delay denominator descendants
declare definterface defmulti defonce defstruct delay? deref destructure
user=> (def abc @@cljsh.core/c
cljsh.core/cljsh-command-line-args cljsh.core/cljsh-file-command-path
cljsh.core/cljsh-command-path cljsh.core/cljsh-repl-caught
cljsh.core/cljsh-env cljsh.core/current-thread
cljsh.core/cljsh-file-command-line-args
user=> (def abc @@cljsh.core/cljsh-command-path)
#'user/abc
user=> abc
"/usr/local/bin/cljsh"
user=>
admin@lubuntu:~/Development/t123$ ~/bin/cljsh-test.sh 2>&1 | bcat
admin@lubuntu:~/Development/t123$ # opens a browser window with test script results - all looks kosher...
admin@lubuntu:~/Development/t123$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.