Opened 12 years ago

Closed 12 years ago

#36518 closed defect (fixed)

rb19-activesupport: install fails when ruby19 +nosuffix is installed

Reported by: cdeil (Christoph Deil) Owned by: singingwolfboy@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: kimuraw (kimura wataru)
Port: rb19-activesupport

Description

I have ruby19 @1.9.3-p194_3+doc+nosuffix (active) installed and tried sudo port install rb19-rails. This failed while trying to install rb19-activesupport because it tries to call /opt/local/bin/gem1.9 which is not there (it's at /opt/local/bin/gem instead):

:info:destroot sh: /opt/local/bin/gem1.9: No such file or directory
:info:destroot Command failed: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_ruby_rb19-activesupport/rb19-activesupport/work/activesupport-3.0.5 && /opt/local/bin/gem1.9 install --local --force --install-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_ruby_rb19-activesupport/rb19-activesupport/work/destroot/opt/local/lib/ruby1.9/gems/ /opt/local/var/macports/distfiles/ruby/activesupport-3.0.5
:info:destroot Exit code: 127

ticket:25896 and ticket:34867 are the result of a similar problem resulting from the ruby19 +nosuffix variant.

ticket:34867#comment:1 mentions a possible solution.

Change History (5)

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Cc: singingwolfboy@… removed
Owner: changed from macports-tickets@… to singingwolfboy@…

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Cc: kimuraw@… added

Seems like this might be an issue with the ruby portgroup in general?

comment:3 Changed 12 years ago by kimuraw (kimura wataru)

I think #36507 fixed this problem. Now port:ruby19 always installs suffixed commands whether with "nosuffix" variant or not.

Try "port upgrade ruby19". after the upgrade, "port install rb19-activesupport" will succeed.

comment:4 Changed 12 years ago by cdeil (Christoph Deil)

You're right, now rb19-activesupport works. But now I get this error with rb19-erubis

--->  Installing rb19-erubis @2.7.0_0
--->  Activating rb19-erubis @2.7.0_0
Error: org.macports.activate for port rb19-erubis returned: Image error: /opt/local/bin/erubis already exists and does not belong to a registered port.  Unable to activate port rb19-erubis. Use 'port -f activate rb19-erubis' to force the activation.
Error: Failed to install rb19-erubis
Please see the log file for port rb19-erubis for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_ruby_rb19-erubis/rb19-erubis/main.log
Error: The following dependencies were not installed: rb19-actionmailer rb19-actionpack rb19-erubis rb19-rack rb19-rack-mount rb19-rack-test rb19-tzinfo rb19-mail rb19-mime-types rb19-treetop rb19-polyglot rb19-activerecord rb19-arel rb19-activeresource rb19-bundler rb19-ronn rb19-hpricot rb19-mustache rb19-rdiscount rb19-rspec rb19-railties rb19-thor

Let me know if you need the log or further information.

comment:5 Changed 12 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

Closing because the issue on this ticket is fixed. r98619.

@Deil.Christoph: Use the Macports Users Mailing List for tech support.

Note: See TracTickets for help on using tickets.