开发者

ruby on rails installation on ubuntu

error on installation

ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand

wat should i do plz help as soon as possibl开发者_StackOverflow中文版e


Try following this guide. its very good

http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you


I encountered the same problem when I was installing Rails on Ubuntu but I was able to install zlib and then proceeded to installing Rails.

Here's what I did:

  1. Download and installed zlib from source.

    wget http://zlib.net/zlib-1.2.7.tar.gz
    tar -xvzf zlib-1.2.7.tar.gz
    cd zlib-1.2.7/
    sudo ./configure && sudo make && sudo make install

  2. "Register" zlib module before recompiling and reinstalling Ruby

    cd ruby-source-distro-path/ext/zlib

    sudo ruby extconf.rb

    sudo make && sudo make install

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