Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


OS X 10.6.2 clj woes... #8

pygy opened this Issue · 2 comments

2 participants



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 Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(

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


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.


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.