Another "gotcha" you might need to watch out for - sometimes you need to install the "developer" version of a library, in order to get the header files that other installers are going to need later. For example, "yum install openssl-devel" (same for any other libs you may depend on).
Thank you! yes it did complain about headers fles like it can't find err.h file. To have it resolved I created a symbolic like on where look for .h files as following. Though I don't have .h file errors any more I had other issues (as mentioned in one the reply above)
cd /usr/local/include
ln -s /usr/local/ssl/include/openssl