# Gem (update ?) problem

**URL:** <https://www.ruby-forum.com/t/gem-update-problem/145537>\
**Category:** Ruby\
**Created:** [August 11, 2008, 11:22am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537 "2008-08-11T11:22:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 11, 2008, 11:22am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/1 "2008-08-11T11:22:06Z")

</div>

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 \*/

* * *

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 11, 2008, 12:26pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/2 "2008-08-11T12:26:48Z")

</div>

On 11 Aug 2008, at 10:19, Peter K. 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

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 11, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/3 "2008-08-11T13:11:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 12, 2008, 3:10am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/4 "2008-08-12T03:10:40Z")

</div>

On Aug 11, 2008, at 03:24 , Frederick C. 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?

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 13, 2008, 4:55am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/5 "2008-08-13T04:55:58Z")

</div>

On Aug 11, 6:19 am, Peter K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Building native extensions. This could take a while…  
> Provided configuration options:
> 
> "cl -nologo -E -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi  
> Posted viahttp://www.ruby-forum.com/.  
> Hi Peter,

Try this command:

gem install hpricot --platform mswin32 --source  
[http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)

Gerson.

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 13, 2008, 7:30am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/6 "2008-08-13T07:30:35Z")

</div>

On Aug 12, 7:53 pm, Gerson M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > After trying to run gem update the message is:  
> > Could not create Makefile due to some reason, probably lack of  
> > –with-make-prog
> 
> > /\* end \*/
> 
> Gerson.

Gerson,

That worked for me on Windows Vista Home Premium.

Thanks for the tip!

Philip

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 15, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/7 "2008-08-15T20:14:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 14, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/8 "2008-08-14T22:51:13Z")

</div>

> 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](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

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 15, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/9 "2008-08-15T20:26:34Z")

</div>

-------- Original-Nachricht --------

> Datum: Sat, 16 Aug 2008 03:11:35 +0900  
> Von: “Peter K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: gem (update ?) problem

> Best
> 
> Peter
> 
> –  
> Posted via [http://www.ruby-forum.com/](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:

> **[Software installation;registry access ✔ Windows Vista Forum](https://www.go-windows.de/forum/windows-vista/software-installationregistry-access/)**
>
> Vista Home Premium. Unable to reinstall game softwareIve done the installation about half a year ago and the program worked fine. Then a few problemsoccured, an...

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 20, 2008, 11:46am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/10 "2008-08-20T11:46:10Z")

</div>

-------- Original-Nachricht --------

> Datum: Wed, 20 Aug 2008 14:52:29 +0900  
> Von: “Peter K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: gem (update ?) problem

> Best regards,
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Dear Peter,

did you try what’s suggested here:

[http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3328605&SiteID=1](http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3328605&SiteID=1) ?  
(there is a promising 4-link post in there somewhere…)  
I had VC 6.0 installed on another computer under Windows XP a longer  
time ago,  
with no Vista-related problems, of course.  
Please tell me what you find out.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 20, 2008, 7:55am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/11 "2008-08-20T07:55:57Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 29, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/12 "2008-08-29T13:42:42Z")

</div>

Dear Axel,

the bottom line seems to be: MS VC 6.0 does not run under Windows Vista  
!

Too bad, I have already invested too much time trying to get this  
running.

But other people seem to use Ruby with Vista, so there must be some  
other way (other than using MS VC 6.0 ) ?

Best Peter

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 30, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/13 "2008-08-30T21:47:50Z")

</div>

Gerson M. wrote:  
[snip]

> Try this command:
> 
> gem install hpricot --platform mswin32 --source  
> [http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)
> 
> Gerson.

Hey, that worked for me too! Thanks Axel for referring me here. I had  
noticed this post yesterday while I was at work, but I forgot about it  
by the time I got home.

Forgive me for being a noob, but is Gerson the famous \_why?

Doug

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 31, 2008, 12:19am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/14 "2008-08-31T00:19:26Z")

</div>

-------- Original-Nachricht --------

> Datum: Sun, 31 Aug 2008 04:42:52 +0900  
> Von: Doug G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: gem (update ?) problem

> noticed this post yesterday while I was at work, but I forgot about it  
> by the time I got home.
> 
> Forgive me for being a noob, but is Gerson the famous \_why?

I don’t know, but I don’t think so.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 31, 2008, 8:32am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/15 "2008-08-31T08:32:25Z")

</div>

Dear Axel,

thanks a lot for your help !!  
I managed to install the hpricot, but when I am running a gem update  
then it tries to update hpricot as well and the same error occurs. Is  
there a command to explicitly exclude the hpricote update when running  
gem update

(something like gem update --exclude hpricot) ??

As I started using ruby/rails only recently I am not completely familiar  
with all the options. So far I started gem updates from inside the  
console window.

> Open the gems package manager and type in the following:  
> gem install hpricot --source [http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)

I was not aware, that there is a specific gem package manager (other  
than calling gem update within the console window).  
How would I start it up (which programm-name would I have to open /  
doubleklick) ?

Best

Peter

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 30, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/16 "2008-08-30T15:59:35Z")

</div>

-------- Original-Nachricht --------

> Datum: Fri, 29 Aug 2008 20:37:52 +0900  
> Von: “Peter K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: gem (update ?) problem

> Best Peter
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Dear Peter,  
Dear \_why,

I couldn’t install MS VC6.0 on Vista either.

