Build error on CentOS 7.6

Paquin, Brian brian.paquin at yale.edu
Fri Feb 22 17:18:57 UTC 2019


Hello,

I’ve been given a CentOS VM and started by installing OpenSSL 1.02q.

wget https://www.openssl.org/source/openssl-1.0.2q.tar.gz
tar -xvf openssl-1.0.2q.tar.gz
cd openssl-1.0.2q
./config --prefix=/usr/local/openssl
make depend
make
make test

During the “make test” I get:
make[2]: Entering directory `/home/paquinbw/openssl-1.0.2q/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto  -ldl}"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=bntest} bntest.o  ${LIBDEPS} )
/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/paquinbw/openssl-1.0.2q/test'
make[1]: *** [bntest] Error 2
make[1]: Leaving directory `/home/paquinbw/openssl-1.0.2q/test'
make: *** [tests] Error 2

[paquinbw at pathclinapps2 openssl-1.0.2q]$ sudo yum list installed | grep openssl
openssl.x86_64                          1:1.0.2k-16.el7                @base    
openssl-libs.x86_64                     1:1.0.2k-16.el7                @base    
openssl098e.x86_64                      0.9.8e-29.el7.centos.3         @anaconda

Searches online suggest running “yum install openssl-devel”.
But I don’t want another openssl on the system just to get a 4th one installed!
Do I need to remove the existing openssl first? 
Or is there another package I need?

Thank you,

Brian



More information about the openssl-users mailing list