Loading...
 

Ruby

  • To compile C ruby modules on solaris without gnu ld you have to edit the makefile generation:

extconf.rb:

require 'mkmf'
dir_config('fastthread')
$LDFLAGS = '-R/sbcimp/run/pd/gcc/4.1.1-32bit/lib/gcc/sparc-sun-solaris2.10/4.1.1 -Wl,-dy'
create_makefile('fastthread')

otherwise you get an error like:

/usr/ccs/bin/ld: illegal option -- E

when trying to install the gem as -E is an option on gnu ld but not solaris ld. The equivalent on solaris ld is -dy (dynamic = yes). (Obviously the actual LDFLAGS might be different for your installation. Take it from the generated makefile and edit).

$> gem
/home/joneian/rubygems/bin/gem:8:in `require': no such file to load -- rubygems (LoadError)
        from /home/joneian/rubygems/bin/gem:8

In which case you can run gem as follows:

ruby -I/home/joneian/rubygems/lib /home/joneian/rubygems/bin/gem


Created by IanJones. Last Modification: Thursday 08 of January, 2009 15:10:42 UTC by IanJones.

Search For a Wiki Page

Google Search

 
www.iandjones.com
WWW