0

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 }' /bin/lein: line 2:{\fonttbl\f0\fmodern\fcharset0 Courier;}'

The script I'm using is this one https://raw.github.com/technomancy/leiningen/preview/bin/lein

Alex Miller
  • 69,183
  • 25
  • 122
  • 167
user828390
  • 13
  • 1

1 Answers1

0

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.

Dennis Haarbrink
  • 3,738
  • 1
  • 27
  • 54