Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyenv - Missing the GNU readline lib warning ubuntu 18.04

How can I resolve this warning while installing specific versions of python

Output (minimal):

Installing Python-3.5.5...
python-build: use readline from homebrew
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?

Things I have tried:

  • I have uninstalled and reinstall libreadline-dev and it's alternative libedit-dev, as seen here
  • also installed and updated homebrew, then installed readline and xz as dictated in the above link also.
like image 512
oyeyipo Avatar asked Feb 24 '26 15:02

oyeyipo


2 Answers

sudo apt install libreadline-dev

This is specific for the readline. But if you're install PyEnv, you can refer to this link too.

like image 54
noelvictorino Avatar answered Feb 27 '26 03:02

noelvictorino


There seems to be some mismatch between the readline brew installs and what pyenv expects. The readline from apt seems to do its job, so just uninstall readline from brew. NB. readline is a dependency for pyenv, but it seems it can be removed safely.

brew uninstall --ignore-dependencies readline

** The typo in the command has been fixed.

like image 43
Hielke Walinga Avatar answered Feb 27 '26 03:02

Hielke Walinga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!