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 835401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:49:23+00:00 2026-05-15T04:49:23+00:00

I’m trying to unpack all the system gems to end up with a standalone

  • 0

I’m trying to unpack all the system gems to end up with a standalone Rails directory including all the rails gems and all the system gems.

I’m starting with a bare rails setup; just did a jruby -S rails and a ‘generate jdbc’. I then add a config.gem ‘jdbc-mysql’ to environment.rb and do the jruby -S rake gems:unpack:dependencies.

After unpacking, if I do a rake I get:

no such file to load -- jdbc-mysql

Is there something else you need to do to get the jdbc gem unpacked?

I’m using jruby 1.4.0 (and moving to 1.5 is on my todo list) and rails 2.3.8.

  • 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-15T04:49:23+00:00Added an answer on May 15, 2026 at 4:49 am

    Here is what I do:

    1) Install gems to a local repository
    2) Set my load environment to use a gemrc.yml file from inside the local repository

    To instal gems locally do this from your project folder:
    gem install {gemname} -i gems
    (the “-i gems” tells rubygems to install the gem in the folder gems and the {gemname} is a placeholder for the name of the gem you want to install.)

    To set your gemrc.yml make a file in the newly created gems folder called gemrc.yml with something like the following content:
    http://gist.github.com/430339

    Then you need to tell your app to use your local gems at startup by adding the following to your config/boot.rb
    http://gist.github.com/430343

    Good luck… and for extra credit you could setup the ability to install a gem if it is needed. I did this through a method called dependency which is a helper method for the require command… This function receives a name and options… This way I simply say something like: (dependency ‘extlib’) and it does this if it cannot require the gem.

    puts gem install --config-file gems/gemrc.yml #{'-v "'+options[:version].gsub(' ','')+'"' if options[:version]} #{options[:gem] || name}

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.