Pedro Gonçalves
Pedro Gonçalves

Reputation: 57

make: *** [Makefile:1280: install] Error 1

OS Ubuntu 20.04.3 Python intalation 3.10.2 error: make: *** [Makefile:1280: install] Erro 1 after sudo make install make: latest version what should I do?

Upvotes: 5

Views: 43645

Answers (2)

Mike Q
Mike Q

Reputation: 7327

This is the full set of steps which worked for me. to install

# python3 --version
Python 3.10.4

In Ubuntu 21.10:

$ sudo apt install build-essential
$ sudo apt install libssl-dev libffi-dev libncurses5-dev zlib1g zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev make gcc
$ cd /to/extracted/folder
$ ./configure
$ make
$ sudo make install

Common errors if you do not follow this process:

Critical dependencies were missing:

[Makefile:1280: install] Erro 1

Ran 'make' before all dependencies were met but it didn't fail to compile (have to install all packages then make clean then make):

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting <package>
  Could not fetch URL https://pypi.python.org/simple/<package>/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement <package> (from versions: )
No matching distribution found for <package>

Upvotes: 7

rzlvmp
rzlvmp

Reputation: 9364

You have to install dependencies (libraries) to be able build python from source code:

sudo apt install libssl-dev libffi-dev libncurses5-dev zlib1g zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev make gcc

Upvotes: 8

Related Questions