PHP on OS X with gettext pkg

Find out how to get that @*&^$&@ thing to compile!

PHP on OS X with gettext pkg

Postby spud » Fri Jun 28, 2002 4:36 pm

I was pleased to find a gettext package here, and happily installed it under OS X 10.1.5, hoping to use it for developing a PHP-based site with localization.

The gettext package installs fine, but PHP won't compile with the "--with-gettext=/usr/local" option. It finds gettext OK, but chokes looking for the related "bindtextdomain". I get

<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre>checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... no
configure: error: Unable to find required gettext library
</pre>[/quote]

...though libintl.h is properly(?) located in /usr/local/include/.

Any ideas? Frankly, I'm lost when trying to interpret stuff like

<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr><pre> AC_CHECK_LIB(intl, bindtextdomain, [
GETTEXT_LIBS=intl
GETTEXT_CHECK_IN_LIB=intl
],
AC_CHECK_LIB(c, bindtextdomain, [
GETTEXT_LIBS=
GETTEXT_CHECK_IN_LIB=c
],[
AC_MSG_ERROR(Unable to find required gettext library)
])
)
</pre>[/quote]

in the PHP source code, so I don't even know how to begin troubleshooting this...

HELP?!?
spud
 
Posts: 1
Joined: Fri Jun 28, 2002 7:00 pm
Location: Baltimore

Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 67 guests

cron