From: Javier Abaroa Date: 2010-03-10T21:34:14+09:00 Subject: Re: Install fcgi-ruby for Apache on Windows Xp The first problem is that i can't find the fcgiapp.h or fastcgi/fcgiapp.h that i think are header files that managed the native extensions.They are in the include folder of the fastcgi-2.4.0 kit, but the gem install don't found them. I have compiled fastcgi-2.4.0, and i have obtained the "cgi-fcgi.exe" and "libfcgi.dll", but perhaps, i haven't installed the files correctly and the rubygems install procedure can't find it.Perhaps this would be the problem. The documentation of fastcgi-2.4.0 says how to compile the source, but not how to set the folders an install these on Windows environment. Thank you. Javier Abaroa. Javier Abaroa wrote: > The execution in IRB was: > > require 'rbconfig' > => true >>> Config::CONFIG['includedir'] > => "c:/ruby19/include" > > But when i try to install gem ruby-fcgi-0.8.9 the Makefile generate a > full of errors. Even, is configurated for i486-linux. So i think, it's > no possible do a good configuration for Windows. Only if you hard coded > Makefile on hand. > > Thank you. > > Brian Candler wrote: >> Javier Abaroa wrote: >>> make >>> make: *** No rule to make target `/usr/include/ruby-1.9.1/ruby.h', >>> needed by `fcgi.o'. Stop. >> >> Then you need *ruby's* development header files as well. >> >> If this were an Ubuntu box, I'd say install the package ruby1.8-dev or >> whatever. >> >> However I don't know how you'd do it on Windows. You'd have to find out >> where your Windows install came from, and whether they offer the header >> files as a separate package. >> >>> Also would be an error in the Makefile, >>> because of the "/usr/include/ruby-1.9.1", as my Ruby Directory is >>> "c:/Ruby19". >> >> It could be a hard-coded assumption, although it should be using >> rbconfig to find the files where they were built. What happens if you do >> this in IRB? >> >>>> require 'rbconfig' >> => true >>>> Config::CONFIG['includedir'] >> => "/usr/include" >> >> If you see "/usr/include" then the person who built your ruby built it >> with that as the system header directory. >> >> If you can't work out how to do this (and remember I'm not a Windows >> user so I can't help you much), I'd say your best option is to use the >> pure-ruby fcgi library. This is simply lib/fcgi.rb inside the gem. You >> can see that it tries to load fcgi.so, and if that fails, just builds >> the FCGI class from ruby code. -- Posted via http://www.ruby-forum.com/.