From: Ville Mattila Date: 2004-10-10T15:19:40+09:00 Subject: Re: openssl compilation fails for ruby-1.8.2-preview2 on redhat 7.2 Bil Kleb wrote: > gcc -fPIC -g -O2 -I. -I/mnt/local/md/d0/local/pkgs/ruby-1.8.2.S > -I/mnt/local/md/d0/local/pkgs/ruby-1.8.2.S > -I/mnt/local/md/d0/local/pkgs/ruby-1.8.2.S/ext/openssl -DHAVE_UNISTD_H > -DHAVE_SYS_TIME_H -DHAVE_ASSERT_H -DHAVE_OPENSSL_SSL_H > -DHAVE_OPENSSL_CONF_API_H -DHAVE_BN_RAND_RANGE -DHAVE_VA_ARGS_MACRO > -DHAVE_OPENSSL_ENGINE_H -DHAVE_ENGINE_ADD -c ossl_pkey_dh.c > ossl_pkey_dh.c: In function `ossl_dh_is_private': > ossl_pkey_dh.c:181: structure has no member named `engine' > make[1]: *** [ossl_pkey_dh.o] Error 1 > This error comes from the fact that installed openssl is too old. Try to compile OpenSSL 0.9.7d. Install it for example /usr/local/openssl-0.9.7 and configure ruby to use it e.g. ./configure .... --with-openssl-dir=/usr/local/openssl-0.9.7 ... Note you have to set LD_LIBRARY_PATH to have new openssl lib path.