Linux compile installation using Opencc__linux

Source: Internet
Author: User

1, download the package address (i downloaded is opencc-1.0.4.tar.gz):

Https://bintray.com/package/files/byvoid/opencc/OpenCC

2, into the tar.gz directory, the command line decompression:

TAR-XZVF opencc-1.0.4.tar.gz

3, compile (need tools CMake, gcc (4.6) gcc-v view gcc version, Doxygen)

CD opencc-1.0.4/

Make

4. Installation

sudo make install

5. Use

Opencc-i <input-file>-o output-file>-C <config-file>

For example: Opencc-i wiki.zh.txt-o wiki.zh.simp.txt-c T2s.json

Note: The 3rd step may have various problems, and the installation of other tools is not successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.