From: HoboHoward Date: 2007-11-26T08:45:00+09:00 Subject: hpricot on my Solaris x-86 box. cc bad , gcc good 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 ?? Here is a screen dump of my installation attempt: 14 bash-14:31:27-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 14 bash-14:31:28-sol:/opt/csw/lib/ruby/gems/1.8/cache root# pwd /opt/csw/lib/ruby/gems/1.8/cache 15 bash-14:31:30-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 15 bash-14:31:30-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 15 bash-14:31:30-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 15 bash-14:31:31-sol:/opt/csw/lib/ruby/gems/1.8/cache root# ls ./ actionpack-1.13.3.gem activerecord-1.15.3.gem activesupport-1.4.4.gem ../ actionpack-1.13.6.gem activerecord-1.15.6.gem rails-1.2.3.gem actionmailer-1.3.3.gem actionwebservice-1.2.3.gem activesupport-1.4.2.gem rake-0.7.3.gem 16 bash-14:31:32-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 16 bash-14:31:32-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 16 bash-14:31:33-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 16 bash-14:31:33-sol:/opt/csw/lib/ruby/gems/1.8/cache root# gem install hpricot Updating metadata for 11 gems from http://gems.rubyforge.org ........... complete Building native extensions. This could take a while... ERROR: Error installing hpricot: ERROR: Failed to build gem native extension. /opt/csw/bin/ruby extconf.rb install hpricot checking for main() in -lc... no creating Makefile make cc -I. -I. -I/opt/csw/lib/ruby/1.8/i386-solaris2.8 -I. -I/opt/csw/ include -I/opt/csw/include -KPIC -xO3 -xarch=386 -xspace -xildoff -I/ opt/csw/include -I/opt/csw/include -KPIC -c hpricot_scan.c sh: cc: not found *** Error code 1 make: Fatal error: Command failed for target `hpricot_scan.o' Gem files will remain installed in /opt/csw/lib/ruby/gems/1.8/gems/ hpricot-0.6 for inspection. Results logged to /opt/csw/lib/ruby/gems/1.8/gems/hpricot-0.6/ext/ hpricot_scan/gem_make.out 17 bash-14:32:10-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 17 bash-14:32:52-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 17 bash-14:32:52-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 17 bash-14:32:53-sol:/opt/csw/lib/ruby/gems/1.8/cache root# which gcc /opt/csw/gcc3/bin/gcc 18 bash-14:33:17-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 18 bash-14:33:17-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 18 bash-14:33:17-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 18 bash-14:33:17-sol:/opt/csw/lib/ruby/gems/1.8/cache root# uname -a SunOS sol 5.10 Generic_118855-14 i86pc i386 i86pc 19 bash-14:45:24-sol:/opt/csw/lib/ruby/gems/1.8/cache root# 19 bash-14:45:25-sol:/opt/csw/lib/ruby/gems/1.8/cache root# Is it possible for me to force the hpricot-installer to use my copy of gcc ?? --hh