小编Mic*_*zyk的帖子

clojure/lein REPL with jline

出于某种原因,我无法使用jj的clojure REPL,我做的是git克隆github上的clojure存储库然后运行ant来构建它,然后我将jline-0.9.94.jar下载到clojure.jar的目录中,然后运行以下命令:

java -cp jline-0.9.94.jar:clojure.jar jline.ConsoleRunner clojure.main
Run Code Online (Sandbox Code Playgroud)

并得到以下错误:

    Exception in thread "main" java.lang.ClassNotFoundException: clojure.main
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:164)
 at jline.ConsoleRunner.main(Unknown Source)
Run Code Online (Sandbox Code Playgroud)

以下是我当前目录中的文件:

vvshs-macbook-2:clojure vvsh$ ls
build.xml                                 clojure-sources-1.2.0-master-SNAPSHOT.jar epl-v10.html                              src
classes                                   clojure-sources.jar                       jline-0.9.94.jar                          test
clojure-1.2.0-master-SNAPSHOT.jar         clojure.iml                               pom-template.xml
clojure-slim-1.2.0-master-SNAPSHOT.jar    clojure.jar                               pom.xml
clojure-slim.jar                          doc                                       readme.txt
vvshs-macbook-2:clojure vvsh$ 
Run Code Online (Sandbox Code Playgroud)

我在clojure 1.1和lein repl上得到了同样的错误(似乎lein维护了自己的clojure版本).

顺便说一句,这是在mac ox 10.5.8

java version "1.5.0_24"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_24-b02-357-9M3165)
Java HotSpot(TM) Client VM (build …
Run Code Online (Sandbox Code Playgroud)

clojure jline

6
推荐指数
1
解决办法
3017
查看次数

在Clojure中 - 如何访问结构向量中的键

我有以下结构矢量:

(defstruct #^{:doc "Basic structure for book information."}
  book :title :authors :price)

(def #^{:doc "The top ten Amazon best sellers on 16 Mar 2010."}
  best-sellers
  [(struct book
           "The Big Short"
           ["Michael Lewis"]
           15.09)
   (struct book
           "The Help"
           ["Kathryn Stockett"]
           9.50)
   (struct book
           "Change Your Prain, Change Your Body"
           ["Daniel G. Amen M.D."]
           14.29)
   (struct book
           "Food Rules"
           ["Michael Pollan"]
           5.00)
   (struct book
           "Courage and Consequence"
           ["Karl Rove"]
           16.50)
   (struct book
           "A Patriot's History of the United States"
           ["Larry Schweikart","Michael Allen"] …
Run Code Online (Sandbox Code Playgroud)

clojure

5
推荐指数
1
解决办法
283
查看次数

安装HDBC-SQlite3 Haskell

我在安装过程中面临问题:

>>setup configure

Configuring HDBC-sqlite3-2.3.0.0...
setup: Missing dependency on a foreign library:
* Missing C library: sqlite3
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Run Code Online (Sandbox Code Playgroud)

我该怎么办 ?

谢谢你的帮助

sqlite haskell

4
推荐指数
2
解决办法
2055
查看次数

解决urls.py的问题,同时遵循django的教程

http://docs.djangoproject.com/en/dev/intro/tutorial03/

我正在解决URLconfs的步骤,其中教程说明了如何解耦urls.py.在完全按照它说的做,我得到以下错误 -

error at /polls/1/
nothing to repeat
Request Method: GET
Request URL:    http://localhost:8000/polls/1/
Exception Type: error
Exception Value:    
nothing to repeat
Exception Location: C:\jython2.5.1\Lib\re.py in _compile, line 241
Python Executable:  C:\jython2.5.1\jython.bat
Python Version: 2.5.1
Python Path:    ['E:\\Programming\\Project\\django_app\\mysite', 'C:\\jython2.5.1\\Lib\\site-packages\\setuptools-0.6c11-py2.5.egg', 'C:\\jython2.5.1\\Lib', '__classpath__', '__pyclasspath__/', 'C:\\jython2.5.1\\Lib\\site-packages']
Server time:    Mon, 12 Apr 2010 12:02:56 +0530
Run Code Online (Sandbox Code Playgroud)

django url jython django-urls

0
推荐指数
1
解决办法
1084
查看次数

标签 统计

clojure ×2

django ×1

django-urls ×1

haskell ×1

jline ×1

jython ×1

sqlite ×1

url ×1