[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

which C compiler for gem (windows vista

Peter Krieg

8/11/2008 1:27:00 PM

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-...topic/... )

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
--
Posted via http://www.ruby-....

10 Answers

Jano Svitok

8/11/2008 1:39:00 PM

0

On Mon, Aug 11, 2008 at 15:26, Peter K. <pk.hot@hotmail.de> wrote:
> 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/... )
>
> 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

Peter Krieg

8/11/2008 2:42:00 PM

0

Jano Svitok wrote:

> 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
--
Posted via http://www.ruby-....

Roger Pack

8/11/2008 5:18:00 PM

0

Peter K. wrote:
> 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-...topic/... )
>
> 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-...
has a link in itself to
ruby_devkit-186-p279
which appears to have a ruby install with a built in devkit.
-R
--
Posted via http://www.ruby-....

David Southwell

8/11/2008 5:36:00 PM

0

On Monday 11 August 2008 10:17:58 Roger Pack wrote:
> Peter K. wrote:
> > 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/... )
> >
> > 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-...
> 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

Peter Krieg

8/11/2008 7:31:00 PM

0

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
--
Posted via http://www.ruby-....

Peter Krieg

8/11/2008 7:36:00 PM

0

David Southwell wrote:
> On Monday 11 August 2008 10:17:58 Roger Pack wrote:
>> > installed ruby and rails as well - but still the same problem as
>> http://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-...
>> 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

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
--
Posted via http://www.ruby-....

Roger Pack

8/11/2008 7:43:00 PM

0

Peter K. wrote:
> 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
--
Posted via http://www.ruby-....

Axel Etzold

8/11/2008 9:15:00 PM

0

Dear Peter,


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

a good place to look is computing books in college/university libraries...
I managed to get a [German language ] book with CD right in my hometown.
Try this catalogue for a search over many libraries:

http://www.ubka.uni-karlsruhe.de/kvk/kvk/k...

Best regards,

Axel
--
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/m...

Peter Krieg

8/14/2008 9:51:00 PM

0


Thanks a lot Axel !
--
Posted via http://www.ruby-....

Peter Krieg

8/15/2008 5:58:00 PM

0

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
--
Posted via http://www.ruby-....