Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Got this error when i installed curl in my Red Hat Enterprise Linux Server

 ../lib/.libs/ undefined reference to `ERR_remove_thread_state'
 collect2: ld returned 1 exit status
 make[2]: *** [curl] Error 1
 make[2]: Leaving directory `/root/src/curl-7.26.0/src'
 make[1]: *** [install] Error 2
 make[1]: Leaving directory `/root/src/curl-7.26.0/src'
 make: *** [install-recursive] Error 1

Any idea on how to get this fixed?

share|improve this question
What's wrong with yum install curl? – Ignacio Vazquez-Abrams May 27 '12 at 3:47
I am not familiar with yum so i have to google it, so i would know how it is done. – user1149244 May 27 '12 at 9:45

The linker cannot find the library containing ERR_remove_thread_state, which I believe is supplied by openssl. Does your command line (or makefile) point to the openssl libraries (assuming the appropriate version is installed in the first place)?

As the comment suggests, it might be easier to use yum to install pre-compiled software and to resolve any dependencies. There might be a case for doing that (using yum to identify and resolve dependencies) even if you then wish to build it from source yourself.

share|improve this answer
I run yum command through SSH, it told me to run rhn_register, i followed the step by step instruction but it wasn't successful at all. It asked for username and password which i don't know. I entered the root access but it says invalid credentials. Here is the output i got from the terminal [link] [/link] – user1149244 May 27 '12 at 10:07
You need to run rhn_register in order to associate your system with the account that will (or should) have been set up by whoever bought your copy of RHEL 5: your employer, perhaps? You can use either a username and password or a special key, but you will need to discover these from whoever looks after the RHN account for your company. If you bought the licence yourself, go back and read all the email that came with it! – ramruma May 27 '12 at 10:50
I am trying to contact the person who set up the server before. I wish to here a response from him. – user1149244 May 27 '12 at 11:56

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.