RaghavBhardwaj / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 1 forks source link

make install fails when path has spaces #1457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start with a cygwin install on a Windows 7 machine
2. Build and install leptonica from source
3. Run ./autogen.sh
4. Run ./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include 
5. Run make
6. Run make install

What is the expected output? What do you see instead?

I am seeing this including the error message "/bin/sh: /cygdrive/c/Program: No 
such file or directory" toward the bottom. The directory where I am trying to 
build has a space in it:

Making install in ccutil
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
make[3]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
 /usr/bin/mkdir -p '/usr/local/include/tesseract'
 /usr/bin/install -c -m 644 basedir.h errcode.h fileerr.h genericvector.h helpers.h host.h memry.h ndminx.h params.h ocrclass.h platform.h serialis.h strngs.h tesscallback.h unichar.h unicharmap.h unicharset.h '/usr/local/include/tesseract'
make[3]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccutil'
Making install in viewer
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/viewer'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/viewer'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/viewer'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/viewer'
Making install in cutil
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cutil'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cutil'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cutil'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cutil'
Making install in opencl
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/opencl'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/opencl'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/opencl'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/opencl'
Making install in ccstruct
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccstruct'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccstruct'
 /usr/bin/mkdir -p '/usr/local/include/tesseract'
 /usr/bin/install -c -m 644 publictypes.h '/usr/local/include/tesseract'
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccstruct'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccstruct'
Making install in dict
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/dict'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/dict'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/dict'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/dict'
Making install in classify
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/classify'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/classify'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/classify'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/classify'
Making install in wordrec
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/wordrec'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/wordrec'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/wordrec'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/wordrec'
Making install in neural_networks/runtime
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/neural_networks/runtim
e'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/neural_networks/runtim
e'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/neural_networks/runtim
e'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/neural_networks/runtim
e'
Making install in textord
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/textord'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/textord'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/textord'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/textord'
Making install in cube
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cube'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cube'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cube'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/cube'
Making install in ccmain
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccmain'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccmain'
 /usr/bin/mkdir -p '/usr/local/include/tesseract'
 /usr/bin/install -c -m 644 thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h osdetect.h '/usr/local/include/tesseract'
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccmain'
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/ccmain'
Making install in api
make[1]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/api'
make[2]: Entering directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/api'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libtesseract.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libtesseract.lai 
/usr/local/lib/libtesseract.la
libtool: install: /usr/bin/install -c .libs/libtesseract.a 
/usr/local/lib/libtesseract.a
libtool: install: chmod 644 /usr/local/lib/libtesseract.a
libtool: install: ranlib /usr/local/lib/libtesseract.a
/bin/sh: /cygdrive/c/Program: No such file or directory
Makefile:476: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 127
make[2]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/api'
Makefile:801: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/cygdrive/c/Program Files 
(x86)/Tesseract-OCR/tesseract-3.03/tesseract-ocr-3.03-rc1/api'
Makefile:468: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

What version of the product are you using? On what operating system?

Tesseract 3.03 ; Win 7; cygwin 

Please provide any additional information below.

Original issue reported on code.google.com by izavo...@gmail.com on 20 Apr 2015 at 3:55

GoogleCodeExporter commented 9 years ago
IMO This not and tesseract issue. Tesseract by default use default path for 
installation, and cygwin and its tools should take care about using spaces (or 
escapeing) them.

Original comment by zde...@gmail.com on 21 Apr 2015 at 12:11