Skip to content

Instantly share code, notes, and snippets.

@KSCGroup
Created February 17, 2012 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KSCGroup/1854631 to your computer and use it in GitHub Desktop.
Save KSCGroup/1854631 to your computer and use it in GitHub Desktop.
Log of all the installation steps for cljsh, lein and lein repls on MacOSX 10.7.3 from scratch (no lein, no cljsh...)
Last login: Fri Feb 17 09:36:04 on ttys007
~>sudo rm -rf ~/.m2/ .lein/ ~/opt/bin/cljsh ~/opt/bin/lein /usr/bin/cljsh /usr/bin/lein
Password:
~>curl https://raw.github.com/technomancy/leiningen/stable/bin/lein > ~/opt/bin/lein
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9824 100 9824 0 0 10808 0 --:--:-- --:--:-- --:--:-- 20552
~>chmod +x ~/opt/bin/lein
~>sudo ln -s /Users/franks/opt/bin/lein /usr/bin/lein
~>curl https://raw.github.com/franks42/lein-repls/stable/bin/cljsh > ~/opt/bin/cljsh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22819 100 22819 0 0 26809 0 --:--:-- --:--:-- --:--:-- 52821
~>chmod +x ~/opt/bin/cljsh
~>sudo ln -s /Users/franks/opt/bin/cljsh /usr/bin/cljsh
~>curl https://raw.github.com/franks42/lein-repls/stable/bin/cljsh-test.sh > ~/opt/bin/cljsh-test.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12554 100 12554 0 0 22232 0 --:--:-- --:--:-- --:--:-- 29961
~>chmod +x ~/opt/bin/cljsh-test.sh
~>lein selfupdate
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3165k 100 3165k 0 0 717k 0 0:00:04 0:00:04 --:--:-- 795k
/Users/franks/opt/bin/lein: line 144: sha1sum: command not found
WARNING: Clojure jar failed to download from http://build.clojure.org/releases/org/clojure/clojure/1.2.1/clojure-1.2.1.jar
Downloading Leiningen now...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9470k 100 9470k 0 0 2506k 0 0:00:03 0:00:03 --:--:-- 3461k
That's not a task. Use "lein help" to list all tasks.
~>cd Development/Clojure/
~/Development/Clojure>lein new testing123
Created new project in: /Users/franks/Development/Clojure/testing123
Look over project.clj and start coding in testing123/core.clj
~/Development/Clojure>cd testing123/
~/Development/Clojure/testing123>cljsh -U
Downloading cljsh stable version number...
cljsh at "/Users/franks/opt/bin/cljsh" has version "1.9.5" and the latest stable version is CLJSH_VERSION="1.9.5".
Do you want to upgrade to stable version CLJSH_VERSION="1.9.5" [y/N]? n
Cljsh upgrade aborted.
~/Development/Clojure/testing123>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"]
[lein-repls "1.9.5"]
Enter lein-repls version (e.g. 1.2.3) to install/upgrade-to ([return]: do nothing): 1.9.5
Installing/Upgrading-to lein-repls version 1.9.5...
[INFO] Unable to find resource 'lein-repls:lein-repls:jar:1.9.5' in repository central (http://repo1.maven.org/maven2)
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 /var/folders/th/v9cn0zjn1830736cjqg8l9jm0000gn/T/lein-5759154b-0328-4f75-8955-6f0b5e0ad03e/lib
Including lein-repls-1.9.5.jar
Including clojure-1.3.0.jar
Including hiccup-0.3.8.jar
Created lein-repls-1.9.5.jar
~/Development/Clojure/testing123>cljsh -l
Starting "lein repls"...
~/Development/Clojure/testing123>cljsh -lc '(println "hello cljsh-repls")'
hello cljsh-repls
~/Development/Clojure/testing123>cljsh-test.sh 2>&1 | bcat
~/Development/Clojure/testing123>cljsh -wr
"Welcome to your Clojure (1.3.0) lein-repls (1.9.5) client!"
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment