Skip to content

readline extension was not compiled, installed pyenv by Linuxbrew on Ubuntu 16 #1479

@mrchi

Description

@mrchi

Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.

Prerequisite

  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • Platform information (e.g. Ubuntu Linux 16.04): Ubuntu Linux 16.04 LTS
  • OS architecture (e.g. amd64): amd64
  • pyenv version: 1.2.15
  • Python version: 3.7.5
  • C Compiler information (e.g. gcc 7.3): 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
  • Please attach verbose build log as gist here

Hi, I'm using Ubuntu 16.04 LTS, I installed pyenv by Linuxbrew. When I tried to install Python 3.7.5, I got this:

Downloading Python-3.7.5.tar.xz...
-> https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tar.xz
Installing Python-3.7.5...
python-build: use readline from homebrew
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
Installed Python-3.7.5 to /home/chi/.pyenv/versions/3.7.5

Python installed by pyenv DO lack readline.

But both Linuxbrew and apt-tool already installed readline:

$ sudo apt list libreadline-dev
libreadline-dev/xenial,now 6.3-8ubuntu2 amd64 [installed]
$ brew info readline
readline: stable 8.0.1 (bottled)
Library for command-line editing
https://tiswww.case.edu/php/chet/readline/rltop.html
/home/linuxbrew/.linuxbrew/Cellar/readline/8.0.1 (50 files, 1.9MB) *
  Poured from bottle on 2019-12-01 at 01:20:43
From: https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/readline.rb
==> Dependencies
Required: ncurses ✔
==> Analytics
install: 19,272 (30 days), 48,452 (90 days), 118,711 (365 days)
install-on-request: 91 (30 days), 263 (90 days), 885 (365 days)
build-error: 0 (30 days)

So I'm confused if pyenv really uses readline from homebrew?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions