From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: Re: Rainbow gem install on solaris failed Date: Thu, 19 Jan 2012 19:37:40 +0000 Message-ID: <20120119193740.GA23333@dcvr.yhbt.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327001885 3867 80.91.229.12 (19 Jan 2012 19:38:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 19:38:05 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Thu Jan 19 20:38:01 2012 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:58 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rnxo7-0002Uq-PB for gclrrg-raindrops@m.gmane.org; Thu, 19 Jan 2012 20:38:00 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 897EA21CEC3 for ; Thu, 19 Jan 2012 19:42:42 +0000 (UTC) Anjana Sarkar wrote: > *I do have gcc 4+ installed , how do I tell mkmf to use that?* > *mkmf.log shows it is using /opt/SUNWspro12/bin/cc* First, don't send HTML to technical mailing lists. You can probably override the CC env when running make after running "ruby extconf.rb" manually. Not sure how to do that easily via "gem install"... There might be a more generic way to specify an alternative compiler when installing gems. On the other hand, it might be easier to just install libatomic_ops (or rebuild Ruby using gcc) If you really want to get nasty, you can also edit the rbconfig.rb file in your ruby installation so it points to GCC... Totally hacky, though... > *$gcc -v > Using built-in specs. > Target: sparc-sun-solaris2.10 > Configured with: ../gcc-4.3.5/configure --prefix=/opt/swt/install/gcc-4.3.5 > --with-gmp-lib=/opt/swt/lib --with-gmp-include=/opt/swt/include > Thread model: posix > gcc version 4.3.5 (GCC) > * > * * > *$ uname -a > SunOS sundev1 5.10 142900-02 sun4v sparc SUNW,T5240 Anyways I can't provide support for non-Free systems. Maybe somebody else on the list has more knowledge in these areas.