ruby-****@sourc*****
ruby-****@sourc*****
2004年 5月 1日 (土) 11:17:33 JST
------------------------- REMOTE_ADDR = 218.231.180.27 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp//?compile_mingw ------------------------- - {{link nil, "Install+Guide", nil, nil}} - = Compile Guide for MS Windows (mswin32, mingw32) This is a guide on how to compile and install ruby-1.8.1 and ruby-gtk2-0.9.1 on Microsoft Windows. You can use the *.[so|rb] files which you will get following this article as a library for ((<Ruby Installer For Windows|URL:http://rubyinstaller.sourceforge.net/>)). == Install MinGW and MSYS First, install MinGW and MSYS. This guide is based on the default configurations. ((<URL:http://www.mingw.org/>)) * MinGW-3.1.0-1.exe (using the default installation options) * Installed to c:\MinGW * MSYS-1.0.9.exe (using the default installation options) * Installed to c:\msys\1.0 Just follow the default settings upon questions during the installation. At once, while installing MSYS, you will need to input where MinGW is installed (which should be c:/MinGW). Notice that you need to install them in this specific order (MinGW at first, MSYS after). == Install GTK+ Development Environment from Dropline Systems Download GTK+ Development Environment from ((<URL:http://www.dropline.net/gtk/>)). * GTK-Development-Environment-2.2.4-2.exe * Installed to c:\Dev-C++ == Compile/Install Ruby Download ruby-1.8.1.tar.gz from ((<URL:http://www.ruby-lang.org/>)). Put it in c:\msys\1.0\home\(username)\. Then, from the MSYS console (you can find it from the desktop icon or via the start menu), do as below: $ tar xvzf ruby-1.8.1.tar.gz $ cd ruby-1.8.1 $ configure --prefix=/MinGW $ make $ make install ruby-1.8.1 is installed on c:\MinGW\[bin|lib|share|]. == Compile/Install ruby-gtk2-0.9.1 $ tar xvzf ruby-gtk2-0.9.1.tar.gz $ cd ruby-gtk2-0.9.0 $ export PATH=/c/Dev-C++/bin:$PATH $ /c/MinGW/bin/ruby.exe extconf.rb --ruby=/c/MinGW/bin/ruby.exe $ make $ make install All target files are installed on c:\MinGW\lib\ruby\site_ruby\1.8\*.rb and c:\MinGW\lib\ruby\site_ruby\1.8\i386-msvcrt\*.[so|h] == How to use them with ((<Ruby Installer For Windows|URL:http://rubyinstaller.sourceforge.net/>)) Copy c:\MinGW\lib\ruby\site_ruby\1.8\*.rb and c:\MinGW\lib\ruby\site_ruby\1.8\i386-msvcrt\*.so to the directory where you installed the Ruby Installer. (e.g.) If you installed it to c:\ruby, then copy c:\MinGW\lib\ruby\site_ruby\1.8\*.rb to c:\ruby\lib\ruby\site_ruby\1.8\, and copy c:\MinGW\lib\ruby\site_ruby\1.8\i386-msvcrt\*.so to c:\ruby\lib\ruby\site_ruby\1.8\ == See Also If you have some troubles, see also ((<Install Guide for Windows>)). == ChangeLog :2004-03-14 ((<lrz>)) * Fixed some typos. :2004-03-14 ((<Masao>)) * Updated version information. :2004-03-11 ((<Masao>)) * Initial release.