Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

OS X 10.6.2 clj woes... #8

Open
pygy opened this Issue · 2 comments

2 participants

@pygy

Hi,

I have several problems with the clj script on OS X 10.6.2, I'm not well versed in either bash scripts or the JVM environment, so I don't know exactly what to do to sort things out...

Here are the symptoms.

It only works properly when called with it's full path prefixed.
/User/.../ClojureX/clj works as intended so far (to launch the REPL or a simple .clj file : (print 5)).

The symlink in /usr/local/bin works fine, but only when I run it from the ClojureX directory. When I do that, I get a readlink error message (illegal option -- f, which doesn't make sense), but it works fine otherwise in the scenarios described above, even when you pass a symlink as an argument.

When I try to run "clj" from anywhere else, I get the following:

readlink: illegal option -- f
usage: readlink [-n] [file ...]
Exception in thread "main" java.lang.NoClassDefFoundError: jline/ConsoleRunner
Caused by: java.lang.ClassNotFoundException: jline.ConsoleRunner
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:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)

I get a similar message when I try to launch a script directly (shebang: #! /usr/bin/env clj)...

@citizen428
Owner

True, I noticed the same yesterday evening at home, it's related to the change I commited yesterday. Unfortunately readlink on OS X is not the same as on Linux, so you get the error message.

@citizen428
Owner

I removed the -f option for the time being. Will have to implement some platform neutral way to determine the canonical path.

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.