- 安装cmake
//先升级gcc至4.8yum install cmake
- 安装Doxygen
yum install doxygen
- 安装OPENCC
unzip xxx.zipcd openccmakemake installln -s /usr/lib/libopencc.so.2 /usr/lib64/libopencc.so.2
- 测试OPENCC
echo '嚴格區分「一簡對多繁」和「一簡對多異」' | opencc -c t2s
- 安装php_opencc.so
phpize./configure --with-php-config=/usr/bin/php-configmake && sudo make install
- vi /etc/php.ini
extension=opencc.so