我已經構建了我的第一塊寶石,但我似乎無法正確安裝它。我可以發出命令即使安裝了它也找不到寶石的寶石
sudo gem install ceilingfish-toto
它產生輸出
Successfully installed ceilingfish-toto-0.3.6
1 gem installed
但是,當我再鍵入gem which ceilingfish-toto
。我得到的輸出
Can't find ruby library file or shared library ceilingfish-toto
這是非常奇怪的,因爲如果我去看看我的寶石夾,我可以看到所有的文件安裝在那裏
# ls -l /opt/local/lib/ruby/gems/1.8/gems/ceilingfish-toto-0.3.6/
total 48
-rw-r--r-- 1 root admin 1053 14 Feb 17:16 LICENSE
-rw-r--r-- 1 root admin 6166 14 Feb 17:16 README.md
-rw-r--r-- 1 root admin 879 14 Feb 17:16 Rakefile
-rw-r--r-- 1 root admin 6 14 Feb 17:16 VERSION
-rw-r--r-- 1 root admin 2477 14 Feb 17:16 ceilingfish-toto.gemspec
drwxr-xr-x 7 root admin 238 14 Feb 17:16 test
有誰知道這是什麼原因?我認爲這是抱怨,因爲寶石名稱中有一個連字符。您可以在此處看到gemspec http://github.com/ceilingfish/toto
那麼,確實沒有'ceilingfish-toto'文件或共享庫。 – badp