I’m trying to install lein in my new macbook (osx 10.8.2) following the tutorial on https://github.com/technomancy/leiningen
When executing the lein script, I’m getting this error:
/bin/lein: line 1: {rtf1ansiansicpg1252cocoartf1187cocoasubrtf340: command not found
/bin/lein: line 2: syntax error near unexpected token }'{\fonttbl\f0\fmodern\fcharset0 Courier;}’
/bin/lein: line 2:
The script I’m using is this one
https://raw.github.com/technomancy/leiningen/preview/bin/lein
The
{rtf1 ...comes from an rtf document.I suppose you haven’t copy/pasted the script from the web into a document using TextEdit?
That program defaults to rtf, which could cause this problem.
You should try pasting in a ‘decent’ text editor. Try your IDE, or Vim or nano or something like that.