Link to home
Start Free TrialLog in
Avatar of aot2002
aot2002

asked on

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 ?
Avatar of rmharwood
rmharwood

You need the entire OpenSSL package, either from www.openssl.org or a package (RPM, .deb, whatever) for your system.
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.
Avatar of aot2002

ASKER

./configure  --includedir=/usr/include/openssl

like this didnt work
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).
Avatar of aot2002

ASKER

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
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?
Avatar of aot2002

ASKER

openssl-devel-0.9.7a-20.2.i386.rpm
upgrade above this version ?
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.
Avatar of aot2002

ASKER

find / -name 'config.out'
[root@localhost openvpn-1.6.0]#
Avatar of aot2002

ASKER

ok where is this file ?
Sorry, I meant config.log  !
(it's been a long day)
Avatar of aot2002

ASKER

http://aot.dynu.com/config.txt

i renamed it so you can view it in a browser
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?
Avatar of aot2002

ASKER

ok cool thanks for sticking on this ive wasted days of time on it already
ASKER CERTIFIED SOLUTION
Avatar of rmharwood
rmharwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aot2002

ASKER

you da man
I guess that means it's working!
Avatar of aot2002

ASKER

its installed now !