Bug 8039 - ipy, ir launch scripts have correct path to exe in Mono 3.0
Summary: ipy, ir launch scripts have correct path to exe in Mono 3.0
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: unspecified
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-10-29 05:51 UTC by Brian Reiter
Modified: 2013-08-23 12:45 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Brian Reiter 2012-10-29 05:51:38 UTC
$ ir
Cannot open assembly '/Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironruby/bin/ir.exe': No such file or directory.
$ ir
Cannot open assembly '/Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironruby/bin/ir.exe': No such file or directory.

The fix is simple. The path in the shell scripts doesn't match the location of the exe in the Mono 3.0 distribution:

$ diff -p  /usr/bin/ir.0 /usr/bin/ir
*** /usr/bin/ir.0	2012-10-29 11:45:54.000000000 +0200
--- /usr/bin/ir	2012-10-29 11:46:41.000000000 +0200
*** 1,2 ****
! exec /Library/Frameworks/Mono.framework/Versions/3.0.0/bin/mono /Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironruby/bin/ir.exe "$@"
--- 1,2 ----
! exec /Library/Frameworks/Mono.framework/Versions/3.0.0/bin/mono /Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironruby/ir.exe "$@"

$ diff -p  /usr/bin/ipy.0 /usr/bin/ipy
*** /usr/bin/ipy.0	2012-10-29 11:48:33.000000000 +0200
--- /usr/bin/ipy	2012-10-29 11:48:57.000000000 +0200
*** 1,2 ****
! exec /Library/Frameworks/Mono.framework/Versions/3.0.0/bin/mono /Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironpython/bin/ipy.exe "$@"
--- 1,2 ----
! exec /Library/Frameworks/Mono.framework/Versions/3.0.0/bin/mono /Library/Frameworks/Mono.framework/Versions/3.0.0/lib/ironpython/ipy.exe "$@"

$ ipy
IronPython 3.0 ( on .NET 4.0.30319.17020
Type "help", "copyright", "credits" or "license" for more information.
[2]+  Stopped                 ipy
$ ir
IronRuby on 3.0.0 (master/579ff97 Fri Oct 19 15:21:36 EDT 2012)
Copyright (c) Microsoft Corporation. All rights reserved.

[3]+  Stopped                 ir
Comment 1 Rodrigo Kumpera 2013-08-23 12:45:49 UTC
Mono 3.2 fixes this.