我怎样才能让RubyGems的(1.3.3),我真的希望它安装依赖?
题
对于具有相关性的任何宝石,得到以下(与名称变更为适用):
尝试1:
sudo gem install mojombo-jekyll -s http://gems.github.com/
ERROR: Error installing mojombo-jekyll:
mojombo-jekyll requires RedCloth (= 4.1.0, runtime)
尝试2:
sudo gem install mojombo-jekyll -s http://gems.github.com/ -y
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: Error installing mojombo-jekyll:
mojombo-jekyll requires RedCloth (= 4.1.0, runtime)
尝试3:
sudo gem install mojombo-jekyll -s http://gems.github.com/ --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: Error installing mojombo-jekyll:
mojombo-jekyll requires RedCloth (= 4.1.0, runtime)
解决方案
在问题没有依赖关系,但源有关。 如果指定了“-s”选项,的rubygems将只使用一个或多个源。
须藤宝石安装mojombo-化身-s http://gems.github.com/ -s http://gems.rubyforge.org
这会告诉的rubygems同时使用RubyForge的和github上。 大多数人往往采取增加宝石源所处的环境,而不是每次做手工的方法。
其他提示
尝试首先安装4.1.0版本RedCloth宝石。
sudo gem install RedCloth -v 4.1.0
然后安装mojombo-化身宝石。
sudo gem install mojombo-jekyll -s http://gems.github.com/
我相信这是关系到这个bug 。特别:
一些测试后,我想我收窄 下来,当它发生:
如果宝石FOO取决于宝石栏上(任何 版本),然后安装富也 安装其依赖巴。
如果宝石FOO取决于巴1.0,和巴 1.0是最新的版本,然后安装FOO也安装扎1.0。
如果宝石FOO取决于巴1.0,但条 1.1也存在于远程仓库,创业板安装的发现吧1.1 和抱怨巴1.0丢失。
RedCloth 4.1.0是老气版本。看来你的宝石拥有的固定在4.1.0的依赖,但是4.19是最新版本,所以有发生的不匹配。
不隶属于 StackOverflow