I installed rvm
and then installed bropages
in @global gemset.
$ rvm install 2.2.3
$ rvm use ruby-2.2.3@global
$ gem install bropages
When I run
$ gem list | grep bro
bropages (0.1.0)
I can see bropages is installed. But when I move to default gemset it is not available.
$ rvm use ruby-2.2.3@default
$ gem list | grep bro # Result is empty
I also tried official way.
$ rvm ruby-2.2.3@global do gem install bropages
Successfully installed bropages-0.1.0
Parsing documentation for bropages-0.1.0
Done installing documentation for bropages after 0 seconds
1 gem installed
But it too didn't work.
Running bro
command in default gemset gives this error,
$ bro
/Users/andy/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bropages' (>= 0) among 7 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/andy/.rvm/gems/ruby-2.2.3 /Users/andy/.rvm/gems/ruby-2.2.3@global:/Users/andy/.rvm/gems/ruby-2.2.3', execute `gem env` for more information
from /Users/andy/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
from /Users/andy/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /Users/andy/.rvm/gems/ruby-2.2.3@global/bin/bro:22:in `<main>'
I have tried these links but they didn't help at all.
Ruby 2.2.3 is the only version installed. My shell is Fish.
From comment
from the default gemset run:
echo $GEM_HOME - $GEM_PATH
from the globalgemset run: gem list -d bro
Output is as follows,
$ rvm use ruby-2.2.3@default
Using /Users/andy/.rvm/gems/ruby-2.2.3
$ echo $GEM_HOME - $GEM_PATH
/Users/andy/.rvm/gems/ruby-2.2.3 - /Users/andy/.rvm/gems/ruby-2.2.3 /Users/andy/.rvm/gems/ruby-2.2.3@global
$ rvm use ruby-2.2.3@global
Using /Users/andy/.rvm/gems/ruby-2.2.3 with gemset global
$ gem list -d bro
*** LOCAL GEMS ***
bropages (0.1.0)
Author: bropages.org
Homepage: http://bropages.org
Installed at: /Users/andy/.rvm/gems/ruby-2.2.3@global
Bro
looks like your GEM_PATH
is broken, pleas run:
export GEM_PATH=/Users/andy/.rvm/gems/ruby-2.2.3:/Users/andy/.rvm/gems/ruby-2.2.3@global
and try again:
bro