trouble setting up emacs
I am trying to follow the directions at http://dev.clojure.org/display/doc/Getting+Started+with+Emacs. 1. I want to install the Emacs Starter Kit. The directions at http://dev.clojure.org/display/doc/Getting+Started+with+Emacs mention "GNU Emacs 23 or 24 is recommended", however https://github.com/technomancy/emacs-starter-kit says "You'll need Emacs 24". The directions say "precompiled versions are readily available for Debian-based systems...". I'm using a Debian based system. so I went to http://emacs.naquadah.org/. a. I executed> wget -q -O - http://emacs.naquadah.org/key.gpg | sudo apt-key add - b. I'm now confused as to which version I want: Stable? If so I should then follow the directions to add 2 lines to /etc/apt/sources.list, and then what do I do? 2. Once I get emacs 24 installed, the directions sort of leave off with " In both cases, you need to launch a Clojure instance with the correct classpath settings. This is most commonly done using a build tool such as Leiningen. For instructions see the Build Tools section of Getting Started." Going to http://dev.clojure.org/display/doc/Getting+Started and perusing the Build Tools doesn't explain how to setup and launch a Clojure instance. I see some explanations at http://blog.bensmann.com/setting-up-a-clojure-development-environment but don't know if that includes some obsolete directions. thanks, -Bruce -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: lein not configured properly
found this gem http://www.mepis.org/docs/en/index.php?title=Java_How-tos which contained MEPIS 11 To install the proprietary sun-java6 version (the most current version that exists in the stable debian repositories) and remove the default openjdk-6-jre* java packages & icedtea6-plugin packages, execute this command in the konsole: su -c 'apt-get install sun-java6-plugin sun-java6-fonts openjdk-6- jre*-' You will have to accept the license terms during the install (page down as needed to get to the bottom). Next this command is now needed to change the setting of net.ipv6.bindv6only so java apps can have net access: su -c 'sed -i "s/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/" /etc/sysctl.d/bindv6only.conf && invoke-rc.d procps restart' and voila, as easy as 1,2,3 :-), 4,5,6,7,8,9... lein repl now works! thank you very much for helping! -Bruce On Oct 14, 3:38 pm, Bruce Gordon wrote: > Good thinking. Don't have an answer yet but maven failed with > --- > Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resource... > [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- > resources-plugin:pom:2.3' from repository central (http:// > repo1.maven.org/maven2): Error transferring file: Network is > unreachable > Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resource... > [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- > resources-plugin:pom:2.3' from repository central (http:// > repo1.maven.org/maven2): Error transferring file: Network is > unreachable > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error building POM (may not be this project's POM). > > > > I should remove and add Sun Java. Of course I don't want to do it > exactly the way I did it last time:-). Any suggestions? -Bruce > > On Oct 14, 3:22 pm, Phil Hagelberg wrote: > > > > > > > > > On Fri, Oct 14, 2011 at 12:20 PM, Bruce Gordon > > wrote: > > > Is this normal? > > > > bruce@mepis1:~/cloj2$ mvn > > > bash: mvn: command not found > > > Yes, you don't need to have Maven installed to use Leiningen. > > > It looks like your JVM simply can't access the network. Could be a > > variety of issues, including DNS resolution, firewalls, or IPv6 > > problems. > > > -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: lein not configured properly
Good thinking. Don't have an answer yet but maven failed with --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- resources-plugin:pom:2.3' from repository central (http:// repo1.maven.org/maven2): Error transferring file: Network is unreachable Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- resources-plugin:pom:2.3' from repository central (http:// repo1.maven.org/maven2): Error transferring file: Network is unreachable [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). I should remove and add Sun Java. Of course I don't want to do it exactly the way I did it last time:-). Any suggestions? -Bruce On Oct 14, 3:22 pm, Phil Hagelberg wrote: > On Fri, Oct 14, 2011 at 12:20 PM, Bruce Gordon wrote: > > Is this normal? > > > bruce@mepis1:~/cloj2$ mvn > > bash: mvn: command not found > > Yes, you don't need to have Maven installed to use Leiningen. > > It looks like your JVM simply can't access the network. Could be a > variety of issues, including DNS resolution, firewalls, or IPv6 > problems. > > -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: lein not configured properly
To see if that hypothesis is true I can try some java program that tries to access the network. I have some stand alone java program that is built with Maven. I can install maven, and then see if I can build the program. If yes then java can access the web... On Oct 14, 3:22 pm, Phil Hagelberg wrote: > On Fri, Oct 14, 2011 at 12:20 PM, Bruce Gordon wrote: > > Is this normal? > > > bruce@mepis1:~/cloj2$ mvn > > bash: mvn: command not found > > Yes, you don't need to have Maven installed to use Leiningen. > > It looks like your JVM simply can't access the network. Could be a > variety of issues, including DNS resolution, firewalls, or IPv6 > problems. > > -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: lein not configured properly
Is this normal? bruce@mepis1:~/cloj2$ mvn bash: mvn: command not found On Oct 14, 3:17 pm, Bruce Gordon wrote: > lein repl gives an error! > > > bruce@mepis1:~/cloj2$ lein repl > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.pom from central > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.pom from clojars > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.pom from central > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.jar from central > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.jar from clojars > Downloading: org/clojure/clojure/1.2.1/clojure-1.2.1.jar from central > An error has occurred while processing the Maven artifact tasks. > Diagnosis: > > Unable to resolve artifact: Missing: > -- > 1) org.clojure:clojure:jar:1.2.1 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.apache.maven:super-pom:jar:2.0 > 2) org.clojure:clojure:jar:1.2.1 > > -- > 1 required artifact is missing. > > for artifact: > org.apache.maven:super-pom:jar:2.0 > > from the specified remote repositories: > clojars (http://clojars.org/repo/), > central (http://repo1.maven.org/maven2) > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at jline.ConsoleRunner.main(ConsoleRunner.java:69) > Caused by: Unable to resolve artifact: Missing: > -- > 1) org.clojure:clojure:jar:1.2.1 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.apache.maven:super-pom:jar:2.0 > 2) org.clojure:clojure:jar:1.2.1 > > -- > 1 required artifact is missing. > > for artifact: > org.apache.maven:super-pom:jar:2.0 > > from the specified remote repositories: > clojars (http://clojars.org/repo/), > central (http://repo1.maven.org/maven2) > > (NO_SOURCE_FILE:0) > at clojure.lang.Compiler.eval(Compiler.java:5440) > at clojure.lang.Compiler.eval(Compiler.java:5391) > at clojure.core$eval.invoke(core.clj:2382) > at clojure.main$eval_opt.invoke(main.clj:235) > at clojure.main$initialize.invoke(main.clj:254) > at clojure.main$script_opt.invoke(main.clj:270) > at clojure.main$main.doInvoke(main.clj:354) > at clojure.lang.RestFn.invoke(RestFn.java:457) > at clojure.lang.Var.invoke(Var.java:377) > at clojure.lang.AFn.applyToHelper(AFn.java:172) > at clojure.lang.Var.applyTo(Var.java:482) > at clojure.main.main(main.java:37) > ... 5 more > Caused by: Unable to resolve artifact: Missing: > -- > 1) org.clojure:clojure:jar:1.2.1 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=org.clojure - > DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ > file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.apache.maven:super-pom:jar:2.0 > 2) org.clojure:clojure:jar:1.2.1 > > -- > 1 required artifact is missing. > > for artifact: > org.apa
Re: lein not configured properly
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:265) at leiningen.deps$do_deps.invoke(deps.clj:131) at leiningen.deps$deps.doInvoke(deps.clj:195) at clojure.lang.RestFn.invoke(RestFn.java:410) at leiningen.repl$repl.invoke(repl.clj:137) at clojure.lang.Var.invoke(Var.java:365) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.Var.applyTo(Var.java:482) at clojure.core$apply.invoke(core.clj:542) at leiningen.core$apply_task.invoke(core.clj:228) at leiningen.core$_main.doInvoke(core.clj:294) at clojure.lang.RestFn.invoke(RestFn.java:410) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.RestFn.applyTo(RestFn.java:132) at clojure.core$apply.invoke(core.clj:542) at leiningen.core$_main.invoke(core.clj:297) at user$eval42.invoke(NO_SOURCE_FILE:1) at clojure.lang.Compiler.eval(Compiler.java:5424) ... 16 more Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) org.clojure:clojure:jar:1.2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.clojure - DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.clojure - DartifactId=clojure -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/ file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven:super-pom:jar:2.0 2) org.clojure:clojure:jar:1.2.1 -- 1 required artifact is missing. for artifact: org.apache.maven:super-pom:jar:2.0 from the specified remote repositories: clojars (http://clojars.org/repo/), central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java: 324) at org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask.java: 170) ... 40 more bruce@mepis1:~/cloj2$ On Oct 14, 3:07 pm, Mark Rathwell wrote: > Run 'lein repl', then copy in and run the code below. Post back > whether you get an error (and what it is), or if it finishes without a > problem (this is downloading a 50MB file, so give it a few minutes). > > (import 'java.io.File) > > (import 'java.net.URL) > > (require '[clojure.java.io :as io]) > > (def u (URL. > "http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip";)) > > (defn download-index [url] > (with-open [stream (.openStream url)] > (println "Downloading index from" "-" url "... this may take a while.") > (let [tmp (java.io.File/createTempFile "lein" "index")] > (try (io/copy stream tmp) > (println "copied stream to tmp: " tmp) > (finally (.delete tmp)) > > (download-index u) > > > > > > > > On Fri, Oct 14, 2011 at 2:26 PM, Bruce Gordon wrote: > > I am in a VirtualBox VM (running SimplyMepis) hosted in Windows Vista. > > From within the vm I can download those files from a browser. > > > On Oct 14, 2:17 pm, Mark Rathwell wrote: > >> Are you behind a firewall or proxy that would be blocking .zip files? > >> lein search first makes sure it has an updated index from those > >> repositories, and if not tries to download and unzip those index > >> files: > > >>http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip... > > >> Can you download those files in a browser? > > >> (Also, there is a lein specific group > >> athttp://groups.google.com/group/leiningen) > > >> - Mark > > >> On Fri, Oct 14, 2011 at 1:55 PM, Bruce Gordon > >> wrote: > >> > I first followed the directions > >> > athttp://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html > >> > , but then abandoned that effort thanks to irc advice. I then started > >> > following > >> > thehttp://dev.clojure.org/display/doc/Getting+Started+with+Leiningen > >> > directions. However I suspect I am not configured properly since the > >> > search isn't working-see below. > > >> > bruce@mepis1:~/bin$ lein search hadoop > >> > Warning: couldn't download index forhttp://repo1.maven.org/maven2 > >> > Warning: couldn't download index forhttp://clojars.org/repo/ > > >> > bruce@mepis1:~/bin$ lein version > >> > Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(T
Re: lein not configured properly
I am in a VirtualBox VM (running SimplyMepis) hosted in Windows Vista. >From within the vm I can download those files from a browser. On Oct 14, 2:17 pm, Mark Rathwell wrote: > Are you behind a firewall or proxy that would be blocking .zip files? > lein search first makes sure it has an updated index from those > repositories, and if not tries to download and unzip those index > files: > > http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.ziphttp://clojars.org/repo/.index/nexus-maven-repository-index.zip > > Can you download those files in a browser? > > (Also, there is a lein specific group > athttp://groups.google.com/group/leiningen) > > - Mark > > > > > > > > On Fri, Oct 14, 2011 at 1:55 PM, Bruce Gordon wrote: > > I first followed the directions > > athttp://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html > > , but then abandoned that effort thanks to irc advice. I then started > > following > > thehttp://dev.clojure.org/display/doc/Getting+Started+with+Leiningen > > directions. However I suspect I am not configured properly since the > > search isn't working-see below. > > > bruce@mepis1:~/bin$ lein search hadoop > > Warning: couldn't download index forhttp://repo1.maven.org/maven2 > > Warning: couldn't download index forhttp://clojars.org/repo/ > > > bruce@mepis1:~/bin$ lein version > > Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM > > > Next I backed out my explicit install of ant and maven via >apt-get > > remove ant and >apt-get remove maven2 > > > but lein still yields the same result. > > > Should I uninstall lein (how?), and start over? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
lein not configured properly
I first followed the directions at http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html , but then abandoned that effort thanks to irc advice. I then started following the http://dev.clojure.org/display/doc/Getting+Started+with+Leiningen directions. However I suspect I am not configured properly since the search isn't working-see below. bruce@mepis1:~/bin$ lein search hadoop Warning: couldn't download index for http://repo1.maven.org/maven2 Warning: couldn't download index for http://clojars.org/repo/ bruce@mepis1:~/bin$ lein version Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM Next I backed out my explicit install of ant and maven via >apt-get remove ant and >apt-get remove maven2 but lein still yields the same result. Should I uninstall lein (how?), and start over? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
newbie, installation problem
I'm trying to install Clojure following the directions at http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html . I'm installing on SimplyMepis. I've installed the sun JDK and can verify the installation with the following: [root@mepis1 clojure]# java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) When I run ant I get the following error. --- [java] Testing clojure.test-clojure.java.io [java] [java] ERROR in (test-socket-iofactory) (PlainSocketImpl.java:-2) [java] Uncaught exception, not in assertion. [java] expected: nil [java] actual: java.net.SocketException: Network is unreachable [java] at java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java:-2) [java] java.net.PlainSocketImpl.doConnect (PlainSocketImpl.java:351) [java] java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:213) [java] java.net.PlainSocketImpl.connect (PlainSocketImpl.java: 200) [java] java.net.SocksSocketImpl.connect (SocksSocketImpl.java: 366) [java] java.net.Socket.connect (Socket.java:529) [java] java.net.Socket.connect (Socket.java:478) [java] java.net.Socket. (Socket.java:375) [java] java.net.Socket. (Socket.java:189) [java] clojure.test_clojure.java.io/fn (io.clj:199) [java] clojure.test$test_var$fn__6484.invoke (test.clj:693) [java] clojure.test$test_var.invoke (test.clj:693) [java] clojure.test$test_all_vars$fn__6488$fn__6495.invoke (test.clj:709) [java] clojure.test$default_fixture.invoke (test.clj:663) [java] clojure.test$test_all_vars$fn__6488.invoke (test.clj: 709) [java] clojure.test$default_fixture.invoke (test.clj:663) [java] clojure.test$test_all_vars.invoke (test.clj:705) [java] clojure.test$test_ns.invoke (test.clj:728) [java] clojure.core$map$fn__3811.invoke (core.clj:2431) [java] clojure.lang.LazySeq.sval (LazySeq.java:42) [java] clojure.lang.LazySeq.seq (LazySeq.java:60) [java] clojure.lang.Cons.next (Cons.java:39) [java] clojure.lang.RT.boundedLength (RT.java:1607) [java] clojure.lang.RestFn.applyTo (RestFn.java:130) [java] clojure.core$apply.invoke (core.clj:602) [java] clojure.test$run_tests.doInvoke (test.clj:743) [java] clojure.lang.RestFn.applyTo (RestFn.java:137) [java] clojure.core$apply.invoke (core.clj:600) [java] clojure.test_clojure$eval20580.invoke (run_tests.clj: 59) [java] clojure.lang.Compiler.eval (Compiler.java:6493) [java] clojure.lang.Compiler.load (Compiler.java:6930) [java] clojure.lang.Compiler.loadFile (Compiler.java:6891) [java] clojure.main$load_script.invoke (main.clj:282) [java] clojure.main$script_opt.invoke (main.clj:342) [java] clojure.main$main.doInvoke (main.clj:426) [java] clojure.lang.RestFn.invoke (RestFn.java:408) [java] clojure.lang.Var.invoke (Var.java:401) [java] clojure.lang.AFn.applyToHelper (AFn.java:161) [java] clojure.lang.Var.applyTo (Var.java:518) [java] clojure.main.main (main.java:37) - All the other tests are successful. I'm open to all suggestions, including alternative installation ideas. Thanks, -Bruce -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en