如何配置enca
简介
enca是一个实用的编码转换工具。
编译和测试方式
1.配置编译环境
安装wget工具。
yum install wget -y
2.获取源码
获取“enca-1.19”源码包。
cd /usr/local/src
wget https://codeload.github.com/nijel/enca/tar.gz/1.19
3.编译和安装
1)解压软件包。
cd /usr/local/src
tar -zxvf 1.19
2)进入enca的安装目录。
cd enca-1.19/
3)安装enca。
./configure
make
make check
检查编译过程是否正常,回显信息如下,则表示编译正常:
============================================================================
Testsuite summary for Enca 1.19
============================================================================
# TOTAL: 21
# PASS: 19
# SKIP: 2
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory `/usr/local/src/enca-1.19/test'
make[2]: Leaving directory `/usr/local/src/enca-1.19/test'
make[1]: Leaving directory `/usr/local/src/enca-1.19/test'
make[1]: Entering directory `/usr/local/src/enca-1.19'
make[1]: Leaving directory `/usr/local/src/enca-1.19'
make install
----结束
4.运行和验证
测试enca是否安装完成。
enca --version
回显信息如下,则表示安装完成。
enca 1.19
Features: -librecode-interface +iconv-interface +external-converter +language-detection +locale-alias +target-charset-auto +E
NCAOPT
Copyright (C) 2000-2005 David Necas (Yeti) (<yeti@physics.muni.cz>),
2005 Zuxy Meng (<zuxy.meng@gmail.com>).
Enca is free software; it can be copied and/or modified under the terms of
version 2 of GNU General Public License, run `enca --license' to see the full
license text. There is NO WARRANTY; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.