本来是一件很简单的事情。 cvsup -gL 2 -h cvsup.freebsd.org /usr/share/examples/cvsup/ports-supfilecd /usr/ports/lang/php5(或者用:/usr/ports/www/mod_php5)make install clean 但是结果却发现pivot无法运行,报一个错误,说是什么函数找不到。google
本来是一件很简单的事情。
cvsup -gL 2 -h cvsup.freebsd.org /usr/share/examples/cvsup/ports-supfilecd /usr/ports/lang/php5(或者用:/usr/ports/www/mod_php5)make install clean
但是结果却发现pivot无法运行,报一个错误,说是什么函数找不到。google了一下才知道,这个函数在一个叫做pcre(Perl Compatible Regular Expressions)的库提供的。Windows版下的PHP5安装程序中已经默认包含了,但是用ports安装的默认选项是没有包括它的。只好查资 料,反复地把PHP5装了卸,卸了装,但是总是不对,不论是装php5还是装mod_php5(后来看了mod_php5的Makefile,发现它也是 依赖php5的安装的)。也试过用一些选项重新编译Apache几次,始终不管用。这个pcre似乎既不在PHP5里,也不在Apache里。
事实证明它的确不包含在那二者中,而是一个单独的安装。-_-|||
cd /usr/ports/devel/pcremake install cleancd /usr/ports/lang/php5vi Makefile(在其中的CONFIGURE_ARGS=一项末尾增加--with-pcre-regex后保存退出)make install clean
即可使PHP5增加pcre支持。
BTW:安装成功后,pivot仍然出现登录后任何操作都需要重登录的问题,经查,是因为文件权限问题,chmod一下即可。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.