which C compiler for gem (windows vista)

P

Peter K.

Hello,

I am still having the problem, that my gem update is not working
correctely and aparently this is related to a missing c-compiler or at
least stdio.h ( http://www.ruby-forum.com/topic/162379#new )

Is there a downloadable c-compiler to put into the ruby path ?

I do have MS Visual Studio installed on my main computer (where I now
installed ruby and rails as well - but still the same problem as
mentioned before), which should have a c-compiler, but I don't know how
to make it available for gem.

Any suggestions are very much appreciated.

Best

Peter
 
J

Jano Svitok

Hello,

I am still having the problem, that my gem update is not working
correctely and aparently this is related to a missing c-compiler or at
least stdio.h ( http://www.ruby-forum.com/topic/162379#new )

Is there a downloadable c-compiler to put into the ruby path ?

I do have MS Visual Studio installed on my main computer (where I now
installed ruby and rails as well - but still the same problem as
mentioned before), which should have a c-compiler, but I don't know how
to make it available for gem.

Any suggestions are very much appreciated.

1. you need ms vc 6.0.
2. prior to calling gem install, call vcvars32.bat that will set
environment for compilation
alternatively, search the archive (ruby-forum is just a mirror of
ruby-talk mailing list, so google for "ruby-talk gem windows compiler"
or similar might be useful)

Jano
 
P

Peter K.

Jano said:
1. you need ms vc 6.0.
2. prior to calling gem install, call vcvars32.bat that will set
environment for compilation
alternatively, search the archive (ruby-forum is just a mirror of
ruby-talk mailing list, so google for "ruby-talk gem windows compiler"
or similar might be useful)

Jano

Thanks a lot, Jano !!


would I just type vcvars.bat in the console (and hit enter) ?

(presumably with the path to vcvars.bat)

and is vcvars.bat part of ms vc 6.0 ( I still have to find it somewhere
for download)

thanks a lot for your great help !!

Best

Peter
 
R

Roger Pack

Peter said:
Hello,

I am still having the problem, that my gem update is not working
correctely and aparently this is related to a missing c-compiler or at
least stdio.h ( http://www.ruby-forum.com/topic/162379#new )

Is there a downloadable c-compiler to put into the ruby path ?

I do have MS Visual Studio installed on my main computer (where I now
installed ruby and rails as well - but still the same problem as
mentioned before), which should have a c-compiler, but I don't know how
to make it available for gem.

Any suggestions are very much appreciated.

Best

Peter

You could go the mingw compiler route, as well.
http://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-on-windows
has a link in itself to
ruby_devkit-186-p279
which appears to have a ruby install with a built in devkit.
-R
 
D

David Southwell

You could go the mingw compiler route, as well.
http://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-on-windows
has a link in itself to
ruby_devkit-186-p279
which appears to have a ruby install with a built in devkit.
-R

I have the same problem even though VC6 is installed. There seems to be a
pathing error in the install script. THe path it looks for seems to be a unix
path . The install does not deal properly with spaces.

David
 
P

Peter K.

Hi Roger,


thanks a lot for the hint !!

Do you have any experience with that kit ?

I am sometimes reading that MS VC 6.0 has problems - is that regarging
gems ? Or is it only regarding the size of compiled programms (in which
case I probably don't have a problem, as I would only use it for native
gems installation).

Are there any pay-offs using ruby_devkit-186-p279 ?

(By the way, it seems difficult to get MS VC 6.0 - or do you have an
idea where to get it ?)

thanks again for your great help

Best

Peter
 
P

Peter K.

David said:
I have the same problem even though VC6 is installed. There seems to be
a
pathing error in the install script. THe path it looks for seems to be a
unix
path . The install does not deal properly with spaces.

David

Hi David,

that is bad news - as I was hoping to at least have an option with VC6.
Did you use the above mentioned vcvars.bat command ?

Best

Peter
 
R

Roger Pack

Peter said:
Hi Roger,


thanks a lot for the hint !!

Do you have any experience with that kit ?

I am sometimes reading that MS VC 6.0 has problems - is that regarging
gems ? Or is it only regarding the size of compiled programms (in which
case I probably don't have a problem, as I would only use it for native
gems installation).

I'm not aware of any problems with it, per se.
With regard to this error, it appears that it's a bug in hpricot's
latest version, itself--it is missing some quotes in there or
something--so it won't compile if your compiler is within a directory
that contains spaces. So overcome this by hacking it to make it work or
moving your compiler to a directory without spaces or installing an
older version of that gem which comes with a precompiled binary [in
which case gem update wouldn't work for it]. Or installing a new
compiler in a directories without spaces.
Are there any pay-offs using ruby_devkit-186-p279 ?

It is rumored to be faster which is the real reason I use it. It's not
dog slow. The pay off is that it's easy to install a compiler, that's
about all I can think of. If you do use it then some precompiled binary
gems MIGHT not work, though--see the web site and its comments. If you
download a gem that comes with a precompiled binary then that binary
needs to have been compiled with the same compiler that compiled your
ruby [in this case mingw] or it might not work. Then again it might.

(By the way, it seems difficult to get MS VC 6.0 - or do you have an
idea where to get it ?)

I haven't ever tried so I'm not sure.
GL.
-R
 
P

Peter K.

Hi Axel, Roger, David, Jano ...,

I finally managed to get Visual C 6.0, but now it does not install in
Vista.

Does anybody know how to install it, so that gem would finally work ?


Thanks in advance


Peter
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top