Redhat – Error on installing Curl in Red Hat

curlredhat

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

 ../lib/.libs/libcurl.so: 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?

Best Answer

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.

Related Topic