tesseract-ocr / tesstrain

Train Tesseract LSTM with make
Apache License 2.0
625 stars 180 forks source link

[question] make failure on google colab #166

Closed lannt-xyz closed 4 years ago

lannt-xyz commented 4 years ago

The error has occurred when I run the command below. I don't know the reason that the error occurred. Please help.

cd /content/tesstrain \
  && sudo make leptonica tesseract

output:

...
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/bin'
  /bin/bash ../../libtool   --mode=install /usr/bin/install -c tesseract '/usr/bin'
libtool: install: /usr/bin/install -c .libs/tesseract /usr/bin/tesseract
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/src/api'
make[2]: Leaving directory '/content/tesstrain/tesseract-4.1.0/src/api'
Making install in .
make[2]: Entering directory '/content/tesstrain/tesseract-4.1.0'
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/lib/pkgconfig'
 /usr/bin/install -c -m 644 tesseract.pc '/usr/lib/pkgconfig'
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0'
make[2]: Leaving directory '/content/tesstrain/tesseract-4.1.0'
Making install in tessdata
make[2]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata'
Making install in configs
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata/configs'
make[4]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata/configs'
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/tessdata/configs'
 /usr/bin/install -c -m 644 inter makebox box.train unlv ambigs.train lstm.train lstmdebug api_config kannada box.train.stderr quiet logfile digits get.images lstmbox wordstrbox alto hocr pdf tsv txt linebox rebox strokewidth bigram '/usr/share/tessdata/configs'
make[4]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata/configs'
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata/configs'
Making install in tessconfigs
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata/tessconfigs'
make[4]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata/tessconfigs'
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/tessdata/tessconfigs'
 /usr/bin/install -c -m 644 batch batch.nochop nobatch matdemo segdemo msdemo '/usr/share/tessdata/tessconfigs'
make[4]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata/tessconfigs'
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata/tessconfigs'
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata'
make[4]: Entering directory '/content/tesstrain/tesseract-4.1.0/tessdata'
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/share/tessdata'
 /usr/bin/install -c -m 644 pdf.ttf '/usr/share/tessdata'
make[4]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata'
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata'
make[2]: Leaving directory '/content/tesstrain/tesseract-4.1.0/tessdata'
Making install in doc
make[2]: Entering directory '/content/tesstrain/tesseract-4.1.0/doc'
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0/doc'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/doc'
make[2]: Leaving directory '/content/tesstrain/tesseract-4.1.0/doc'
Making install in unittest
make[2]: Entering directory '/content/tesstrain/tesseract-4.1.0/unittest'
make[3]: Entering directory '/content/tesstrain/tesseract-4.1.0/unittest'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/content/tesstrain/tesseract-4.1.0/unittest'
make[2]: Leaving directory '/content/tesstrain/tesseract-4.1.0/unittest'
make[1]: Leaving directory '/content/tesstrain/tesseract-4.1.0'
Makefile:307: recipe for target 'tesseract.built' failed
make: *** [tesseract.built] Error 2