From: "dese.co.uk (Dave E)" Date: 2013-05-11T00:00:07+09:00 Subject: [ruby-core:54902] [ruby-trunk - Bug #8387][Open] Compiling Ruby 2.0 on SunOS Issue #8387 has been reported by dese.co.uk (Dave E). ---------------------------------------- Bug #8387: Compiling Ruby 2.0 on SunOS https://bugs.ruby-lang.org/issues/8387 Author: dese.co.uk (Dave E) Status: Open Priority: Normal Assignee: dese.co.uk (Dave E) Category: build Target version: ruby -v: 2 Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN Gentlemen, we are currently underway to provide a Ruby2.0 package for Sun Solaris / OpenIndiana. configure fails on: - OpenIndiana a1507 (amd64) - Sun Solaris 10 (amd64, sparcv9) - Oracle Solaris 10 (amd64, sparcv9) - Oracle Solaris 11 (amd64, sparcv9) - Oracle Solaris 11.1 (amd64, sparcv9) with error message: ./configure: line 2093: syntax error at line 43706: `(' unexpected the above error origins from these 2 lines: -e 's/\${rubyarchprefix}/"RUBY_ARCH_PREFIX_FOR(arch)"/g' \ -e 's/\${rubysitearchprefix}/"RUBY_SITEARCH_PREFIX_FOR(arch)"/g' \ Reason: ------------------------------------ the sh shell is unable to interpret the arch command correctly. Resolution: ------------------------------------ After the configure script was created involving the autoconf command, change the first line in the configure script from: -#!/bin/sh +#!/bin/bash The GNU bash, version 4.0.28(1)-release (i386-pc-solaris2.11) will interpret the arch command correctly. I trust you find the above helpful. Regards, Dave. [DE]SYSTEMS ENGINEERING Ltd. www.dese.co.uk -- http://bugs.ruby-lang.org/