PyPy translation error (libintl.h) in Mac OS X

PyPy is a python implementation using JIT.

http://codespeak.net/pypy/dist/pypy/doc/getting-started-python.html

When I tried to "translate" the PyPy,

python translate.py --opt=2 targetpypystandalone.py

I got error that there is no libintl.h.

[platform:ERROR] /var/folders/iP/iPZKdsuIE881ZiEqvpEGd++++TI/-Tmp-/usession-trunk-0/platcheck_26.c:22:21: error: libintl.h: No such file or directory

Solution

According to http://techno-st.net/2010/04/21/mac-os-x-cadaver.html, I downloaded gettext from http://www.gnu.org/software/gettext/, and configure-make-make-install-ed.

Then the tlanslation worked well. It displayed Mandelbrot fractal during the long execution ( about 30 minutes).

PyPy!

It works.

~/Documents/.../translator/goal $ find /usr -name libintl.h 
/usr/local/include/libintl.h
suztomo@yl-dhcp4.is.s.u-tokyo.ac.jp ~/Documents/LanguageStudy/pypy/pypy-trunk/pypy/translator/goal
~/Documents/.../translator/goal $ python translate.py --opt=2 targetpypystandalone.py

.(omit).

suztomo@yl-dhcp4.is.s.u-tokyo.ac.jp ~/Documents/LanguageStudy/pypy/pypy-trunk/pypy/translator/goal
~/Documents/.../translator/goal $ ./pypy-c 
Python 2.5.2 (74054, Apr 26 2010, 05:04:40)
[PyPy 1.2.0] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``with all appropriate
contextualisationing''
>>>> 46 - 2
44
>>>>