Help with fcgi installation

F

Francis Vidal

Hi,

I'm trying to install fcgi-0.8.6 on Mac OS X but I keep getting this error:

install.rb: entering config phase...
---> lib
<--- lib
---> ext
---> ext/fcgi
/usr/bin/ruby /usr/local/src/ruby-fcgi-0.8.6/ext/fcgi/extconf.rb
can't find header files for ruby.
config failed
'system /usr/bin/ruby
/usr/local/src/ruby-fcgi-0.8.6/ext/fcgi/extconf.rb ' failed
 
D

Dick Davies

Hi,

I'm trying to install fcgi-0.8.6 on Mac OS X but I keep getting this erro= r:

install.rb: entering config phase...
---> lib
<--- lib
---> ext
---> ext/fcgi
/usr/bin/ruby /usr/local/src/ruby-fcgi-0.8.6/ext/fcgi/extconf.rb
can't find header files for ruby.

Sounds like that's the problem - you should have a ruby.h file
(among others). Google seems to think you should install the
XCode development stuff.
 
F

Francis Vidal

I have XCode 2.1 installed already. Where do I find the location of
ruby.h if XCode tools is already installed?
 
E

Eero Saynatkari

Francis said:
I have XCode 2.1 installed already. Where do I find the location of
ruby.h if XCode tools is already installed?

I do not know how OSX works, so try the *x way;
open a console and type in:

find / -iname 'ruby.h'

It tries to locate the file in any directory
under the root. If the file is found, you will
see its location. You can then provide this
location to extconf.

If the file is not found, you must look for
some sort of alternative 'development' package
(or you could use Fink or DarwinPorts) to get
the headers.


E
 
F

Francis Vidal

Thanks Eero, I was able to install it finally.

I do not know how OSX works, so try the *x way;
open a console and type in:

find / -iname 'ruby.h'

It tries to locate the file in any directory
under the root. If the file is found, you will
see its location. You can then provide this
location to extconf.

If the file is not found, you must look for
some sort of alternative 'development' package
(or you could use Fink or DarwinPorts) to get
the headers.


E
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top