I fixed my hpricot problems on my solaris x-86 box.

I downloaded a couple of large files from sun.com after registration:

-rwx------   1 maco     staff    243701577 Nov 27 02:54 SunStudio12ml-
solaris-x86-200709-ii.tar.bz2
-rwx------   1 maco     staff    272616587 Nov 27 02:58
SunStudio12mlPrepSys-solaris-x86-200709.tar.bz2


I unpacked them:

tar jxf  SunStudio12ml-solaris-x86-200709-ii.tar.bz2
tar jxf SunStudio12mlPrepSys-solaris-x86-200709.tar.bz2


I found:

85 bash-23:22:00-sol:~/sun_studio12 $
85 bash-23:22:00-sol:~/sun_studio12 $
85 bash-23:22:02-sol:~/sun_studio12 $ ll
total 12
drwxr-xr-x   5 maco     staff        512 Nov 27 08:59 ./
drwxr-xr-x  18 maco     root        1024 Nov 27 22:37 ../
lrwxrwxrwx   1 maco     staff         26 Nov 27 08:56
SS12_README_FIRST -> SUNWspro/SS12_README_FIRST/
drwxr-xr-x   4 maco     staff        512 Sep 23 13:15
SS12_prep_system/
drwxr-xr-x  15 maco     staff        512 Sep 23 23:37 SUNWspro/
drwxr-xr-x  11 maco     staff       1024 Sep 23 01:27 netbeans-5.5.1/
86 bash-23:22:08-sol:~/sun_studio12 $
86 bash-23:22:08-sol:~/sun_studio12 $


I ran shell commands:

cd SS12_prep_system
su
./prepare_system -s netbeans,patches

I found cc here: ~/sun_studio12/SUNWspro/bin/cc

I added
~/sun_studio12/SUNWspro/bin to my PATH.

I ran shell command:

44 bash-22:37:49-sol:~/software/hpricot $ gem install hpricot
Updating metadata for 45 gems from http://gems.rubyforge.org
.............................................
complete
Building native extensions.  This could take a while...
Successfully installed hpricot-0.6
1 gem installed
Installing ri documentation for hpricot-0.6...
Installing RDoc documentation for hpricot-0.6...

I was happy!
(Thanks Steve!!)
--hh


On Nov 26, 2:37 pm, Steven Lumos <ste... / lumos.us> wrote:
> HoboHoward <hobohowar... / yahoo.com> writes:
> > Dear List,
>
> > I want to install hpricot on my Solaris x-86 box.
>
> > The makefile generated by the hpricot-installer wants me to use the
> > 'cc' c-compiler.
>
> > I dont have 'cc'.
>
> > I have 'gcc'.
>
> > Is it possible for me to force the hpricot-installer to use my copy of
> > gcc ??
>
> It really wants to use the compiler that Ruby was built with.
>
> [~]0% ruby -rrbconfig -e 'p Config::CONFIG["CC"]'
> "cc"
>
> The Sun compiler suite can be downloaded for free, but if you are
> really attached to gcc then you should build Ruby yourself instead of
> using blastwave.
>
> Steve