Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

gcc is complaining with the following when trying to sudo easy_install readline:

Running readline-6.2.4/ -q bdist_egg --dist-dir /tmp/easy_install-JEUNX3/readline-6.2.4/egg-dist-tmp-_THoHR
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1

Am I missing some RPM dependency for a happy build environment?

Linux vbweb 3.2.22-35.60.amzn1.x86_64


share|improve this question
Doesn't Amazon provide a readline package?! I swear, the more I hear about Amazon's AMIs, the less I like them. – Michael Hampton Oct 19 '12 at 14:58
up vote 1 down vote accepted

You need to install the ncurses development package: yum install libncurses-dev.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.