no such file to load — hmac-sha1

July 3rd, 2009 by Radar

When you encounter the above error, it means you’re missing the ruby-openid ruby-hmac gem. I couldn’t find anything on google that clearly stated this, so I’m posting it here as a reminder for myself and others.

Thanks to the comments for clarifying the gem needed.

12 Responses to “no such file to load — hmac-sha1”

  1. Craig Roberts Says:

    Thank God you did.

    Now I’m going to chase down the next error in the Gitorious install – it’s like dependency hell all over again.

  2. Freddy Andersen Says:

    Or it could be ruby-hmac gem that is missing….

  3. aurelian Says:

    I needed hmac-sha2 and it’s in ruby-hmac indeed \o/

  4. Pete Says:

    Thanks for this! Really!

  5. SnafuPete Says:

    I need ruby-openid aswell … ruby-hmac was installed.

  6. Josh Says:

    Hooray for quick google searches! Thanks man

  7. Sam Says:

    Awesome! Just what i was looking for. thanks.

  8. Chris Says:

    Nice 1

  9. no such file to load — hmac-sha1 « Ruby on Rails UI Designer | Ruby on Rails Frontend Developer Says:

    [...] no such file to load — hmac-sha1 [...]

  10. Will Daniels Says:

    Another thank you! Direct hit with google. Was packaging a liboauth-ruby for apt and you saved me hunting around for the dependency :)

  11. kuanfai Says:

    Hi I have installed hmac with the command: gem install ruby-hmac. And my gem list shows: -bash-3.00# gem list

    *** LOCAL GEMS ***

    actionmailer (2.3.2, 2.2.2) actionpack (2.2.2) activerecord (2.3.2, 2.2.2) activerecord-oracle-adapter (1.0.0.9250) activeresource (2.3.2, 2.2.2) activesupport (2.3.2, 2.2.2) cgimultiparteoffix (2.5.0) compositeprimarykeys (2.2.2) daemons (1.0.10) fastercsv (1.4.0) fastthread (1.0.7) fcgi (0.8.7) gemplugin (0.2.3) mislav-will_paginate (2.3.8) passenger (2.2.4) rails (2.3.2, 2.2.2) rake (0.8.4) ruby-hmac (0.4.0) rubygems-update (1.3.1)

    but still i get this error message “LoadError: no such file to load — ruby-hmac”, any clue?

  12. Salz` Says:

    Simply: Thank you!

Leave a Reply