trouble installing

15 views
Skip to first unread message

Lee

unread,
Dec 13, 2010, 4:09:14 PM12/13/10
to textmate-clojure
I've followed the instructions at http://www.assembla.com/wiki/show/clojure/Getting_Started_with_Textmate
but am getting "env: cake: No such file or directory" whenever I try
to evaluate a form.

There are a couple of places that I suspect I may have messed up, but
I'm not sure which (or what else) may be the culprit.

When I did the "gem install cake" I got these two warnings:

WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/leespector/.gem/ruby/1.8/bin in your
PATH,
gem executables will not run.

So I then went and added /Users/leespector/.gem/ruby/1.8/bin to my
PATH.

Incidentally, I also got errors from the "osascript -e 'tell app
"TextMate" to reload bundles'" step:

2010-12-13 15:20:36.284 osascript[10352:903] Error loading /Library/
ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit
Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/
Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did
find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/
Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/
ScriptingAdditions/Adobe Unit Types.osax" declares no loadable
handlers.

but I don't think that's relevant (?).

In any event, I can use cake to create a project, and then do "cake
deps", edit the core.clj file that's automatically created, and "cake
run" it -- and that runs the code I added as expected.

In TextMate I can open the core.clj and it loads clojure mode, does
the right editor stuff, shows the right menus, etc. I can start cake
from TextMate and it says "Cake started!"

But if I then try to evaluate or load any code it invariably says
"env: cake: No such file or directory".

Anybody know what I'm doing wrong?

Thanks,

-Lee

David Nolen

unread,
Dec 14, 2010, 1:07:11 PM12/14/10
to textmate...@googlegroups.com
Did you try installing cake w/ sudo?

sudo gem install cake

David

Lee Spector

unread,
Dec 14, 2010, 3:22:07 PM12/14/10
to textmate...@googlegroups.com
On Dec 14, 2010, at 1:07 PM, David Nolen wrote:

> Did you try installing cake w/ sudo?
>
> sudo gem install cake
>

I hadn't. Just did, and after doing that and several other things I now have it working. I don't know if it was actually the sudo or one of the other steps I just took that made the difference (or all of the above).

In any event: Thanks! It works now.

BTW after stumbling through the above-mentioned "several other things" and writing half of a note suggesting that these be added to the assembla page I saw that that page does already link to the README at https://github.com/swannodette/textmate-clojure, and that the README covers all of the issues with which I was having trouble. So it's all already there, but maybe the assembla page could be tweaked slightly, e.g. by including the sudo in the gem command and maybe changing the text that points to the README to make it more obvious that the system won't work -- that is, it won't do the stuff demonstrated so nicely at http://blip.tv/file/4160578 -- unless you first read and follow the instructions in the README (e.g. to include contrib in your project.clj file...).

-Lee

David Nolen

unread,
Dec 16, 2010, 4:28:29 PM12/16/10
to textmate...@googlegroups.com
On Tue, Dec 14, 2010 at 3:22 PM, Lee Spector <lspe...@hampshire.edu> wrote:
BTW after stumbling through the above-mentioned "several other things" and writing half of a note suggesting that these be added to the assembla page I saw that that page does already link to the README at https://github.com/swannodette/textmate-clojure, and that the README covers all of the issues with which I was having trouble. So it's all already there, but maybe the assembla page could be tweaked slightly, e.g. by including the sudo in the gem command and maybe changing the text that points to the README to make it more obvious that the system won't work -- that is, it won't do the stuff demonstrated so nicely at http://blip.tv/file/4160578 -- unless you first read and follow the instructions in the README (e.g. to include contrib in your project.clj file...).

 -Lee

It's probably better at this point to update Confluence with the correct information. Assembla is old news now :)

David

Lee Spector

unread,
Dec 16, 2010, 4:44:17 PM12/16/10
to textmate...@googlegroups.com

On Dec 16, 2010, at 4:28 PM, David Nolen wrote:
>
> It's probably better at this point to update Confluence with the correct information. Assembla is old news now :)
>
> David


Really? I'm not sure how how broadly to interpret your ":)". I hadn't previously heard of Confluence and clojure.org points to Assembla, not Confluence...

-Lee

David Nolen

unread,
Dec 16, 2010, 5:01:50 PM12/16/10
to textmate...@googlegroups.com
There's a lot of transition ATM and thus confusion. Confluence is where information should be now. The sooner we all move that info over the better.

David 

David Nolen

unread,
Dec 16, 2010, 5:47:36 PM12/16/10
to textmate...@googlegroups.com
What http://clojure.org pages seem to point Assembla? 

Lee Spector

unread,
Dec 16, 2010, 8:53:40 PM12/16/10
to textmate...@googlegroups.com

On Dec 16, 2010, at 5:47 PM, David Nolen wrote:
>
> Really? I'm not sure how how broadly to interpret your ":)". I hadn't previously heard of Confluence and clojure.org points to Assembla, not Confluence...
>
> -Lee
>
> What http://clojure.org pages seem to point Assembla?
>

http://clojure.org/getting_started, which links to http://www.assembla.com/wiki/show/clojure/Getting_Started

There's another link to the same page at: http://clojure.org/downloads

The linked content at Assembla is quite helpful and includes the TextMate link that I was talking about. I don't know where it should live, but I hope that the content remains available and updated.

-Lee

Reply all
Reply to author
Forward
0 new messages