[Mono-osx] Build 'mono-tools' on Mac OS X with Mono 2.6.1
Michael Hutchinson
m.j.hutchinson at gmail.com
Thu Jan 28 21:43:25 EST 2010
On Thu, Jan 28, 2010 at 5:14 PM, JoelMarcey <jimarcey at gmail.com> wrote:
>
> I have installed Mono 2.6.1 on Mac OS X. Note that I used the .dmg; I did not
> build Mono myself. I installed the CSDK as well.
>
> I have gotten the 'mono-tools' source tree from subversion so that I can
> build and run some of these tools, particularly 'gui-compare'.
>
> Here are the steps I have taken to build 'mono-tools':
>
> 1. Open Terminal
> 2. At the command line> source
> /Library/Frameworks/Mono.framework/Versions/Current/env.sh
> 3. Change to the 'mono-tools' directory within Terminal
> 4. At the command line> sh autogen.sh
>
> Here is the error:
>
> sh autogen.sh
> /Library/Frameworks/Mono.framework/Versions/2.6.1/bin/glib-gettextize: line
> 139: cd: /tmp/install/share/glib-2.0/gettext: No such file or directory
> gettext source directory '/tmp/install/share/glib-2.0/gettext' doesn't exist
> **Error**: glib-gettextize failed.
>
> So, it is looking for gettext in /tmp and not finding it. I do have gettext
> in my MAMP installation, but not sure how that might help. Do I need to
> specifically install something in /tmp in order to get this to build
> properly? Or am I missing this build process completely?
AFAICT it's not invoking gettext as such, it's looking for the glib
gettext template directory in order to copy some files to set up the
project to use gettext.
It looks like the copy of glib-gettextize bundled with Mono has a
hardcoded path with some prefix that was probably only used while the
Mono package was being built. I suggest you edit the file
/Library/Frameworks/Mono.framework/Versions/2.6.1/bin/glib-gettextize,
find the line that says
prefix=/tmp/install
and change it to
prefix=/Library/Frameworks/Mono.framework/Versions/2.6.1
Also please file a bug against the Mono Mac packaging.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-osx
mailing list