手动安装Ruby 1.8.7(和其他东西) [英] Installing Ruby 1.8.7 (and other stuff) manually

查看:87
本文介绍了手动安装Ruby 1.8.7(和其他东西)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想再依赖一键式安装程序了,我想学习如何手动安装Ruby.有资源吗?

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?

推荐答案

  1. 在此处下载Ruby 1.8.7的Windows二进制文件: http://www.ruby -lang.org/en/downloads/.将其提取到您想要的任何位置;我使用C:\ruby.然后将C:\ruby\bin放入PATH环境变量中.
  2. 下载zlib软件包: http://www.zlib.net/zlib123-dll. 压缩并解压缩zlib1.dll,将其重命名为zlib.dll,然后将其移至Windows \ System32.
  3. 下载iconv软件包: http://sourceforge.net/project/showfiles.php?group_id = 25167& package_id = 51458 .找到并将iconv.dll文件提取到Windows \ System32中.
  4. 下载rubygems软件包并按照说明进行操作,基本上解压缩该软件包并运行ruby setup.rb.
  5. 通过尝试gem install rails验证一切正常,一旦安装,请执行以下操作:rails test_project
  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

这篇关于手动安装Ruby 1.8.7(和其他东西)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