Installing Ruby 1.8.7 (and other stuff) manually

前端 未结 6 1797
情书的邮戳
情书的邮戳 2021-02-01 23:12

I don\'t want to rely on the one-click installer any more, and I want to learn how to install Ruby manually. Is there a resource for this?

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 23:42

    1. Download the Windows binaries for Ruby 1.8.7 here: http://www.ruby-lang.org/en/downloads/. Extract that to wherever you would like; I use C:\ruby. Then put C:\ruby\bin in your PATH environment variable.
    2. Download the zlib package: http://www.zlib.net/zlib123-dll.zip and extract the zlib1.dll, rename it to zlib.dll and move it into your Windows\System32.
    3. Download the iconv package: http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458. Find and extract the iconv.dll file into your Windows\System32.
    4. Download the rubygems package and follow the instructions, basically extracting the package and running ruby setup.rb.
    5. Verify that everything works properly by trying a gem install rails, once that installs then do: rails test_project

提交回复
热议问题