Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 460541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:53:02+00:00 2026-05-12T22:53:02+00:00

I tried adding a few gems to my Rails app using the config.gem instruction

  • 0

I tried adding a few gems to my Rails app using the config.gem instruction in environment.rb so that when the app gets deployed on a new system, the missing gems issue can be taken care of with rake gems:install

After adding the list of required gems that my app depends on, my app failed to start. If I remove the list of required gems from the environment.rb file the app starts fine.

The comment in environment.rb says

# You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3)

I am pretty much certain that I am missing the :lib option for one of the gems, how does one find if the gem is a library and the library name for it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:53:02+00:00Added an answer on May 12, 2026 at 10:53 pm

    My tried and true method of finding the correct library (if not included in the readme, which I’ve found to often been the case) is to run

    gem spec

    and then looking through the file list, especially in the lib/ directory. Usually the one with the name closest to the gem itself is the one I’m looking for. Obviously this is not %100 reliable, but its worked for me alright.

    For example gem spec ruby-plsql gives

    --- !ruby/object:Gem::Specification 
    name: ruby-plsql
    
    ....    
    
    extra_rdoc_files: 
    - History.txt
    - License.txt
    - README.txt
    files: 
    - History.txt
    - License.txt
    - README.txt
    - lib/oradate_patch.rb
    - lib/plsql/connection.rb
    - lib/plsql/jdbc_connection.rb
    - lib/plsql/oci_connection.rb
    - lib/plsql/package.rb
    - lib/plsql/procedure.rb
    - lib/plsql/schema.rb
    - lib/ruby_plsql.rb
    - lib/ruby_plsql/version.rb
    - spec/plsql/package_spec.rb
    - spec/plsql/procedure_spec.rb
    - spec/plsql/schema_spec.rb
    - spec/spec.opts
    - spec/spec_helper.rb
    has_rdoc: true
    homepage: http://ruby-plsql.rubyforge.org
    licenses: []
    
    ....
    
    rubyforge_project: ruby-plsql
    rubygems_version: 1.3.4
    signing_key: 
    specification_version: 2
    summary: ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.
    test_files: []
    

    And I see

    lib/ruby_plsql.rb

    and since the gem is named ruby-plsql, I’m gonna take a guess that it might be the main lib file. You can also check the .gemspec file to see what it is building to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use CFNetwork in my app so I tried adding CFNetwork.framework
I'm having some trouble with a few routines that are using jQuery to dynamically
I tried adding a view with a white color like transparent so I set
I tried adding batches of data in a list with a couple of calls
I have just tried adding a WebService (asmx based) from a WebForms project to
I've tried adding merge=kompare to my ~/.hgrc , but when I run hg merge
I have a root view controller with no nib file, I tried adding this
What I tried is by adding selected , but this is not working: <select>
I've tried to integrate Ant-Contrib 1.0b3 into Eclipse by adding the ant-contrib-1.0b3.jar and the
Adding the row one by one in the button click.. (i tried but its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.