`

windows下安装Ruby 1.9 二进制zip包

阅读更多

   本文已经落后,因为官方已经出了新的ruby 1.9的安装程序,如果遇到安装Ruby 1.9zip到windows的问题,请直接安装一键安装包如下:

Release Candidate 2   2010-02-06 22:00
ruby-1.8.6-p398-doc-chm.7z
3.44 MB 752 Other Other
ruby-1.8.6-p398-i386-mingw32.7z
3.44 MB 495 i386 Other
ruby-1.8.7-p249-doc-chm.7z
3.59 MB 353 Other Other
ruby-1.8.7-p249-i386-mingw32.7z
3.51 MB 593 i386 Other
ruby-1.9.1-p378-doc-chm.7z
3.33 MB 766 Other Other
ruby-1.9.1-p378-i386-mingw32.7z
4.76 MB 1,115 i386 Other
rubyinstaller-1.8.6-p398-rc2.exe
9.7 MB 3,447 i386 .exe (Windows executable)
rubyinstaller-1.8.7-p249-rc2.exe
9.9 MB 4,244 i386 .exe (Windows executable)
rubyinstaller-1.9.1-p378-rc2.exe
10.69 MB 9,467 i386 .exe (Windows executable)

 
  

   首先说一下ruby的安装,这里有一个很基本东西。在windows下为了使Ruby的运行环境简单,Ruby的安装只是把Ruby编译好的文件拷到本地,然后,把ruby.exe的所在目录放到体系Path里以便在任何地方执行就可以了。


   这也是为什么会有zip包的原因,就是根本没有什么复杂的安装过程。可是,我们直接down下来的zip包安装有往往有问题。当然,看到的问题很多比如:

引用
gem.bat:1: syntax error, unexpected tIDENTIFIER


引用
zlib.so: 126: The specified module could not be found.

 

引用
没有找到 SSLEAY32.dll



这些都是因为,基于某种原因ruby在windows下安装要依赖一些dll在支持
准确的讲就是下面这些,

也就是如果,官方做zip包的时候,把这5个dll放到ruby.exe的目录下,就不会有问题了。而且,比较恶心的是,在英文的下载界面还有一个提示:

引用
Please note that some of the above binaries will require manual download and installation of additional components detailed on this page. Please ensure you’ve followed/performed these steps prior reporting a bug.


中文版没有这段翻译

总之,如果是zip包windows下安装,下载这个 放到ruby.exe的相同目标,并把这个目录加到Path里就可以了。

 

  • 大小: 40.7 KB
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics