no such file to load — hmac-sha1
July 3rd, 2009 by RadarWhen 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.

July 23rd, 2009 at 12:25 pm
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.
July 25th, 2009 at 10:18 am
Or it could be ruby-hmac gem that is missing….
August 5th, 2009 at 7:42 am
I needed hmac-sha2 and it’s in ruby-hmac indeed \o/
August 13th, 2009 at 12:58 am
Thanks for this! Really!
September 14th, 2009 at 9:08 pm
I need ruby-openid aswell … ruby-hmac was installed.
September 15th, 2009 at 10:01 am
Hooray for quick google searches! Thanks man
October 6th, 2009 at 5:18 am
Awesome! Just what i was looking for. thanks.
October 28th, 2009 at 8:58 am
Nice 1
February 15th, 2010 at 5:17 pm
[...] no such file to load — hmac-sha1 [...]
February 24th, 2010 at 10:57 am
Another thank you! Direct hit with google. Was packaging a liboauth-ruby for apt and you saved me hunting around for the dependency :)
April 22nd, 2010 at 6:59 pm
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?
August 30th, 2010 at 6:06 am
Simply: Thank you!