Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make not found with Dockerfile and centos:7 image

I have a very basic Dockerfile which uses FROM centos:7, then downloads Python-2.7.9.tar.xz, and attempts to ./configure && make && make altinstall.

I get the following error upon make:

creating Makefile
/bin/sh: make: command not found
The command '/bin/sh -c cd /root/Python-2.7.9 && ./configure -- prefix=/usr/local && make && make altinstall' returned a non-zero code: 127

I've installing the following libs prior to running make

yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel xz-libs gcc g++ build-essential kernel-headers kernel-devel

Yet error still persists. How can I resolve this?

like image 951
Sam Hammamy Avatar asked Aug 14 '15 19:08

Sam Hammamy


People also ask

Does CentOS 7 support Docker?

OS requirementsTo install Docker Engine, you need a maintained version of CentOS 7, CentOS 8 (stream), or CentOS 9 (stream). Archived versions aren't supported or tested. The centos-extras repository must be enabled. This repository is enabled by default, but if you have disabled it, you need to re-enable it.

Can we create Dockerfile from Docker image?

If we have images from the eariler build stages, we can reproduce a Dockerfile for each of those, but in this case, all we had was the final build. But regardless, we have still successfully reproduced a useful Dockerfile from a Docker image.


1 Answers

A simple RUN yum -y install make solved the problem

like image 171
Sam Hammamy Avatar answered Oct 05 '22 05:10

Sam Hammamy