Now, as you started this post by requesting a hpricot gem, and as \_why  
is offering a binary version for Windows, you can install a gem from  
there, using  
the Ruby O.-click version  
([http://rubyforge.org/projects/rubyinstaller/](http://rubyforge.org/projects/rubyinstaller/))  
(on my system, I have 1.8.6-26 together with Vista Ultimate).  
Open the gems package manager and type in the following:

gem install hpricot --source [http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)

(see here:  
[http://code.whytheluckystiff.net/hpricot/wiki/InstallingHpricot](http://code.whytheluckystiff.net/hpricot/wiki/InstallingHpricot))

I ran the example script from hpricot  
([http://code.whytheluckystiff.net/hpricot/](http://code.whytheluckystiff.net/hpricot/)) without  
any problems.

It seems the Windows gems are actually not compiled under Windows, but  
cross-compiled  
using mingw on BSD.

I found the following quote from 2006 …

> I mean thatâ€™s alot better than putting together a VM and trying to track down a decent free Microsoft \>compiler. A couple weeks ago, I spent six hours on it and made no progress.

See here:  
[http://redhanded.hobix.com/inspect/hpricotAndSandboxForWin32.html](http://redhanded.hobix.com/inspect/hpricotAndSandboxForWin32.html)

\_why: are you still using Mingw on BSD for cross-compiling the software  
you are offering  
for the Windows platforms ?

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 31, 2008, 10:06am UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/17 "2008-08-31T10:06:18Z")

</div>

-------- Original-Nachricht --------

> Datum: Sun, 31 Aug 2008 15:27:20 +0900  
> Von: “Peter K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Re: gem (update ?) problem

> Dear Axel,
> 
> thanks a lot for your help !!

you’re welcome 🙂

> I managed to install the hpricot, but when I am running a gem update  
> then it tries to update hpricot as well and the same error occurs. Is  
> there a command to explicitly exclude the hpricote update when running  
> gem update
> 
> (something like gem update --exclude hpricot) ??

Not that I know of. Maybe you submit this as a feature request to the  
people  
who maintain rubygems ? There’s a special mailing list for rubygems  
developers  
you could ask for that.  
Otherwise,

gems list

will display all the gems you have installed. If they are not too many,  
you could  
remove them by hand and install them, with the right parameters again.

> doubleklick) ?

There is a Ruby distribution for Windows called One-click-installer Ruby

[http://rubyforge.org/projects/rubyinstaller/](http://rubyforge.org/projects/rubyinstaller/)

This installs Ruby so that you can see a folder for it in the tree of  
your installed  
programs. The default name will be Ruby-186-26. There’s a subfolder  
RubyGems  
and inside that, a RubyGems Package Manager application, which opens a  
console-like  
window.

I’m not really sure whether there’s any difference between managing  
rubygems from  
there or from the Windows console (maybe some care is needed to tell the  
Windows console  
where to find rubygems).

As a quick-and-dirty workaround, you might also try to write a  
rubygems-update-with-exclusion script using the console yourself …  
maintain a text file with special parameters for special gems and use  
Ruby’s ‘system’ command to invoke the console..you could then uninstall  
every gem in the list  
given by ‘gems list’, and reinstall it, maybe from some special source,  
like in the hpricot  
case, if your parameter file includes some special information.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 31, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/18 "2008-08-31T12:21:40Z")

</div>

Dear Axel,

thanks a lot for your tremendous help !

In my ruby-folder I can’t find a subfolder RubyGems.

Therefore, I installed ruby again from the link you gave (in a folder  
ruby-186-26) and I checked the option for RubygGems during installation.

The new installation has the folders:  
bin  
doclib  
man  
samples  
scite  
share  
src

and I can’t find any RugyGems subfolder within these folders.  
Did I do something wrong ?

Best  
Peter

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [October 1, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/19 "2008-10-01T19:29:47Z")

</div>

Peter K. wrote:

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

Hello. I have encountered a similar problem. I am running Windows XP  
SP2. If you just want to skip hpricot and continue updating your other  
installed gems, you can do that by renaming the gem specification file  
for hpricot under this directory:

C:\Ruby\lib\ruby\gems\1.8\specifications

just look for this file: hpricot-0.6-x86-mswin32.gemspec

and rename it, in my case i renamed it to:  
hpricot-0.6-x86-mswin32.gemspec.bak

i believe that hpricot-0.6-x86-mswin32.gemspec is the key to solving  
this problem in windows but since i am also a noob to ruby, i guess  
renaming this file will suffice for now. i believe the gem update  
command looks into the gem specification file for update parameters. and  
since for some reason the update will not work, i guess it is best to  
“fool” gem update into believing that you do not have hpricot installed.

i think you can then manually install or update hpricot by using this  
command:

gem install hpricot --platform mswin32 --source  
[http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)

as gerson pointed.

but i think it would be better if we can sort of edit the gem  
specification of hpricot so that it will point to this location when the  
gem update command is issued. i just don’t know how to do it. does  
anybody know?

---

<div class="post-metadata">

**Author:** ![peterkemp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Post date:** [August 31, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537/20 "2008-08-31T12:48:14Z")

</div>

Dear Axel,

well, I found RubyGems, but not as a subfolder but within the start  
menue (ruby-186-26 =\> RubyGems

Here I can indeed start the Gems console (for some reason this  
start-menue structure did not install with my previous ruby  
installation, even though I used the same exe-program to install (but  
there the install folder was ruby oposed to the new one ruby-186-26).

Until now, I was using the console of Aptana radrails, as I had no  
access to some other one (and the windows console did not really work).

Now I will try from here and get back as soon as I know more.

Best  
Peter

[Next page](https://www.ruby-forum.com/t/gem-update-problem/145537.md?page=2)
