centos7 opencc 安装
繁體字轉換:
http://xh.5156edu.com/jtof.php
轉換的有問題
http://tool.lu/zhconvert/
git網址:
https://github.com/BYVoid/OpenCC
//正常安裝
doxygen --version
1.8.14
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
yum install gcc-c++ centos 7 gcc 4.8 centos6.5 gcc 4.4 //gcc4.4編譯opecc出問題
yum install cmake
yum install make
git clone https://github.com/doxygen/doxygen.git
yum install python //部分機器可能需要安裝
yum install curl-devel libnet-devel -y ## flex
yum -y install pcre-devel bison flex
//php suport
yum install php-devel //php5.3沒有phpize ,這樣可以安裝phpize
git clone git@github.com:NauxLiu/opencc4php.git
//或者支持php
git clone https://github.com/NauxLiu/opencc4php.git
ln -s /usr/lib/libopencc.so.2 /usr/lib64/libopencc.so.2 //軟連接過去
測試
echo "倫" | opencc -c s2tw
echo "倫" | opencc -c s2hk
echo "倫" | opencc -c s2t
echo "倫" | opencc -c s2twp
echo "倫" | opencc -c s2twp
echo "倫" | opencc -c s2tw
echo "倫" | opencc -c s2hk
echo "倫" | opencc -c s2t
echo "倫" | opencc -c s2twp
php -r " $od = opencc_open('s2t.json');echo opencc_convert("我的鼠標哪兒去了?", $od);"
總結
以上是生活随笔為你收集整理的centos7 opencc 安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: css 模拟器方向_GDS变方向动态循环
- 下一篇: antd table动态表头_解决rea