Skip to content

bits/libc-header-start.h: No such file or directory #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NicoLivesey opened this issue Jul 10, 2018 · 3 comments
Closed

bits/libc-header-start.h: No such file or directory #130

NicoLivesey opened this issue Jul 10, 2018 · 3 comments

Comments

@NicoLivesey
Copy link

Hi everybody, I apologize in advance for the potential duplicate since there is already a huge amount of issues related to environment variables (I assume my problem is related to this) but I can't find one similar to mine.

I work on ubuntu 18.04
tesseract -v

tesseract 4.0.0-beta.1
 leptonica-1.75.3
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0

 Found AVX2
 Found AVX
 Found SSE

After cloning master:

CPPFLAGS=-I/usr/include pip install .

In file included from /home/nicolas/anaconda3/include/python3.6m/Python.h:11:0,
                     from tesserocr.cpp:26:
    /usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
     #include <bits/libc-header-start.h>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
@NicoLivesey
Copy link
Author

Ok, fixed this by doing the following (sorry my machine is very young):
sudo apt-get install gcc-multilib g++-multilib

Now I have this:

tesserocr.cpp:601:10: fatal error: tesseract/publictypes.h: No such file or directory
     #include "tesseract/publictypes.h"
              ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

I will try to keep this issue updated since it is not completely solved for the moment.

@NicoLivesey
Copy link
Author

Fixed this with this:
sudo apt-get install libtesseract-dev

We are here now:

    /home/nicolas/anaconda3/compiler_compat/ld: cannot find -llept
    /home/nicolas/anaconda3/compiler_compat/ld: cannot find -ltesseract
    collect2: error: ld returned 1 exit status
    error: command 'g++' failed with exit status 1

@0xabdoulaye
Copy link

You Can solve it by installing this :
└─# sudo apt-get install gcc-multilib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants