本人在安装apache时make一步遇到报错:ab.c:2380:undefinedreferenceto`CRYPTO_malloc_init'
装apache会遇到许多问题,他们完全都是有解决法的,你可以去google轻松找到他们。以下是我帮你找的,转自csdn在LinuxRedhat6下面安装apacheserver的时候,执行完./configure命令后在执行make命令的时候报如下错误:/usr/bin/ld:/usr/local/lib/libz.a(crc32.o):relocationR_X86_64_32against`.rodata'cannotbeusedwhenmakingasharedobject;recompilewith-fPIC/usr/local/lib/libz.a:couldnotreadsymbols:Badvaluecollect2:ldreturned1exitstatusmake[4]:***[mod_deflate.la]错误1make[4]:Leavingdirectory`/usr/local/httpd-2.4.3/modules/filters'make[3]:***[shared-build-recursive]错误1make[3]:Leavingdirectory`/usr/local/httpd-2.4.3/modules/filters'make[2]:***[shared-build-recursive]错误1make[2]:Leavingdirectory`/usr/local/httpd-2.4.3/modules'make[1]:***[shared-build-recursive]错误1make[1]:Leavingdirectory`/usr/local/httpd-2.4.3'make:***[all-recursive]错误1解决方法下载zlib-1.2.3.tar.gz放在/usr/local目录下执行以下命令:tar-zxvfzlib-1.2.3.tar.gzcdzlib-1.2.3./configureviMakefile找到CFLAGS=-O3-DUSE_MMAP在后面加入-fPIC,即变成CFLAGS=-O3-DUSE_MMAP-fPICmake&&makeinstall然后再进入/usr/local/httpd-2.4.3这个目录执行下面的语句:./configure--prefix=/usr/local/apache2--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr-util/bin/apu-1-config--with-pcre=/usr/local/pcre/bin/pcre-config--with-zlib-1.2.3=/usr/local/zlib-1.2.3--enable-so