Skip to content
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

Building Docker image fails with no acceptable C compiler found #23

Open
0xd3e opened this issue Jul 14, 2020 · 4 comments
Open

Building Docker image fails with no acceptable C compiler found #23

0xd3e opened this issue Jul 14, 2020 · 4 comments

Comments

@0xd3e
Copy link

0xd3e commented Jul 14, 2020

I've tried building the Docker image, which failed with the following message. This happens during the step where the Python requirements are installed.

configure: error: in `/tmp/pip-build-mmeastyv/gevent/deps/libev':
configure: error: no acceptable C compiler found in $PATH

Attached you can find the full log output from the beginning of the step.
I guess this is because the newer Ubuntu Docker images are smaller than before. I'm sure they dropped everything from the image that is not needed.

I'm currently trying to fix this issue and prepare a pull request afterwards.

docker_build.log

@countfak
Copy link

I had the same issue, I tried with @DanielTrautmann 's Dockerfile, and I was able to get past step 2 of the Docker installation guide.

Anyway, I'm now getting this error after launching the command from step 3:

could not connect to server: Connection refused
        Is the server running on host "localhost" (127.0.0.1) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?

Also, step 4 doesn't look so promising, as mentioned in #25 the link to get FTP credentials is broken, and I'm not even able to reach http://data.cgiar-csi.org/

@0xd3e
Copy link
Author

0xd3e commented Oct 23, 2020

@marcofacheris Regarding step 3, there might be an issue with your configuration. You may have to adapt the database parameters in ops_settings.yml.

I did this by mounting the file when the container is started via docker-compose.

---
version: '3.8'
services:
  postgis:
    image: kartoza/postgis:10.0-2.4
  oes:
    image: YOUR_IMAGE_NAME
    volumes:
      - ./config/ops_settings.yml:/deploy/app/openelevationservice/server/ops_settings.yml
      - ./tiles:/deploy/app/tiles
    ports:
      - "5000:5000"
    depends_on:
      - postgis

The issue you have in step 4 are a bit more serious. I can't connect to the website either and I'm pretty sure this is where I downloaded the file. So I don't know how to get them now.

@countfak
Copy link

@DanielTrautmann thank you. I will wait for news about http://data.cgiar-csi.org/ and step 4 in general.

@stefanocudini
Copy link

stefanocudini commented Oct 28, 2022

solution, add few lines

RUN apt-get install -y \
	build-essential \
	g++ \
	locales git python3-ven

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

Successfully merging a pull request may close this issue.

3 participants