postmodern / gem_home

A tool for changing your $GEM_HOME
MIT License
118 stars 12 forks source link

Installation instructions not working #4

Closed RobertAudi closed 10 years ago

RobertAudi commented 10 years ago

In the installation instructions, the wget command fails with a 404. There is no releases/tags/archives on this repo. (I had to clone the repo manually).

As a side note, wget is not available in OS X by default, it needs to be installed using homebrew. So a curl alternative example could be nice (or instructions on how to install with homebrew, since the keg exists in the repo already).

postmodern commented 10 years ago

Oops, haven't tagged 0.1.0.

While curl is installed by default on OSX, it is intended for raw HTTP access. wget is better suited for getting files.

RobertAudi commented 10 years ago

Cool thanks :+1:

How about the homebrew package? Would be nice to be able to update using homebrew.

postmodern commented 10 years ago

Tagged and updated the local homebrew formula.

RobertAudi commented 10 years ago

Awesome :+1:

I am going to be a pain in the ass though (sorry). Could you add instructions to install via homebrew:

$ brew install --HEAD https://raw.github.com/postmodern/gem_home/master/homebrew/gem_home.rb

Also, not sure about the syntax of formulas, but when I installed it the linking failed:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/gem_home/gem_home.sh
/usr/local/share/gem_home is not writable.

You can try again using:
  brew link gem_home

So I think the formula should be modified with does changes:

  1. Disable linking
  2. Add a "Caveats" section to inform the user that he needs to source the gem_home.sh file (source /usr/local/Cellar/gem_home/HEAD/share/gem_home/gem_home.sh)
RobertAudi commented 10 years ago

Thanks! :+1: