Home > Linux | php > Fatal error: Call to undefined function: _()

Fatal error: Call to undefined function: _()

とかいうエラーが出て困った感じだったんだけど、_()という関数は、多国語対応の為のGettext Extentionにて用意されている、gettext()という関数のエイリアスらしい。
というわけでphpに"--with-gettext"をくっつけて再コンパイル。

./configure --enable-mbstring --enable-soap --enable-zend-multibyte --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-curl --with-curlwrappers --with-gd \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-mcrypt \
--with-gettext=/usr/lib

関連記事

この記事を書いているsayjiroはフリーランスとして活動しています。
お仕事も絶賛大募集中です!お気軽にご連絡ください。

SJ6works

コメント:1

こうへい 09-08-04 (火) 20:10

なんかふと目にとまってブログ見さしていただきました。
すごいの一言です。
アタマのよさを感じました
自分は携帯でエロサイト運営しております。

コメントフォーム
設定を保存する

トラックバック:0

この記事のトラックバックURL
http://sj6.org/fatal_error_by_gettext_extension/trackback/

Home > Linux | php > Fatal error: Call to undefined function: _()

フィードとか

ページの上へ