shugo / mod_ruby

Embedding Ruby in the Apache web server
http://modruby.net/
BSD 2-Clause "Simplified" License
30 stars 8 forks source link

running mod_ruby on Windows Vista with Apache 2.2.17 #2

Open zdavatz opened 13 years ago

zdavatz commented 13 years ago

Hi

I am trying to run mod_ruby on Windows-Vista with Apache 2.2.17. Any hints how to compile? At the moment I get an access denied error, unfortunately.

http://url.ba/cnak

Any hints?

Best Zeno

zdavatz commented 13 years ago

Dear Shugo

Ok, I continued this somewhat and I can run configure but make results in the following error:

C:\Users\zdavatz\software\mod_ruby-1.3.0>make gcc -g -O2 -DFD_SETSIZE=256 -Wall -I. -IC:/Ruby-1.8.6-oniguruma/lib/ruby/1.8/i386-mingw32 -IC:/Ruby-1.8.6-oniguruma/lib/ruby/1.8/i386-mingw32/i386-mingw32 -IC:\Apache2.2\include -DWIN32 -c request.c In file included from C:\Apache2.2\include/ap_config.h:25:0, from C:\Apache2.2\include/httpd.h:43, from mod_ruby.h:104, from request.c:36: C:\Apache2.2\include/apr.h:57:0: warning: ignoring #pragma warning request.c:791:22: error: conflicting types for 'mode_t' c:\mingw\bin../lib/gcc/mingw32/4.5.0/../../../../include/sys/types.h:99:17: note: previous declaration of 'mode_t' was here request.c:795:13: error: conflicting types for 'mode_t' request.c:791:22: note: previous declaration of 'mode_t' was here request.c: In function 'request_send_fd': request.c:1581:5: warning: passing argument 2 of 'apr_os_file_put' from incompatible pointer type C:\Apache2.2\include/aprportable.h:340:27: note: expected 'void *' but argument is of type 'int ' make: _* [request.o] Error 1

zdavatz commented 13 years ago

I am willing to pay to get this done for windows so it will work in the future as well. RubyInstaller is a great Windows Installer for Ruby and Windows is a big platform and mod_ruby is great software, very useful. It is sad, that it does not work on Windows.

I am saying this as somebody only runs Windows virtualized and uses Linux on a daily basis.

Best Zeno

zdavatz commented 13 years ago

Dear Shugo-san

I am continuing this and it resulted in

C:\Users\zdavatz\software\mod_ruby-1.3.0>apxs -c mod_ruby.c C:/MinGW/bin/gcc.exe -Wall -O2 -D WIN32 -D _WINDOWS -D NDEBUG -I"C: \Apache2.2\include" /c /Fomod_ruby.lo mod_ruby.c gcc.exe: /c: No such file or directory gcc.exe: /Fomod_ruby.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_ruby.h:104, from mod_ruby.c:33: C:\Apache2.2\include/apr.h:57:0: warning: ignoring #pragma warning apxs:Error: Command failed with rc=65536

what does the

/Fomod_ruby.lo: No such file or directory

error mean? Can that be fixed easily? I am using mingw gcc 4.5.0 on windows.

Best Zeno

PS: I am logging my steps here, so you can see how I installed apxs on Windows. http://dev.ywesee.com/wiki.php/Apache/Apxs

zdavatz commented 13 years ago

I am now also tracking this here: https://gist.github.com/804475