标签:ret oca mpi arc git 生效 jpeg sha oge
yum install autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel
wget https://github.com/tesseract-ocr/tesseract/archive/4.1.0.tar.gz
wget http://www.leptonica.org/source/leptonica-1.74.4.tar.gz
tar -xzvf leptonica-1.74.4.tar.gz
cd leptonica-1.74.4
./configure --prefix=/usr/local/leptonica
make
sudo make install
vim /etc/profile
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/leptonica/lib/pkgconfig
export PKG_CONFIG_PATH
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/leptonica/include/leptonica
export CPLUS_INCLUDE_PATH
C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/leptonica/include/leptonica
export C_INCLUDE_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/leptonica/lib
export LD_LIBRARY_PATH
LIBRARY_PATH=$LIBRARY_PATH:/usr/local/leptonica/lib
export LIBRARY_PATH
LIBLEPT_HEADERSDIR=/usr/local/leptonica/include/leptonica
export LIBLEPT_HEADERSDIR
source /etc/profile
tar -xzvf tesseract-4.1.0.tar.gz
cd tesseract-4.1.0
./autogen.sh
./configure --prefix=/usr/local/tesseract
make
sudo make install
checking for g++... no
checking for clang++... no
checking whether the C++ compiler works... no
configure: error: in `/usr/mydownload/tesseract-4.1.0‘:
configure: error: C++ compiler cannot create executables
See `config.log‘ for more details
yum install gcc gcc-c++
vim /etc/profile
PATH=$PATH:/usr/local/tesseract/bin
export PATH
export TESSDATA_PREFIX="/usr/local/tesseract/share/tessdata"
export PATH=$PATH:$TESSDATA_PREFIX
source /etc/profile
tesseract -v
标签:ret oca mpi arc git 生效 jpeg sha oge
原文地址:https://www.cnblogs.com/SetariaViridis/p/14858523.html