Editing
OpenCC
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Installation == Install [https://github.com/BYVoid/OpenCC OpenCC] on Centos7 # {{kbd | key=<nowiki>git clone https://github.com/BYVoid/OpenCC.git --depth 1</nowiki>}} # Install GCC from repository {{kbd | key=<nowiki>sudo yum -y install gcc</nowiki>}}<ref>[https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/ How To Install GCC on CentOS 7 | LinuxHostSupport]</ref> #* Verify the version of gcc because gcc 4.6 is required. {{kbd | key=<nowiki>gcc --version</nowiki>}} # Install [https://cmake.org/ CMake] from repository {{kbd | key=<nowiki>sudo yum -y install cmake</nowiki>}} #* Verify the installation of CMake: Input {{kbd | key=<nowiki>cmake--version</nowiki>}} Expected result are as the following:<pre>cmake version 2.8.12.2</pre> # Install [https://www.gnu.org/software/make/ Make] from repository {{kbd | key=<nowiki>sudo yum -y install make</nowiki>}} #* Verify the installation of Make: Input {{kbd | key=<nowiki>make--version</nowiki>}} Expected result are as the following:<pre>GNU Make 3.82 ... </pre> # Install [http://www.doxygen.nl/ Doxygen] from repository {{kbd | key=<nowiki>sudo yum -y install doxygen</nowiki>}} #* Verify the installation of doxygen: Input {{kbd | key=<nowiki>doxygen--version</nowiki>}} Expected result are as the following:<pre>1.8.5</pre> # {{kbd | key=<nowiki>cd OpenCC</nowiki>}} # {{kbd | key=<nowiki>make</nowiki>}} # {{kbd | key=<nowiki>sudo make install</nowiki>}} # (optional) {{kbd | key=<nowiki>sudo ln -s /usr/lib/libopencc.so.2 /usr/lib64/libopencc.so.2</nowiki>}} To check if the opencc was installed successfully, run this command in your terminal: <pre> opencc --version </pre> Expected result are as the following. Notice the version number may not be the same with yours. <pre> Open Chinese Convert (OpenCC) Command Line Tool Version: 1.0.5 </pre>
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information