我已经构建了我的第一块宝石,但我似乎无法正确安装它。我可以发出命令即使安装了它也找不到宝石的宝石
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