Tesseract: "make install" ends with some errors

Created on 13 Dec 2016  Â·  12Comments  Â·  Source: tesseract-ocr/tesseract

I wanted to update my working tesseract (version from August) by pulling and compiling the latest version but make install ends with some errors:

$ sudo make install
...
Makefile:333: recipe for target 'install-dataDATA' failed
make[3]: *** [install-dataDATA] Error 1
make[3]: Leaving directory '/work/usr/local/src/tesseract/tessdata/configs'
Makefile:403: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/work/usr/local/src/tesseract/tessdata/configs'
Makefile:461: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/work/usr/local/src/tesseract/tessdata'
Makefile:483: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

$ tesseract --version

tesseract: error while loading shared libraries: libtesseract.so.4: cannot open shared object file: No such file or directory

Full output see http://dpaste.com/1AMP4MA.txt

Please can you help?

Most helpful comment

this is my standard procedure:

make clean
git pull
./autogen.sh
./configure --enable-debug
make
sudo make install

All 12 comments

I think it was due to a version conflict on my debian 8 with a packaged-tesseract. After removal of the packaged tesseract, tesseract as such appears to work (but make install errors remain).

install-dataDATA
This indicates problem with configuration. How did you configured build?

this is my standard procedure:

make clean
git pull
./autogen.sh
./configure --enable-debug
make
sudo make install

Extract from your build protocol:

make[3]: Entering directory '/work/usr/local/src/tesseract/tessdata/configs'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/tessdata/configs'
 /usr/bin/install -c -m 644 inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr tsv linebox pdf rebox strokewidth bigram txt '/usr/local/share/tessdata/configs'
/usr/bin/install: „inter“ und „/usr/local/share/tessdata/configs/inter“ sind die gleiche Datei

So you are building in /work/usr/local/src/tesseract and want to install to /usr/local. The installer says that /work/usr/local/src/tesseract/tessdata/configs/inter and /usr/local/share/tessdata/configs/inter are the same file and fails therefore. Do you have a symbolic link somewhere (either in your build directory or in the installation directory) which connects both directory hierarchies?

Yeah, you are right. I _had_ indeed such a link when I build the last version !
I will now re-compile and report here, and close, if it solved.

Nevertheless, perhaps the "make" could be improved to catch (capture?) such a user mistake.

Well, make did catch that mistake and said that the installation failed because for some files source and destination were identical ("sind die gleiche Datei").

I reported that issue, and close it now. Issue solved by removing my softlink for tessdata.

root@scube014:~/qingy-fork-master/src/libraries# make clean
Making clean in libraries
/bin/bash: line 20: cd: libraries: No such file or directory
make: * [clean-recursive] Error 1
pls find this problem .

similar problem with my alsa make install

make install
if [ -L /usr/include/sound ]; then \
rm -f /usr/include/sound; \
ln -sf /media/ss/DATA/SOFTWARE/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/include/sound /usr/include/sound; \
else \
rm -rf /usr/include/sound; \
install -d -m 755 -g root -o root /usr/include/sound; \
for f in include/sound/.h; do \
install -m 644 -g root -o root $f /usr/include/sound; \
done \
fi
install: cannot stat 'include/sound/
.h': No such file or directory
Makefile:188: recipe for target 'install-headers' failed
make: * [install-headers] Error 1

I got the same error.
just preceded sudo to make install
then boom

@vee-varun : can you be more specific? What kind of error you get, what version of code you used, of etc?

I have same errors.
Not "make install", but "sudo make install" in terminal.
Then i have solved.

Was this page helpful?
0 / 5 - 0 ratings