openssl
openssl problem
Dear fellows! i was using /usr/include/openssl/md5.h file in my c code on linux 7.2 i.e #include<openssl/md5.h> now i have installed linux 7.3, now could not found the openssl folder in /usr/include also i was using compilation command i.e. gcc test.c -lcrypto -lssl -o test now i got error when i use this command error> not found -lcrypto not found -lssl it is amaizing that these things were ok in linux 7.2 but not working in linux 7.3 please help me how to get back openssl folder in my /usr/include and also where these -lcrypto and -lssl went when i switched from linux 7.2 to linux 7.3 someone told me to install openssl-0.9.6/7.tar.gz but still my problem has not been solved i will be very thank full to you. Thank you in anticipation. |
If you installed openssl from the SuSE rpm, you would need to install openssl-devel as well to have the files you require.
If you have installed from source and accepted the defaults, you may have found that files have gone to /usr/local/include or somewhere else. You could: cd / find . -name md5.h -print ...to find where the file is on your system, if anywhere. |
I assume Linux 7.3 means RedHat. I have a stock RedHat 7.3 system and here is what you should have..
[david@www david]$ locate include/openssl /usr/include/openssl /usr/include/openssl/asn1_mac.h /usr/include/openssl/asn1.h /usr/include/openssl/blowfish.h /usr/include/openssl/bio.h /usr/include/openssl/buffer.h /usr/include/openssl/bn.h /usr/include/openssl/conf_api.h /usr/include/openssl/cast.h /usr/include/openssl/comp.h /usr/include/openssl/conf.h /usr/include/openssl/opensslconf.h /usr/include/openssl/crypto.h /usr/include/openssl/des.h /usr/include/openssl/dh.h /usr/include/openssl/dsa.h /usr/include/openssl/dso.h /usr/include/openssl/e_os.h /usr/include/openssl/e_os2.h /usr/include/openssl/ebcdic.h /usr/include/openssl/engine.h /usr/include/openssl/err.h /usr/include/openssl/evp.h /usr/include/openssl/hmac.h /usr/include/openssl/lhash.h /usr/include/openssl/md2.h /usr/include/openssl/md4.h /usr/include/openssl/md5.h /usr/include/openssl/obj_mac.h /usr/include/openssl/objects.h /usr/include/openssl/opensslv.h /usr/include/openssl/pem.h /usr/include/openssl/pem2.h /usr/include/openssl/pkcs12.h /usr/include/openssl/pkcs7.h /usr/include/openssl/rand.h /usr/include/openssl/rc2.h /usr/include/openssl/rc4.h /usr/include/openssl/ripemd.h /usr/include/openssl/rsa.h /usr/include/openssl/safestack.h /usr/include/openssl/sha.h /usr/include/openssl/ssl.h /usr/include/openssl/ssl2.h /usr/include/openssl/ssl23.h /usr/include/openssl/ssl3.h /usr/include/openssl/stack.h /usr/include/openssl/symhacks.h /usr/include/openssl/tls1.h /usr/include/openssl/tmdiff.h /usr/include/openssl/txt_db.h /usr/include/openssl/x509.h /usr/include/openssl/x509_vfy.h /usr/include/openssl/x509v3.h |
All times are GMT -5. The time now is 04:38 PM. |