Hi all
After I try to install a gem locally using .gem file.My gem
list is showing empty.

I am using RVM.

But my app is running and gems are there in directory.

$gem list
o/p:
*** LOCAL GEMS ***

Please help me out this issue.Thanks in advance...



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Peter Vandenabeele at Jan 4, 2012 at 3:16 pm

    On Wed, Jan 4, 2012 at 11:04 AM, Muruga wrote:

    Hi all
    After I try to install a gem locally using .gem file.My gem
    list is showing empty.

    I am using RVM.

    But my app is running and gems are there in directory.

    $gem list
    o/p:
    *** LOCAL GEMS ***

    Please help me out this issue.Thanks in advance...
    Are you using bundler (with a Gemfile ?)

    What is output of

    $ gem list # full output please
    $ bundle exec gem list # this should really show activerecord etc.

    The output from above commands can be different !

    To use a locally installed gem in a Gemfile with bundler,
    something like this may be required:

    Gemfile:
    ...
    gem 'linecache19', '0.5.13', :path =>
    "~/.rvm/gems/ruby-1.9.3-p0/gems/linecache19-0.5.13/"
    ...

    HTH,

    Peter

    --
    Peter Vandenabeele
    http://twitter.com/peter_v
    http://rails.vandenabeele.com

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Benjamin Iandavid Rodriguez at Jan 4, 2012 at 9:25 pm
    Also try to check your gemsets with this command:

    rvm gemset list

    maybe the gems are installing in a different gemset and even a different
    ruby installation.

    Hope this helps!

    2012/1/4 Peter Vandenabeele <peter@vandenabeele.com>
    On Wed, Jan 4, 2012 at 11:04 AM, Muruga wrote:

    Hi all
    After I try to install a gem locally using .gem file.My gem
    list is showing empty.

    I am using RVM.

    But my app is running and gems are there in directory.

    $gem list
    o/p:
    *** LOCAL GEMS ***

    Please help me out this issue.Thanks in advance...
    Are you using bundler (with a Gemfile ?)

    What is output of

    $ gem list # full output please
    $ bundle exec gem list # this should really show activerecord etc.

    The output from above commands can be different !

    To use a locally installed gem in a Gemfile with bundler,
    something like this may be required:

    Gemfile:
    ...
    gem 'linecache19', '0.5.13', :path =>
    "~/.rvm/gems/ruby-1.9.3-p0/gems/linecache19-0.5.13/"
    ...

    HTH,

    Peter

    --
    Peter Vandenabeele
    http://twitter.com/peter_v
    http://rails.vandenabeele.com

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 4, '12 at 10:05a
activeJan 4, '12 at 9:25p
posts3
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase