[PYTHON] grip environment construction onCentOS6.5

grip is "git hub like mark down renderer service". It launches a web service that displays a clean copy of your github-compliant markdown document. Thank you joeyespo. https://github.com/joeyespo/grip The current latest version seems to be version 2.0.0 The installation method and usage seems to be README driven development, and it seems that it is exhausted with README.md of the above URL. So, if you can use pip, please go there. I was using CentOS and there was no pip in the first place, so I followed only that part.

Python environment construction on CentOS6.5

I can't use pip suddenly. It is delicate whether it should be done with root privileges, but I tried it with root privileges. I wonder if this is enough for general users.

wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install pip

Installing the grip and browsing the README.md

It seems that the installation should not have been done with root privileges.

sudo pip install grip

Start-up.

grip 3000

This will open 127.0.0.1:3000, so it's safe to use port forwarding with ssh.

sudo ssh -L80:127.0.0.1:3000 user@server

In this way, if you access the URL http: //localhost/README.md, the README.md on the server will be rendered.

troubles as of 2014May(version 2.0.0)

The line feed code of the setting file is the Windows version

Even though it is the latest version, I suddenly stepped on this https://github.com/joeyespo/grip/issues/36

Seemed to be fixed by manually removing Windows line endings from the file .. I deleted \ r as follows.

cp /usr/lib/python2.6/site-packages/grip/settings.py backup.txt 
tr --delete '\r' < backup.txt > /usr/lib/python2.6/site-packages/grip/settings.py

Create a cache file without permission

Perhaps this means installing with root privileges.

OSError: [Errno 13] Permission denied: '/usr/var'

Abuse of root privileges because it can't be helped.

sudo mkdir /usr/var
sudo chmod 777 /usr/var

Recommended Posts

grip environment construction onCentOS6.5
Django environment construction
Emacs-based environment construction
Linux environment construction
Python environment construction
django environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Python environment construction
Golang environment construction
python environment construction
Word2vec environment construction
Django project environment construction
python windows environment construction
Go language environment construction
ConoHa environment construction memo
homebrew python environment construction
PyData related environment construction
Anaconda-4.2.0-python3 environment construction (Mac)
Python development environment construction
YOLO v4 environment construction ①
pyenv + fish environment construction
python2.7 development environment construction
BigGorilla environment construction memo
Anaconda environment construction memo
Golang environment construction [goenv]
Mac environment construction Python
Pyxel environment construction (Mac)
Python environment construction @ Win7
Python + Anaconda + Pycharm environment construction
About Linux environment construction (CentOS)
PyTorch C ++ (LibTorch) environment construction
Anaconda environment construction on CentOS7
First LAMP environment construction (Linux)
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
[Memo] Construction of cygwin environment
ML environment construction with Miniconda
Python environment construction For Mac
Anaconda3 python environment construction procedure
Docker + Django + React environment construction
Anaconda3 × Pycharm environment construction memo
Python3 environment construction (for beginners)
Python environment construction and TensorFlow
NumPy and matplotlib environment construction
Machine learning environment construction macbook 2021
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Ubuntu14.04 + GPU + TensorFlow environment construction
[Tensorflow] Tensorflow environment construction on Windows 10
Environment construction, Build -Go edition-
django project development environment construction
Linux environment construction (on WSL environment)
Environment construction of python2 & 3 (OSX)
[MEMO] [Development environment construction] wine
Ansible environment construction For Mac
DL Laravel environment construction method (Linux)
Environment construction of python and opencv
Mac + Eclipse (PyDev) + Django environment construction
Python environment construction memo on Windows 10