Could anyone kindly help me out what\'s wrong with the gcc when I am trying to install readline module for my newly installed python2.7 in the CentOS server?
gcc
on Ubuntu
sudo apt-get install python-setuptools python-dev ncurses-dev
readline is bundled with the Python module and it attempts to build it for you, but you'll see this error display if your system was unable to complete the build. In my case, patch
was missing from the system. yum install patch
solved it for me.