Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > gem (update ?) problem

Reply
Thread Tools

gem (update ?) problem

 
 
Peter Krieg
Guest
Posts: n/a
 
      08-11-2008
Hello,


Does anybody know how to deal with this gem problem ?

Thanks a lot in advance for your help.

After trying to run gem update the message is:
gem update
Updating installed gems
Updating hpricot
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb update
checking for stdio.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
BBHoss
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--srcdir=.
--curdir
--ruby=c:/ruby/bin/ruby


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161 for

inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/gem_make.out




mkmf.log shows:
have_header: checking for stdio.h... -------------------- no

"cl -nologo -E -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi
-O2b2xg- -G6

conftest.c -P"
checked program was:
/* begin */
1: #include <stdio.h>
/* end */

--------------------
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Frederick Cheung
Guest
Posts: n/a
 
      08-11-2008

On 11 Aug 2008, at 10:19, Peter Krieg wrote:

> Hello,
>
>
> Does anybody know how to deal with this gem problem ?
>
> Thanks a lot in advance for your help.
>


Do you have a working C compiler available ? The error message suggest
that you don't

Fred

> After trying to run gem update the message is:
> gem update
> Updating installed gems
> Updating hpricot
> Building native extensions. This could take a while...
> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
> ERROR: Failed to build gem native extension.
>
> c:/ruby/bin/ruby.exe extconf.rb update
> checking for stdio.h... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
> BBHoss
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --srcdir=.
> --curdir
> --ruby=c:/ruby/bin/ruby
>
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161 for
>
> inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/
> gem_make.out
>
>
>
>
> mkmf.log shows:
> have_header: checking for stdio.h... -------------------- no
>
> "cl -nologo -E -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi
> -O2b2xg- -G6
>
> conftest.c -P"
> checked program was:
> /* begin */
> 1: #include <stdio.h>
> /* end */
>
> --------------------
> --
> Posted via http://www.ruby-forum.com/.
>



 
Reply With Quote
 
 
 
 
Peter K.
Guest
Posts: n/a
 
      08-11-2008
Hi Fred,


thanks a lot for your answer !

No, I don't think so. I am running this in a (minimal) Windows Vista
installation on Virtual PC (to easily correct for mistakes, as I just
started to learn ruby and rails).

I have not installed anything that would include a C-compiler.

Is there a special one to install to run with ruby ? And where would I
put it ? In the ruby folder ?

If a special one is not required, which one would you recommend ?


thanks a lot


Peter

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Ryan Davis
Guest
Posts: n/a
 
      08-12-2008

On Aug 11, 2008, at 03:24 , Frederick Cheung wrote:

> Do you have a working C compiler available ? The error message
> suggest that you don't


I thought that hpricot had a pre-built binary gem for windoze?


 
Reply With Quote
 
Gerson Minichiello
Guest
Posts: n/a
 
      08-13-2008
On Aug 11, 6:19*am, Peter Krieg <pk....@hotmail.de> wrote:
> Hello,
>
> Does anybody know how to deal with this gem problem ?
>
> Thanks a lot in advance for your help.
>
> After trying to run gem update the message is:
> gem update
> Updating installed gems
> Updating hpricot
> Building native extensions. This could take a while...
> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
> ERROR: Failed to build gem native extension.
>
> c:/ruby/bin/ruby.exe extconf.rb update
> checking for stdio.h... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
> BBHoss
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --srcdir=.
> --curdir
> --ruby=c:/ruby/bin/ruby
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161 for
>
> inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/gem_make.out
>
> mkmf.log shows:
> have_header: checking for stdio.h... -------------------- no
>
> "cl -nologo -E -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi
> -O2b2xg- -G6
>
> conftest.c -P"
> checked program was:
> /* begin */
> 1: #include <stdio.h>
> /* end */
>
> --------------------
> --
> Posted viahttp://www.ruby-forum.com/.


Hi Peter,

Try this command:

gem install hpricot --platform mswin32 --source http://code.whytheluckystiff.net

Gerson.
 
Reply With Quote
 
redveedub@gmail.com
Guest
Posts: n/a
 
      08-13-2008
On Aug 12, 7:53 pm, Gerson Minichiello <gerson.minichie...@gmail.com>
wrote:
> On Aug 11, 6:19 am, Peter Krieg <pk....@hotmail.de> wrote:
>
>
>
> > Hello,

>
> > Does anybody know how to deal with this gem problem ?

>
> > Thanks a lot in advance for your help.

