ruby-****@sourc*****
ruby-****@sourc*****
2004年 3月 11日 (木) 17:20:34 JST
------------------------- REMOTE_ADDR = 128.88.255.106 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/?compile_mingw ------------------------- = Compile Guide for MS Windows(mswin32,mingw32) (Note: This documentation is for ruby-gnome2 CVS version only) This is a guide how to compile/install ruby-1.8.1 and ruby-gtk2-0.9.1 on MS Windows. You can use the *.[so|rb] files which you compile follow this article, as a library for ((<Ruby Installer For Windows|URL:http://rubyinstaller.sourceforge.net/>)). == Install MinGW, MSYS First, install MinGW, MSYS. In this guide, it's explained based on the default configurations. ((<URL:http://www.mingw.org/>)) * MinGW-3.1.0-1.exe (default installation options) * Installed to c:\MinGW * MSYS-1.0.9.exe (default installation options) * Installed to c:\msys\1.0 When questions are showed, follow the default settings. At once, while installing MSYS, you need to input where MinGW is. Input c:/MinGW. Notice that you need to install them in this order (MinGW is first, MSYS is next). == 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 to c:\msys\1.0\home\(username)\. Then, from MSYS console(You can find it on your desktop or start menu), do 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 insatlled to 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 to c:\MinGW\lib\ruby\site_ruby\1.8\ and c:\MinGW\lib\ruby\site_ruby\1.8\i386-msvcrt\ and c:\MinGW\ + All target files are installed to 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 Ruby Installer version. (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\ == ChangeLog :2004-03-09 ((<Masao>)) Initial release.