简体   繁体   中英

Problems with lein installation in a macbook

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM