Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 969
  • Last Modified:

cannot get openvpn installed

ok
compiling openvpn :

checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... yes
configure: checking that OpenSSL Library is at least version 0.9.5...
checking for EVP_CIPHER_CTX_set_key_length... yes
configure: checking for OpenSSL SSL Library and Header files...
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: error: OpenSSL SSL headers not found.


openssl-devel-0.9.7a-20.2.i386.rpm ---> installed and many others


It needs SSL headers but what file has those ?
0
aot2002
Asked:
aot2002
  • 9
  • 8
1 Solution
 
rmharwoodCommented:
You need the entire OpenSSL package, either from www.openssl.org or a package (RPM, .deb, whatever) for your system.
0
 
rmharwoodCommented:
Uh.. sorry I didn't catch the bit that said you already had them!

ssl.h should be at /usr/include/openssl/ssl.h

You may need to specify the include path /usr/include/openssl when running  the configure script.
0
 
aot2002Author Commented:
./configure  --includedir=/usr/include/openssl

like this didnt work
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
rmharwoodCommented:
Does /usr/include/openssl exist and have about 62 files, including ssl.h?  Try checking config.log to see what it's doing and why it isn't finding the header file(s).
0
 
aot2002Author Commented:
ls /usr/include/openssl
aes.h       buffer.h    des_old.h  err.h       md4.h          ossl_typ.h  rc4.h        ssl3.h      ui_compat.h
asn1.h      cast.h      dh.h       evp.h       md5.h          pem2.h      ripemd.h     ssl.h       ui.h
asn1_mac.h  comp.h      dsa.h      hmac.h      objects.h      pem.h       rsa.h        stack.h     x509.h
asn1t.h     conf_api.h  dso.h      krb5_asn.h  obj_mac.h      pkcs12.h    safestack.h  symhacks.h  x509v3.h
bio.h       conf.h      ebcdic.h   kssl.h      ocsp.h         pkcs7.h     sha.h        tls1.h      x509_vfy.h
blowfish.h  crypto.h    engine.h   lhash.h     opensslconf.h  rand.h      ssl23.h      tmdiff.h
bn.h        des.h       e_os2.h    md2.h       opensslv.h     rc2.h       ssl2.h       txt_db.h



grep -i 'error' config.log
conftest.c:2: error: parse error before "me"
/usr/include/linux/errqueue.h:6: error: parse error before "__u32"
/usr/include/linux/errqueue.h:8: error: parse error before "ee_type"
/usr/include/linux/errqueue.h:9: error: parse error before "ee_code"
/usr/include/linux/errqueue.h:10: error: parse error before "ee_pad"
/usr/include/linux/errqueue.h:11: error: parse error before "ee_info"
/usr/include/linux/errqueue.h:12: error: parse error before "ee_data"
configure:6881: checking for strerror
/usr/include/openssl/kssl.h:134: error: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:136: error: parse error before '*' token
/usr/include/openssl/kssl.h:137: error: parse error before '}' token
/usr/include/openssl/kssl.h:149: error: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: error: parse error before '*' token
/usr/include/openssl/kssl.h:150: error: parse error before '*' token
/usr/include/openssl/kssl.h:151: error: parse error before '*' token
/usr/include/openssl/kssl.h:151: error: parse error before '*' token
/usr/include/openssl/kssl.h:152: error: parse error before '*' token
/usr/include/openssl/kssl.h:153: error: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: error: parse error before '*' token
/usr/include/openssl/kssl.h:155: error: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: error: parse error before '*' token
/usr/include/openssl/kssl.h:157: error: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: error: parse error before '*' token
/usr/include/openssl/kssl.h:159: error: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: error: parse error before '*' token
/usr/include/openssl/kssl.h:161: error: parse error before "context"
/usr/include/openssl/kssl.h:162: error: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: error: parse error before "context"
/usr/include/openssl/kssl.h:165: error: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: error: parse error before "atime"
/usr/include/openssl/kssl.h:167: error: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: error: parse error before '*' token
/usr/include/openssl/kssl.h:169: error: parse error before "enctype"
/usr/include/openssl/ssl.h:909: error: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: error: parse error before '}' token
| #define HAVE_STRERROR 1
| #define HAVE_STRERROR 1
configure:8705: error: OpenSSL SSL headers not found.
ac_cv_func_strerror=yes
#define HAVE_STRERROR 1
0
 
rmharwoodCommented:
I've tried running configure on my box which has the latest openssl-devel RPM and it works fine. Is there any chance you can upgrade the OpenSSL that you've got?
0
 
aot2002Author Commented:
openssl-devel-0.9.7a-20.2.i386.rpm
upgrade above this version ?
0
 
rmharwoodCommented:
Without having a thorough look through your config.out file our your system setup I don't know why it isn't working. There are security holes in earlier releases of OpenSSL anyway. The latest is 0.9.7d but I guess it depends on your distribution as to what is available.
0
 
aot2002Author Commented:
find / -name 'config.out'
[root@localhost openvpn-1.6.0]#
0
 
aot2002Author Commented:
ok where is this file ?
0
 
rmharwoodCommented:
Sorry, I meant config.log  !
(it's been a long day)
0
 
aot2002Author Commented:
http://aot.dynu.com/config.txt

i renamed it so you can view it in a browser
0
 
pjedmondCommented:
Try:

 ./configure  --includedir=/usr/include

The configure script says:

checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no

so i guess that openssl/ssl.h would then get you to the correct path?

Just a thought?
0
 
aot2002Author Commented:
ok cool thanks for sticking on this ive wasted days of time on it already
0
 
rmharwoodCommented:
For some reason it's looking for Kerberos (krb.h). I found another post online that mentioned Red Hat 9's SSL library is compiled with Kerberos support or something like that.

One work around I can think of is to add the following line to /usr/include/openssl/opensslconf.h

    #ifndef OPENSSL_NO_KRB5
    #define OPENSSL_NO_KRB5
    #endif

This should be inserted at the beginning of that file.

The other way around this is to install the krb5-devel package which should also install the krb5.h file.

I think this should fix it but please let me know either way.
0
 
aot2002Author Commented:
you da man
0
 
rmharwoodCommented:
I guess that means it's working!
0
 
aot2002Author Commented:
its installed now !
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now