David Van Couvering wrote:
> I don't know the background, but from a naive perspective it sure 
> seems to me you shouldn't have to have cc on your system to be able to 
> debug Ruby on OpenSolaris.

Hi David,
 This is not a OpenSolaris requirement.  Gems that have C code in them 
are bundled in source form so as to avoid different binaries for 
different OSes.  ruby-debug-ide happens to be one such gem. 

 The below scenario should of course work seamlessly as soon as we've 
fixed bug 6705310.  But we have an work around for now.  Please check 
out these blog entries -

http://blogs.sun.com/prashant/entry/where_s_my_ruby

 and

http://blogs.sun.com/prashant/entry/dtrace_support1

 -ps


>
> David
>
> On Mon, Jun 2, 2008 at 4:55 PM, Brian Leonard <William.Leonard at sun.com 
> <mailto:William.Leonard at sun.com>> wrote:
>
>     Has anyone successfully installed the ruby-debug-ide gem on
>     OpenSolaris 2008.05? I'd like to update the Ruby Debugging
>     <http://wiki.netbeans.org/RubyDebugging> wiki with the instructions.
>
>     Here's what I did:
>
>     > pfexec pkg install gcc-dev
>
>     > pfexec gem install ruby-debug-ide
>     Install required dependency ruby-debug-base? [Yn]  y
>     Select which gem to install for your platform (i386-solaris2.11)
>      1. ruby-debug-base 0.10.0 (mswin32)
>      2. ruby-debug-base 0.10.0 (ruby)
>      3. Skip this gem
>      4. Cancel installation
>     > 2
>     Building native extensions.  This could take a while...
>     ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
>         ERROR: Failed to build gem native extension.
>
>     ruby extconf.rb install ruby-debug-ide
>     creating Makefile
>
>     make
>     */opt/SUNWspro.40/SS11/bin/cc* -I.
>     -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11
>     -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11 -I.
>     -DTEXT_DOMAIN="" 
>     -I/builds/sfwnv-86/proto/root_i386/usr/sfw/include 
>     -I/builds/sfwnv-86/proto/root_i386/usr/include   
>     -I/builds/sfwnv-86/proto/root_i386//readline-5.2/include -KPIC
>     -xO3 -xbuiltin=%all -xinline=auto -xprefetch=auto -xdepend  -KPIC 
>     -c ruby_debug.c
>     /bin/sh: line 1: /opt/SUNWspro.40/SS11/bin/cc: not found
>     make: *** [ruby_debug.o] Error 127
>
>
>     Gem files will remain installed in
>     /var/ruby/1.8/gem_home/gems/ruby-debug-base-0.10.0 for inspection.
>     Results logged to
>     /var/ruby/1.8/gem_home/gems/ruby-debug-base-0.10.0/ext/gem_make.out
>     >
>
>
>     I don't have */opt/SUNWspro.40/SS11/bin/cc *on my system. I do
>     have /usr/gnu/bin/cc, but updating the Makefile to use
>     /usr/gnu/bin/cc resulted in other build errors and at this point I
>     don't know enough about developing in C to proceed.
>
>     Regards,
>     Brian
>
>
>
>
>
>
>
> -- 
> David W. Van Couvering
> http://davidvancouvering.blogspot.com
> ------------------------------------------------------------------------
>
> _______________________________________________
>
>
> webstack-discuss mailing list
> webstack-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss
>   


-- 
Prashant Srinivasan
F/OSS Enthusiast
Sun Microsystems, Inc.
http://blogs.sun.com/prashant
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x82FBDE5A


Reply via email to