Bugzilla – Bug 661877
Utilities fail to find Mono when built with a prefix or suffix
Last modified: 2011-01-25 02:13:46 UTC
Description of Problem: Mono utilities will fail to find and execute Mono on the path when built with a prefix or suffix. Steps to reproduce the problem: 1. Build and install Mono from source with a suffix or prefix. In this case, the suffix used was 2.8, in order to prevent collision with existing system installation of Mono. 2. Attempt to run mcs(suffix), or any other Mono utility. In this case, mcs is called mcs2.8. Actual Results: mcs exits abnormally with "exec: 2: /usr/local/bin/mono: not found". Expected Results: mcs should find the Mono binary regardless of the prefix specified at build time. How often does this happen? Always. Additional Information: Version Information Mono JIT compiler version 2.8.1 (tarball Thu Dec 30 05:50:27 GMT 2010) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: debugger softdebug LLVM: yes(2.8) GC: Included Boehm (with typed GC and Parallel Mark) Note: This bug can be easily fixed by editing all the mono utilites in your favourite text editor, or by using sed, to execute your named version of Mono instead, but these shell scripts should be built on templates which do this at build-time. Appears to affect all Mono utilities compiled to CIL.