私は最近、Lion OS X 64bitでPHPをバージョン5.4.1にアップグレードしました。 CodeIgniterの中で:私は、問題をGoogleで検索PHP 5.4 after-install:preg_match():コンパイルに失敗しました:オフセット0で未知のオプションビットが設定されました
Severity: Warning
Message: preg_match(): Compilation failed: unknown option bit(s) set at offset 0
Filename: core/Utf8.php
Line Number: 44
、これはPHPでPCREのLIBに問題があるようだ、よく私は私がやった自作(私はPCRE 8.30を実行している)とのPCREをインストールするために示したthis tutorialを追いましたこれは問題を解決しませんでした。
私は解決策を見いだそうとしましたが、このPCRE libの問題を解決する方法はありますか?
編集:ちょうど私のインストールは何であったかを私に思い出させるためにこの質問を編集した:
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
--with-kerberos=/usr \
--with-zlib=/usr \
--enable-bcmath \
--with-bz2=/usr \
--enable-calendar \
--with-curl=/usr \
--enable-dba \
--enable-exif \
--enable-ftp \
--with-gd \
--with-freetype-dir=/usr/X11/ \
--with-jpeg-dir=/usr \
--with-png-dir=/usr/X11/ \
--enable-gd-native-ttf \
--with-icu-dir=/usr \
--with-iodbc=/usr \
--with-ldap=/usr \
--with-ldap-sasl=/usr \
--with-libedit=/usr \
--enable-mbstring \
--enable-mbregex \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/var/mysql/mysql.sock \
--with-readline=/usr \
--enable-shmop \
--with-snmp=/usr \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-tidy \
--enable-wddx \
--with-xmlrpc \
--with-iconv-dir=/usr \
--with-xsl=/usr \
--enable-zip \
--with-pgsql=/usr \
--with-pdo-pgsql=/usr \
--with-mcrypt=/usr/local/lib
preg_replaceを使ってCakePHP 2.1を使って同じエラーが発生しました。私はあなたと同じ設定をしています(Lion、PHP 5.4.1、pcre 8.30)。 –
私はちょうど私の最後に何か気づいた。私は8.30の自作ソフトウェアをインストールしていて、config中のパスを参照しているにもかかわらず、phpinfo()はそれを示している。バージョン8.02!私は '問題だ。それがあなたの目的であるかどうかを見てください。今私はそれを8.30を使ってコンパイルする方法を見つけなければなりません。 –
はい、これはまさに私がやったことですが、pcreのhomebrewインストールさえあるにもかかわらず、あなたがディレクトリ '/ usr'をpcreに指定しても、PHPがそれを拾わない理由を理解できません。 – MacMac