安装了宝石,但它没有出现在已安装的宝石列表中,并且没有运行

时间:2015-08-18 14:19:27

标签: ruby gem rvm

我正在尝试安装genghisapp,因此我可以拥有MongoDB的用户界面。任何人都知道可能会发生什么?我实际上今天早些时候已经genghisapp启动并运行但是我下载并安装了一些系统更新(ElementaryOS Freya),新的视频卡驱动程序,安装了一些游戏库,然后它停止工作。

➜  hpp-old git:(filestore) ✗ sudo gem install genghisapp
Fetching: genghisapp-2.3.11.gem (100%)
Successfully installed genghisapp-2.3.11
1 gem installed

//genghisapp isn't listed?

➜  hpp-old git:(filestore) ✗ gem list

*** LOCAL GEMS ***

actionmailer (4.2.3)
actionpack (4.2.3)
actionview (4.2.3)
activejob (4.2.3)
activemodel (4.2.3)
activerecord (4.2.3)
activesupport (4.2.3)
arel (6.0.3)
builder (3.2.2)
bundler (1.10.6)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
globalid (0.3.6)
i18n (0.7.0)
json (1.8.3)
loofah (2.0.3, 2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.8.0, 5.4.3)
nokogiri (1.6.6.2)
power_assert (0.2.4, 0.2.2)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7, 1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.3)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sprockets (3.3.1, 3.3.0)
sprockets-rails (2.3.2)
test-unit (3.1.3, 3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)

// can't run genghisapp

➜  hpp-old git:(filestore) ✗ genghisapp
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find genghisapp (>= 0) amongst [actionmailer-4.2.3, actionpack-4.2.3, actionview-4.2.3, activejob-4.2.3, activemodel-4.2.3, activerecord-4.2.3, activesupport-4.2.3, arel-6.0.3, builder-3.2.2, bundler-1.10.6, bundler-unload-1.0.2, erubis-2.7.0, executable-hooks-1.3.2, gem-wrappers-1.2.7, globalid-0.3.6, i18n-0.7.0, json-1.8.3, loofah-2.0.3, loofah-2.0.2, mail-2.6.3, mime-types-2.6.1, mini_portile-0.6.2, minitest-5.8.0, minitest-5.4.3, nokogiri-1.6.6.2, power_assert-0.2.4, power_assert-0.2.2, rack-1.6.4, rack-test-0.6.3, rails-4.2.3, rails-deprecated_sanitizer-1.0.3, rails-dom-testing-1.0.7, rails-dom-testing-1.0.6, rails-html-sanitizer-1.0.2, railties-4.2.3, rubygems-bundler-1.4.4, rvm-1.11.3.9, sprockets-3.3.1, sprockets-3.3.0, sprockets-rails-2.3.2, test-unit-3.1.3, test-unit-3.0.8, thor-0.19.1, thread_safe-0.3.5, tzinfo-1.2.2] (Gem::LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
    from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
    from /usr/local/bin/genghisapp:22:in `<main>'

修改

在做了一些挖掘之后,我的问题的部分似乎是我安装为sudo。所以......

sudo uninstall genghisapp

gem install genghisapp - 这次没有使用sudo

现在genghisapp出现......但是

➜  hpp-old git:(filestore) ✗ gem list                     

*** LOCAL GEMS ***

actionmailer (4.2.3)
actionpack (4.2.3)
actionview (4.2.3)
activejob (4.2.3)
activemodel (4.2.3)
activerecord (4.2.3)
activesupport (4.2.3)
arel (6.0.3)
backports (3.6.6)
bson (1.9.2)
builder (3.2.2)
bundler (1.10.6)
bundler-unload (1.0.2)
erubis (2.7.0)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
genghisapp (2.3.11)
globalid (0.3.6)
i18n (0.7.0)
json (1.8.3)
loofah (2.0.3, 2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.8.0, 5.4.3)
mongo (1.9.2)
multi_json (1.11.2)
mustache (0.99.8)
nokogiri (1.6.6.2)
power_assert (0.2.4, 0.2.2)
rack (1.6.4)
rack-protection (1.5.3)
rack-test (0.6.3)
rails (4.2.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7, 1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.3)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sinatra (1.4.6)
sinatra-contrib (1.4.6)
sinatra-mustache (0.3.2)
sprockets (3.3.1, 3.3.0)
sprockets-rails (2.3.2)
test-unit (3.1.3, 3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.0)
tzinfo (1.2.2)
vegas (0.1.11)

当我尝试运行它时......

➜  hpp-old git:(filestore) ✗ genghisapp
zsh: command not found: genghisapp

0 个答案:

没有答案