[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] create - compile_mingw

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2005年 9月 13日 (火) 13:55:08 JST


-------------------------
REMOTE_ADDR = 218.231.161.82
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki
        URL = /hiki.cgi?compile_mingw
-------------------------
TITLE       = Compile Guide for MS Windows (mswin32, mingw32)
KEYWORD     = 
= 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.10.0 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.10.exe (using the default installation options)
   * Installed to c:\msys\1.0

If you try cvs version of Ruby-GNOME2, you also need to install msysDTK-1.0.1.exe.

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+ Libraries from ((<GLADE for Windows|URL:http://gladewin32.sourceforge.net/>)).
Download gtk+-win32-aio from ((<GLADE for Windows|URL:http://gladewin32.sourceforge.net/modules.php?name=Downloads>)).

* gtk-win32-aio-2.4-rc12.exe
   * Installed to c:\GTK

== Compile/Install Ruby
Download ruby-1.8.2preview2.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.2preview2.tar.gz
 $ cd ruby-1.8.2
 $ configure --prefix=/MinGW
 $ make
 $ make install

ruby-1.8.2 is installed on c:\MinGW\[bin|lib|share|].

== Compile/Install ruby-gnome2-0.10.0

 $ tar xvzf ruby-gnome2-0.10.0.tar.gz
 $ cd ruby-gnome2-0.10.0
 $ export PATH=/c/GTK/bin:$PATH
 $ /c/MinGW/bin/ruby.exe extconf.rb --ruby=/c/MinGW/bin/ruby.exe
 $ make
 $ make install

Some sub-libraries won't succeed to install because these libraries aren't installed from gtk-win32-aio. But don't mind.
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-08-07 ((<Masao>))
  * Revised.
:2004-08-07 ((<Masao>))
  * Apply GTK+-2.4.0 from ((<GLADE for Windows|URL:http://gladewin32.sourceforge.net/>)) and ((<ruby182-14_rc7a.exe|URL:http://rubyforge.org/frs/?group_id=167>)).
:2004-03-14 ((<lrz>))
  * Fixed some typos.
:2004-03-14 ((<Masao>))
  * Updated version information.
:2004-03-11 ((<Masao>))
  * Initial release.






ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る