Ruby 配置 octopress 时碰到的问题

blackbeantweets · September 12, 2012 · Last by blackbeantweets replied at September 13, 2012 · 2740 hits

我用的 Ubuntu 12.04,已经安装了 ruby 1.9.3。运行 bundle install 安装 octopress 需要的 gem 时,一直不成功,提示“Could not find sass-3.1.20 in any of the sources”。我已经修改了 Gemfile 里的 source 为 ruby.taobao.org,还上了 rubygems.org 把 Gemfile 中对应版本的 gem 文件都下载并且放到~/.gem/ruby/1.9.1/cache 目录下,但还是出现和上面一样的提示。请问是在哪里出错了?

应该是 sass 3.1.20 被远程库删掉吧?使用 octopress 官方库的 2.1 branch 试试,或者干脆从我的 octopress clone 出来试试?

删掉 Gemfile.lock ,重新 bundle install

#2 楼 @diudiutang 删掉 Gemfile.lock 后顺利安装,非常感谢!!

#2 楼 @diudiutang 我刚到 https://rubygems.org/gems/sass 看了一下发现 3.1.20 这个版本果然是没了。谁删的,这不科学啊!

#4 楼 @happypeter 还有的,在这里https://rubygems.org/gems/sass/versionsShow。得在下载的下面点击“all versions”,列表中有 3.1.20

You need to Sign in before reply, if you don't have an account, please Sign up first.