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

  • Home
  • SEARCH
  • 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

Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of
I tried x = y ** e, but that didn't work.
I've downloaded a few networking apps (games) that have you log in, then take
I have a large table that I want to map to a few entities.
I'm tired of adding ten link libraries into my project, or requiring eight of
Tried to map it from Preferences -> Settings -> Keyboard, but the key combo
I tried to install Delphi 7 on Vista several times and Vista prevented me
I tried scouring the web for help on this issue, but there are so
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
I tried to package a Twisted program with py2exe, but once I run the

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.