Install ruby 1.9 on Windows using zip binary
来源:互联网 发布:淘宝恶劣卖家 编辑:程序博客网 时间:2024/06/06 18:55
Update: This post is outdated. All in one installer for 1.9 is ready now, you should use it if you need 1.9 on windows. Get it here http://rubyforge.org/frs/?group_id=167
Ruby has “all-in-one” installer for Windows, but it is outdated. As of May 2009, Ruby 1.9.1 is released, the installer is still 1.8.6. If you want the latest version, you need the zip package. But the zip package is missing zlib.dll, libeay32.dll, ssleay32.dll and readline.dll . Here is how to install it on windows.
Download the file
First you download the 1.9 package from http://www.ruby-lang.org/en/downloads/
Choose “Ruby 1.9 xxx binary” instead of “Ruby xxx Installer”.
Install it
Just Unpack the zip to c:/ruby.
Then add c:/ruby/bin to windows PATH.
Open a windows command console and typegem update --system
Oops, it is broken! The binary is missing some dll files.
Let us fix it
zlib
Download zlib windows binary from
http://gnuwin32.sourceforge.net/packages/zlib.htm
unzip the package, then find a file named “zlib1.dll”.
Copy “zlib1.dll” to your ruby/bin directory AND rename it to zlib.dll
What the heck?! Why renaming it? Because ruby source code reference the dll as zlib.dll. It is common to use alias like this on Linux. Ruby source was coded on Linux.
openssl
Download openssl windows binary from
http://gnuwin32.sourceforge.net/packages/openssl.htm
Unzip it.
Find “libeay32.dll”, copy to ruby/bin. Don’t rename it.
Find “libssl32.dll”, copy to ruby/bin and rename it to ssleay32.dll
readline
Download readline windows binary from
http://gnuwin32.sourceforge.net/packages/readline.htm
Unzip it.
Find “readline5.dll”, copy to ruby/bin and rename it to readline.dll
Done
That is all. Now typegem update --system
thengem install rails
- Install ruby 1.9 on Windows using zip binary
- Install Cassandra with Ruby 1.9.1 on Windows
- Installing mysql on windows 7 and using ruby on it
- install Ruby on Rails
- install ruby on cygwin
- ruby gem install mysql on unbuntu / windows / cygwin
- [theano] Install Theano on Windows 7 x64 using Cuda 7.0
- windows mysql zip install
- mysql57 windows zip install
- windows install mariadb(zip)
- How to Install Ruby 2.1.1 on CentOS & RHEL 6 using RVM
- CentOS install Ruby On Rails
- install ruby on rails debian
- Install Ruby 1.9.3 with libyaml on CentOS
- Install Ruby 1.9.3 with libyaml on CentOS
- Install ruby on rails on CentOS
- 【Ruby on Rails】Install rjb on Ubuntu
- 在windows上用压缩包二进制文件(zip binary)安装ruby
- 大家好
- .NET 4.0 FAQ 第一部分—DLR
- linux环境下代码编写利器:vim+ctags
- 2010-05-21 Firday
- 学习英语的正确方法
- Install ruby 1.9 on Windows using zip binary
- 在linux4.7上安装net-snmp编译遇到的问题
- 事情一个接着一个的来,感觉越来越没意思了
- 大赞google的创意logo
- 注意细节 js变量作用域
- 德州仪器达芬奇五年之路七宗罪,嵌入式处理器架构之争决战2012
- Xen Cloud Platform 0.1.1
- Enable rsh/rlogin/rexec in Linux
- 校运会后记