Install mingw Install ActiveState Perl
http://downloads.activestate.com/ActivePerl/releases/5.8.9.828/ActivePerl-5.8.9.828-MSWin32-x86-294165.msi
Reference of Apache
http://www.devshed.com/c/a/Apache/Building-Apache-the-Way-You-Want-It/12/
Install apxs according to the README
perl Configure.pl --with-apache-prog=httpd.exe
win32 binary of apxs you will find here, thanks to Bill Rowe and Randy Kobes
http://www.apachelounge.com/download/apxs_win32.zip
I am doing
C:\Users\zdavatz\software\mod_ruby-1.3.0>apxs -c mod_ruby.c
that results in
C:/MinGW/bin/gcc.exe /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\Apache2.2\include" /c /Fomod_ruby.lo mod_ruby.c gcc.exe: /nologo: No such file or directory gcc.exe: /MD: No such file or directory gcc.exe: /W3: No such file or directory gcc.exe: /O2: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: WIN32: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: _WINDOWS: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: NDEBUG: No such file or directory gcc.exe: /c: No such file or directory gcc.exe: /Fomod_ruby.lo: No such file or directory In file included from mod_ruby.c:33:0: mod_ruby.h:33:18: fatal error: ruby.h: No such file or directory compilation terminated. apxs:Error: Command failed with rc=65536
Ok I am getting ruby.h from the Ruby source directory at
C:\build\ruby\ruby-1.8.6-p369>
then running
rake ruby18:dependencies devkit:sh
to enter bash and run
./configure
so hopefully I will get
config.h
as well. Ok, so the next files are
cp \build\ruby\ruby-1.8.6-p369\defines.h defines.h
and
xcopy \build\ruby\ruby-1.8.6-p369\win32\* win32 /s
pwd shows
C:\Users\zdavatz\software\mod_ruby-1.3.0
more files to copy
defines.h missing.h intern.h version.h rubyio.h util.h
New error is
C:/MinGW/bin/gcc.exe /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\Apache2.2\include" /c /Fomod_ruby.lo mod_ruby.c gcc.exe: /nologo: No such file or directory gcc.exe: /MD: No such file or directory gcc.exe: /W3: No such file or directory gcc.exe: /O2: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: _WINDOWS: No such file or directory gcc.exe: /D: No such file or directory gcc.exe: NDEBUG: No such file or directory gcc.exe: /c: No such file or directory gcc.exe: /Fomod_ruby.lo: No such file or directory apxs:Error: Command failed with rc=65536
getting rid of some errors thanks to Dušan Majkić
http://groups.google.com/group/rubyinstaller/msg/ef5244384c478192
Ok, creating a apxs sample file on windows
C:\Users\zdavatz\software>apxs -g -n foo Creating [DIR] foo Creating [FILE] foo/Makefile Creating [FILE] foo/mod_foo.c Creating [FILE] foo/.deps
and then trying to install it also does not work and results in the same error
C:/MinGW/bin/gcc.exe -Wall -O2 -D WIN32 -D _WINDOWS -D NDEBUG -I"C:\Apache2.2\include" /c /Fomod_foo.lo mod_foo.c gcc.exe: /c: No such file or directory gcc.exe: /Fomod_foo.lo: No such file or directory In file included from C:\Apache2.2\include/ap_config.h:25:0, from C:\Apache2.2\include/httpd.h:43, from mod_foo.c:40: C:\Apache2.2\include/apr.h:57:0: warning: ignoring #pragma warning apxs:Error: Command failed with rc=65536
This mod_ruby seems to work with Apache2.0.64, mod_ruby/1.2.4
http://url.ba/k6h8
The discussion on Windows Ruby-Installer
http://url.ba/ubwn