Project

General

Profile

Backport #8387

Compiling Ruby 2.0 on SunOS

Added by dese.co.uk (Dave E) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:54902]

Description

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


Related issues

Related to Backport200 - Backport #8388: baseruby issue on OpenIndiana / Oracle Solaris 11.xClosed05/11/2013Actions
Is duplicate of Backport200 - Backport #8071: Ruby 2.0 ./configure fails with syntax error on Illumos distributionsClosed03/11/2013Actions

Associated revisions

Revision 1c0abbf0
Added by nagachika (Tomoyuki Chikanaga) about 6 years ago

merge revision(s) 39636,39741,40454: [Backport #8071] [Backport #8387]

    configure.in: suppress error messages

    * configure.in: suppress error messages, rm: cannot remove

'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.
* configure.in (rm, shvar_to_cpp, unexpand_shvar): local is not
available on old shells.

    * configure.in (shvar_to_cpp): escape quotes for old shells.
      [Bug #7959] [Bug #8071]

    * configure.in (RUBY_RM_RECURSIVE): this hack is needed by only
      autoconf 2.69 or earlier on darwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 40647
Added by nagachika (Tomoyuki Chikanaga) about 6 years ago

merge revision(s) 39636,39741,40454: [Backport #8071] [Backport #8387]

configure.in: suppress error messages

* configure.in: suppress error messages, rm: cannot remove

'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.
* configure.in (rm, shvar_to_cpp, unexpand_shvar): local is not
available on old shells.

* configure.in (shvar_to_cpp): escape quotes for old shells.
  [Bug #7959] [Bug #8071]

* configure.in (RUBY_RM_RECURSIVE): this hack is needed by only
  autoconf 2.69 or earlier on darwin.

History

#1

Updated by nobu (Nobuyoshi Nakada) about 6 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport200
  • Category deleted (build)
  • Status changed from Open to Assigned
  • Assignee changed from dese.co.uk (Dave E) to nagachika (Tomoyuki Chikanaga)

Updated by nagachika (Tomoyuki Chikanaga) about 6 years ago

Thank you for remind me this.

I'll backport r39741 and r39636, r40454 for clean merge.

Thanks.

#3

Updated by nagachika (Tomoyuki Chikanaga) about 6 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r40647.
Peter, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39636,39741,40454: [Backport #8071] [Backport #8387]

configure.in: suppress error messages

* configure.in: suppress error messages, rm: cannot remove

'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.
* configure.in (rm, shvar_to_cpp, unexpand_shvar): local is not
available on old shells.

* configure.in (shvar_to_cpp): escape quotes for old shells.
  [Bug #7959] [Bug #8071]

* configure.in (RUBY_RM_RECURSIVE): this hack is needed by only
  autoconf 2.69 or earlier on darwin.

Also available in: Atom PDF