Installing giternal

Posted by jjolma on December 3, 2008 at 10:09 pm.

I read great things about giternal here.

I ran into problems trying to install it based on the README, though. I installed the gem from RubyForge but wasn’t able to find the giternal executable. And trying to run the sake tasks gave errors like:

/Library/Ruby/Gems/1.8/gems/RubyInline-3.6.7/lib/inline.rb:732:in `initialize': Permission denied - /Users/jolma/.ruby_inline/Inline_ParseTree_fa12.c (Errno::EACCES)

and


undefined local variable or method `require_giternal' for main:Object

Pat Maddox, the author, quickly responded to my question. The key is building the gem from the git source instead of using the gem on RubyForge. Here is how to do it:


git clone git://github.com/pat-maddox/giternal.git
cd giternal
rake install_gem

This may require you install a few gems like hoe and rspec first.

Then, to verify you are set up:


$ giternal
Usage: giternal (update:freeze:unfreeze)

Test it on a project

$ cd ../someproject/

$ more config/giternal.yml
rspec:
repo: git://github.com/dchelimsky/rspec.git
path: vendor/plugins

$ ls -al vendor/plugins/rspec
ls: vendor/plugins/rspec: No such file or directory

$ giternal update

$ giternal update
Updating rspec
..updated

$ ls -al vendor/plugins/rspec
total 272

Yay.

One Comment

  • Pat Maddox says:

    Jeff, thanks for emailing me and then taking the time to write this up. Thanks to you pointing it out I’ve released a new gem on Rubyforge, so it should work for others based off the README now.

Trackbacks / Pingbacks

Leave a Reply