Hello. Programmer at a very small startup. I am the only one who used VI and wrote code in linux, thus somehow I am sys admin until we hire one. I am trying to compile PHP for the first time. Here is where the configure errors out:
Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking for krb5-config... /usr/kerberos/bin/krb5-config
checking for pkg-config... no
configure: error: Cannot find OpenSSL's <evp.h>
here is the configuration I am attempting to use:
sudo ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl=/usr/src/openssl-0.9.8d/include/openssl/ --with-png --with-pspell --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --with-gd=shared --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime
here are some locates I ran to try and find the relevant files:
locate evp.h
/usr/include/openssl/evp.h
/usr/src/openssl-0.9.8d/include/openssl/evp.h
/usr/src/openssl-0.9.8d/crypto/evp/evp.h
locate pkg-config
<no results returned>
locate pkgconfig
/usr/lib/pkgconfig
/usr/lib/pkgconfig/devmapper-event.pc
/usr/lib/pkgconfig/devmapper.pc
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/OpenIPMIposix.pc
/usr/lib64/pkgconfig/OpenIPMIpthread.pc
/usr/lib64/pkgconfig/NetworkManager.pc
/usr/lib64/pkgconfig/OpenIPMIcmdlang.pc
/usr/lib64/pkgconfig/OpenIPMIui.pc
/usr/lib64/pkgconfig/devmapper-event.pc
/usr/lib64/pkgconfig/devmapper.pc
/usr/lib64/pkgconfig/OpenIPMIutils.pc
/usr/lib64/pkgconfig/libnfsidmap.pc
/usr/lib64/pkgconfig/OpenIPMI.pc
/usr/lib64/pkgconfig/OpenIPMIglib.pc
/usr/lib64/pkgconfig/librpcsecgss.pc
/usr/lib64/pkgconfig/openssl.pc
ANy help would be greatly appreciated. I have tried pointing --with-openssl=/ to a bunch of different directories, but none of them seem to have exactly what the configuration is looking for.
Thank you,
Mike Thompson