[csw-users] Help building json ruby gem

Mohamed Lrhazi lrhazi at gmail.com
Tue Mar 29 02:34:04 CEST 2011


the cswrbconfig was failing for not finding rbconfig.rb

Looking at the code, I replaced 2.8 with 2.9, and now it works.
thanks. the gem install build also works.


#!/opt/csw/bin/ruby -w

ARCH = %x{uname -p}.chomp
CONFD = "/opt/csw/lib/ruby/1.8/#{ARCH}-solaris2.9"
RBC = File.join(CONFD, "rbconfig.rb")
CUR_RBC = File.readlink(RBC).gsub(/.*\./, '')





On Mon, Mar 28, 2011 at 8:07 PM, Ben Walton <bwalton at opencsw.org> wrote:
> Excerpts from Mohamed Lrhazi's message of Mon Mar 28 16:50:05 -0400 2011:
>
>> make
>> /opt/SUNWspro/bin/cc -I. -I/opt/csw/lib/ruby/1.8/sparc-solaris2.9
>> -I/opt/csw/lib/ruby/1.8/sparc-solaris2.9 -I. -I/opt/csw/include
>> -D_FILE_OFFSET_BITS=64  -KPIC -xO3 -m32 -xarch=v8 -xnorunpath  -KPIC
>> -O3  -c generator.c
>> make: /opt/SUNWspro/bin/cc: Command not found
>> make: *** [generator.o] Error 127
>
> At this point, you need to toggle the rbconfig.rb to use the gcc4
> version.  This is done with cswrbconfig (for now).
>
> Thanks
> -Ben
> --
> Ben Walton
> Systems Programmer - CHASS
> University of Toronto
> C:416.407.5610 | W:416.978.4302
>
> _______________________________________________
> users mailing list
> users at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/users
>


More information about the users mailing list