CentOS7.1 full introduction to Retext5.0.2 installation

Source: Internet
Author: User
Original: pingyuan162Date: 2015-05-13Retext introduces the MarkDown editor in Linux. Official Introduction: ReTextisasimpleeditorthatreadsyourtextwithMarkDownorHTMLmarkupandsavesitasplaintext, HTML

Original: pingyuan162 Date: 2015-05-13

Retext introduction

MarkDown editor in Linux.

Official introduction:
ReTextIs a simple editor that reads your text with MarkDown or HTML markup and saves it as plain text, HTML or PDF.
It is written in Python using Qt libraries.

Download the installation package

Http://sourceforge.net/projects/retext/

This document downloads retext-5.0.2.tar.gz.

View README document
tar -zxvf ReText-5.0.2.tar.gzcd ReText-5.0.2vim README

According to the description of the README file, the following packages are required to run ReText:

  • Python-version 3.2 or higher
  • Pyqt5
  • Python-markups
  • Python-markdown-for Markdown language support
  • Python-docutils-for reStructuredText language support
  • Python-enchant-for spell checking support

Install the preceding package in sequence.

Install Python 3

The python3 package comes from the Nux Desktop repository. Configure the repository and install it through yum.

sudo rpm -ivh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpmsudo yum install python3 python3-devel python3-pip
Install PyQt5

PyQt5 requires a Qt5 package and a sip package. The Qt5 package can be installed from the epel repository yum.

Epel repository configuration
 sudo rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Qt5 package installation
sudo yum install qt5\*
Sip installation
  • 1. Download

Http://sourceforge.net/projects/pyqt/files/sip/

  • 2. Installation

    tar -zxvf sip-4.16.7.tar.gzcd sip-4.16.7python3 configure.pymakesudo make install
  • 3. possible problems and solutions

Siplib. c: 20: 20: Fatal error: Python. h: no file or directory

Cause: The Python 3 development kit is missing.

Solution:sudo yum install python3-devel

Install PyQt5
  • 1. Download

Http://sourceforge.net/projects/pyqt/files/PyQt5/

  • 2. Installation

    tar -zxvf PyQt-gpl-5.4.1.tar.gzcd PyQt-gpl-5.4.1python3 configure.py -q /usr/bin/qmake-qt5 -d /usr/lib64/python3.3/site-packages/ --sip /usr/bin/sipmakesudo make install
  • 3. check whether the installation is successful.

    python3>>> import PyQt5>>> help(PyQt5)
Install other dependent packages

Install by using python3-pip commands:

sudo python3-pip install markups sudo python3-pip install markdown sudo python3-pip install docutilssudo python3-pip install pyenchant
Install Retext
cd ReText-5.0.2sudo python3 setup.py install

After installation, enter retext in the terminal to run the program.

Related Article

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.