Gem require looking in the wrong path
I was getting the error below when running a rake task. Which meant I couldn't rebuild my database. In specific, I started getting the error after freezing the ruby-net-ldap gem:
mm157859-pc:app carlisia$ rake (in /Users/carlisia/development/surveyengine)
ERROR:
Please update
/Users/carlisia/development/surveyengine/vendor/gems/ruby-net-ldap-0.0.4/init.rb
with the require path for linked RubyGem ruby-net-ldap
When I followed what the error message was informing and looked at the init.rb file, I noticed that none of the strings in the"require_options" array matched what was in my local directory. The two original strings to search for were "ruby-net-ldap" and "ruby/net/ldap":
However, my directory layout required a string search like so: "net/ldap":
I changed one of the elements in that array to "net/ldap". That took care of this problem.





Comments