>
> > After trying to run gem update the message is:
> > gem update
> > Updating installed gems
> > Updating hpricot
> > Building native extensions. This could take a while...
> > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
> > ERROR: Failed to build gem native extension.

>
> > c:/ruby/bin/ruby.exe extconf.rb update
> > checking for stdio.h... no
> > *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers. Check the mkmf.log file for more
> > details. You may need configuration options.
> > BBHoss
> > Provided configuration options:
> > --with-opt-dir
> > --without-opt-dir
> > --with-opt-include
> > --without-opt-include=${opt-dir}/include
> > --with-opt-lib
> > --without-opt-lib=${opt-dir}/lib
> > --with-make-prog
> > --srcdir=.
> > --curdir
> > --ruby=c:/ruby/bin/ruby

>
> > Gem files will remain installed in
> > c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161 for

>
> > inspection.
> > Results logged to
> > c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6.161/ext/fast_xs/gem_make.out

>
> > mkmf.log shows:
> > have_header: checking for stdio.h... -------------------- no

>
> > "cl -nologo -E -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi
> > -O2b2xg- -G6

>
> > conftest.c -P"
> > checked program was:
> > /* begin */
> > 1: #include <stdio.h>
> > /* end */

>
> > --------------------
> > --
> > Posted viahttp://www.ruby-forum.com/.

>
> Hi Peter,
>
> Try this command:
>
> gem install hpricot --platform mswin32 --sourcehttp://code.whytheluckystiff.net
>
> Gerson.


Gerson,

That worked for me on Windows Vista Home Premium.

Thanks for the tip!

Philip
 
Reply With Quote
 
Peter K.
Guest
Posts: n/a
 
      08-14-2008
>
> Gerson,
>
> That worked for me on Windows Vista Home Premium.
>
> Thanks for the tip!
>
> Philip




Hi Philip,

could you tell me, please, what exactely you did; as for me - I am still
getting the same error (after doing successfully: gem install hpricot
--platform mswin32 --source http://code.whytheluckystiff.net)

I also tried the gem update --with-make-prog option, but something
is wrong with that option ( or the way I am putting it), its not
accepted.

Even though I downloaded and installed hpricot (as mentioned above) the
gem update fails as mentioned in my initial posting.

So maybe a detailed description of what you did might help ? --I hope !!


Hi Gerson,

thanks a lot for the tip, even though for me it was not the breakthrough
yet.

Best

Peter
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Peter K.
Guest
Posts: n/a
 
      08-15-2008
Hi,



Visual C 6.0 won#t install in Vista (at least I can't) get it istalled.
Would anybody know how to do that (as VC 6.0 apparently can't deal with
the Vista environment)



Best

Peter

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Axel Etzold
Guest
Posts: n/a
 
      08-15-2008

-------- Original-Nachricht --------
> Datum: Sat, 16 Aug 2008 03:11:35 +0900
> Von: "Peter K." <>
> An: ruby-
> Betreff: Re: gem (update ?) problem


> Hi,
>
>
>
> Visual C 6.0 won#t install in Vista (at least I can't) get it istalled.
> Would anybody know how to do that (as VC 6.0 apparently can't deal with
> the Vista environment)
>
>
>
> Best
>
> Peter
>
> --
> Posted via http://www.ruby-forum.com/.


Dear Peter,

this might have to do with Vista wanting you to have administrator rights....
You can set them in "system preferences" or look here:

http://www.go-vista.de/forum/index.p...egistry-access

Best regards,

Axel
--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/d...puzzle/6169196

 
Reply With Quote
 
Peter K.
Guest
Posts: n/a
 
      08-20-2008
Dear Axel


thanks a lot for your suggestion. The problem seems to be more
fundamental: at least when I try to install VC 6.0 within my VirtualPC
Vista I am getting an errror message (very early on during installation)
which must be somehow related to an address conflict. It seems that VC
6.0 is using 16 Bit addresses and Vista can't handle these ?!

Do you have any idea what to do ?



Best regards,

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
gem.cmd install RMagick-win32-1.9.2-mswin32.gem: Buffer error Clifford Heath Ruby 7 06-09-2006 07:02 PM
[GEM PATCH] allow gem to install bin file to different location Ara.T.Howard Ruby 0 10-26-2005 11:52 PM
ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find rubygems-upodate (> 0) in the repository han Ruby 1 10-24-2005 10:28 PM
[ANN] Getopt-Declare 1.12 (gem/zip) and GGEnv (gem/zip) gga Ruby 0 07-18-2005 03:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57