想跑个 Rails 后台的项目,Gemfile 是这样的:https://github.com/paulmillr/ostio-api/blob/master/Gemfile
我看到有 Gemfile
, 于是用 bundle install
来安装依赖.
环境是 Archlinux, Ruby 是通过 yaourt
直接安装的,bundle
通过 gem install
安装
修改了 source
到镜像,然后跑命令出错了
➤➤ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
➤➤ gem -v
2.0.0
➤➤ bundle install
Fetching source index from http://ruby.taobao.org/
Using rake (10.0.3)
Using i18n (0.6.1)
Using multi_json (1.5.0)
Using activesupport (3.2.11)
Using builder (3.0.4)
Using activemodel (3.2.11)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.3)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.2.2)
Using actionpack (3.2.11)
Installing mime-types (1.19)
Errno::ENOENT: No such file or directory - /usr/lib/ruby/gems/2.0.0/build_info/mime-types-1.19.info
An error occurred while installing mime-types (1.19), and Bundler cannot continue.
Make sure that `gem install mime-types -v '1.19'` succeeds before bundling.
第一次是在 rake
的安装过程出错.. 然后是按顺序那些包
我依照提示手动 gem install rake
了几个包.. 结果数量好大..
比如 gem install actionpack -v 3.2.11
安装是能成功的,
但在 bundle install
的时候就是会出错,, 大概像上边这样
-V
的 log: https://gist.github.com/jiyinyiyong/5762608
为什么前者正常而 bundle
会出错呢?