From b7f2387d014d770a2e89352e9a98ef495ac48634 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 17 Aug 2014 10:53:59 -0700 Subject: [PATCH] Created Issues with Cygwin (markdown) --- Issues-with-Cygwin.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Issues-with-Cygwin.md diff --git a/Issues-with-Cygwin.md b/Issues-with-Cygwin.md new file mode 100644 index 0000000..54ef0b6 --- /dev/null +++ b/Issues-with-Cygwin.md @@ -0,0 +1,23 @@ +See https://github.com/junegunn/fzf/issues/89 + +### Source code in dos format + +If you see `line 2: $'\r': command not found` message when you run install script, it is likely that your git installation automatically converted the source to dos format. Please reinstall your git so that it does not clone source in dos format, or you can just use `curl` or `wget` instead to download the source. + +```sh +mkdir -p ~/.fzf +curl -L https://github.com/junegunn/fzf/archive/master.tar.gz | + tar xz --strip-components 1 -C ~/.fzf +~/.fzf/install +``` + +### `No such file or directory` + +You may have trouble running fzf with Ruby for Windows. Try to run it with the Ruby bundled with Cygwin. + +#### References + +- http://stackoverflow.com/questions/3831131/rubygems-cygwin-posix-path-not-found-by-ruby-exe +- http://blog.mmediasys.com/2008/10/27/handy-tip-dont-mix-one-click-installer-with-cygwin/ +- http://www.question-defense.com/2009/03/27/rubyexe-no-such-file-or-directory-cygdrivecrubybingem-loaderror +- http://stackoverflow.com/questions/3831131/rubygems-cygwin-posix-path-not-found-by-ruby-exe