化学分子式识别 osra 环境安装

cp * /usr/local/
cd /usr/local/
tar -zxvf cmake-2.8.11.1.tar.gz 
tar -zxvf openbabel-2.3.2.tar.gz 
tar -xvf GraphicsMagick-1.3.12.tar.bz2 
tar -zxvf tclap-1.2.1.tar.gz 
tar -zxvf potrace-1.11.tar.gz 
tar -zxvf ocrad-0.21.tar.gz 
tar -zxvf gocr-0.50pre-patched.tgz 
tar -zxvf osra-2.0.0.tgz 


mkdir potrace gocr ocrad GraphicsMagick tclap


cd cmake-2.8.11.1
./configure
make 
make install


cd bin
./cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/  /usr/local/openbabel-2.3.2 
make 
make install
cd -


cd /usr/local/tclap-1.2.1
./configure 
make && make install
cd -


cd gocr-0.50pre-patched
./configure --prefix=/usr/local/
make clean libs all && make install
cd -


cd potrace-1.11
./configure --prefix=/usr/local/ --with-libpotrace
make && make install
cd -


cd ocrad-0.21/
./configure --prefix=/usr/local/
make && make install
cd -


cd GraphicsMagick-1.3.12
yum install ghostscript
./configure --prefix=/usr/local/ --with-modules --enable-shared --with-gslib=yes
make clean all
make install
cd -


cd osra-2.0.0
./configure --with-tclap-include=/usr/local/include/tclap --with-potrace-include=/usr/local/include/potrace/ --with-potrace-lib=/usr/local/lib --with-gocr-include=/usr/local/include/gocr --with-gocr-lib=/usr/local/lib --with-ocrad-include=/usr/local/include --with-ocrad-lib=/usr/local/lib --with-graphicsmagick-include=/usr/local/include/GraphicsMagick --with-graphicsmagick-lib=/usr/local/lib 
make all install

猜你喜欢

转载自blog.csdn.net/cxf7394373/article/details/24699679