« Ruby 1.9 #bostonrb Writeup | Main | IgniteBoston 4 »

September 10, 2008

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

Re__gemloadprob2






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":

Re__gemloadprob1






However, my directory layout required a string search like so: "net/ldap":

Re__gemloadprob3
























I changed one of the elements in that array to "net/ldap". That took care of this problem.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e5526afb0b88330105349f6590970c

Listed below are links to weblogs that reference Gem require looking in the wrong path:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

My Photo

share the love

  • Recommend Me

Attending

I did it

My Twitter Updates

    follow me on Twitter

    Blogroll

    • Amy Hoy
      design, rails, web, writing
    • Jay Neely
      Social Strategist
    • David Cancel
      Making something from nothing.
    • My Better Half
      Blog on Data Mining and Analytics, with a special focus on Oracle. Analytics paves the way to transform databases into Knowledgebases.