Monday, August 15, 2016

LinkChecker

Install Linckecker

# wget --no-check-certificate https://pypi.python.org/packages/source/L/LinkChecker/LinkChecker-9.3.tar.gz


Got 2 way to install

  • Manual installation where you download the source and initiate install yourself
  • Auto install Linckecker by using pip


Manual Installation
For Centos/RHEL 6 -> enable Software Collection to install Python 2.7
For Centos/RHEL 7 -> just use yum install python

Enable Software collection
RHEL -> # subscription-manager repos --enable rhel-server-rhscl-6-rpms
Centos -> # yum install centos-release-scl

Then install python27
# yum install python27
You need to enable it in order to use
# scl enable python27 bash

Install the remain package needed to run
# yum install gcc python-requests qt-devel

On How to install, you can read the doc at LinkChecker-9.3/doc/install.txt

# make -C doc/html
# python setup.py sdist --manifest-only
# python setup.py build

# python setup.py install

You can test run by using this command
# linkchecker www.google.com -Fcsv//tmp/google.csv


Troubleshooting
If you encounter this error “This program requires Python requests 2.2.0 or later” when you test run.
Downgrade the request version as Linkcheck 9.3 having bug with request ver 10
Downgrade using pip

# yum install python27-python-pip
# pip install requests==2.9.2



Auto Installation

# yum install gcc qt-devel

Enable software collection if you using Centos/RHEL 6 and install python27 & python27-python-pip
# yum install python27-python-pip python27

Then install Linkchecker using pip
# scl enable python27 bash
# pip install LinkChecker

No comments:

Post a Comment