Problems with lein installation in a macbook - macos

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.

Related

Why can't my terminal run icecast.xml code?

I'm trying to launch an ice cast server by running the icecast.xml file in my terminal on Mac, I get the following errors
/Users/me/Desktop/Streaming/icecast-2.4.4/conf/icecast_minimal.xml: line 2: syntax error near unexpected token `newline'
/Users/me/Desktop/Streaming/icecast-2.4.4/conf/icecast_minimal.xml: line 2: `<icecast>'
Do I need to install it in an etc location or can I run it from the same directory it is in. My conclusion is that I installed the file in an inappropriate location.

Julia stdin error with Vim and AsyncRun in WIndows

I am using Vim in Windows with the plugin AsyncRun; when I try to execute a simple julia <filename> I get the following:
ERROR: error initializing stdin in uv_dup: Unknown system error 6 (Unknown system error 6 6).
This should be a julia-Windows issue since the same procedure in linux works correctly. Python and other languages also function with Vim & Asyncrun in Windows. Calling julia <filename> in either cmd or PowerShell executes as expected.
Is there a cli option or configuration for julia that can fix this?
EDIT: This bug has been fixed.

Clojure fireplace in vim asking for python

Trying to get get fireplace set up in vim but having trouble with some error messages.
When I type cpr in a clojure buffer the following error shows up:
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform..fireplace#register_
port_file..fireplace#nrepl_connection#open..fireplace#nrepl#for..<SNR>75_nrepl_
process..<SNR>75_nrepl_message..<SNR>75_nrepl_call..<SNR>74_nrepl_transport_cal
l..<SNR>74_nrepl_transport_dispatch:
line 6:
E605: Exception not caught: nREPL: zsh:1: command not found: python^#
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform:
line 9:
E171: Missing :endif
The thing I understand is that it cant find python. In my shell I can start python with the python command which will fire up 3.4.2.
Im using nixos
:echo has('python') returns 0
echo $PATH and :! echo $PATH return the same path.
What can I try in order to find what is actually causing this error?
You have to install/compile vim with python support for vim-fireplace to work, and this may not be the default on your system. I believe typing :help python will do this for you. If you don't get anything, you may have to recompile vim with python support, for which I'll direct you towards Google for now.
Another option if you have pip installed is to consider switching to neovim. Installing neovim with pip install neovim will get you python support. I've been using neovim lately, and it's worked pretty well for me.

Kulture error - kpm command not found

I recently installed Sublime Text 3 with the aim of coding some C# on the Mac. I then followed the steps on http://www.omnisharp.net for the installation of the plugins and everything works fine until I try to build a simple "HelloWorld" project. Then I get the error
/Users/guevara/Library/Application Support/Sublime Text 3/Packages/Kulture/build.sh: line 21: kpm: command not found
I did check that I have the ASP.NET 5 KVM for MAC installed. Following the steps at http://www.enterpriseframework.com/post/2014/12/02/how-to-mac-vnext-step-by-step-setup-and-first-app also works, so the kpm command has been installed through Homebrew.
Any idea what I am doing wrong or why Kulture can't find the kpm command?
Thanks,
Alex
Look at the last line of installing kvm on OS X instructions at https://github.com/aspnet/Home:
Run command source kvm.sh on your terminal if your terminal cannot understand kvm.
but with the beta3 there's an issue in Kulture's build.sh, I have updated 4 1st lignes:
ver=`cat ~/.k/alias/default.alias`
add_to_path=$HOME"/.k/runtimes/"$ver"/bin"
export PATH=$PATH:/usr/local/bin:$add_to_path
[ -s $HOME"/.k/kvm/kvm.sh" ] && . $HOME"/.k/kvm/kvm.sh"

Sublime Text 2 - BeautifyRuby don't work

i've installed BeautifyRuby in my Sublime Text 2 (running OS X Yosemite 10.10), but is not working, I receive this message when I try to cmd + ctrl + k:
Error: invalid output. Check your ruby interpreter settings
I've changed, as suggested https://github.com/CraigWilliams/BeautifyRuby , the sublime-settings file with:
"ruby": "/Users/alessiogastaldo/.rbenv/bin/ruby"
and also using the specific version:
"ruby": "/Users/alessiogastaldo/.rbenv/versions/1.8.7-p371/bin/ruby"
but with no success.
I've read the different solutions proposed (like https://github.com/CraigWilliams/BeautifyRuby/issues/52) but nothing works.
Anyone do know how to solve this?
I had the same problem too.
I solved with this:
In terminal, run the command: which ruby.
Copy the result. In my case was: "/home/user/.rbenv/shims/ruby"
Open your package settings. In my case: Preferences > Package Settings > BeautyfyRuby > Settings Default.
Add this line in the file: "ruby": "/home/user/.rbenv/shims/ruby",
You will need to install the htmlbeautifier gem.
Run the commmand in terminal: gem install htmlbeautifier
It works for me.

Resources