In order to build the chardet python modue, is required libchardet library.
When you build a chardet module, you will need chardet-config of libcharset. If the path of chardet-config does not include the PATH environment, please add a chardet-config directory in the PATH environment variable.
[user@host chardet]$ # if chardet-config is located in /opt/libchardet-1.0.5/bin
[user@host chardet]$ PATH="$PATH:/opt/libchardet-1.0.6/bin" make build
[user@host chardet]$ # OR
[user@host chardet]$ PATH="$PATH:/opt/libchardet-1.0.6/bin" python setup.py build
And libchardet 1.0.6 or after, UTF-8 and UTF-8-SIG can be distinguished.
[user@host ~]$ make install
- Build only
[user@host ~]$ make build
- Build test
[user@host ~]$ make test
- Clean build
[user@host ~]$ make clean
- If your python path is not /usr/bin/python
[user@host ~]$ make PYTHON=/usr/bin/python3 [build|install|test]
- build source package
[user@host ~]$ make dist