【问题记录】linux中apache升级过程中遇到的一些问题,make[2]: *** [ab] Error 1

news/2024/7/3 13:15:53

Exception:httpd-2.4.39 编译阶段失败,make[2]: *** [ab] Error 1

错误日志如下:

-1.la -luuid -lrt -lcrypt -lpthread -ldl -lm -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -luuid -lrt -lcrypt -lpthread
ab.o: In function `ssl_proceed_handshake':
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:744: undefined reference to `EVP_PKEY_id'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:770: undefined reference to `EVP_PKEY_id'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:756: undefined reference to `EVP_PKEY_get1_EC_KEY'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:757: undefined reference to `EC_KEY_get0_group'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:757: undefined reference to `EC_GROUP_get_curve_name'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:758: undefined reference to `EC_KEY_free'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:759: undefined reference to `EC_curve_nid2nist'
ab.o: In function `main':
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:2552: undefined reference to `TLSv1_1_client_method'
/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support/ab.c:2554: undefined reference to `TLSv1_2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [ab] 错误 1
make[2]: Leaving directory `/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/opt/aspire/product/sims20/setup/apache_new/httpd-2.4.39/support'
make: *** [all-recursive] 错误 1

 

 解决方法:安装open-ssl 依赖库,安装httpd时需要加上

如下命令,安装open-ssl:

[sims20@test openssl]# ./config -fPIC --prefix=path enable-shared
[sims20@test openssl]# ./config -t 
[sims20@test openssl]# make depend
[sims20@test openssl]# make
[sims20@test openssl]# make test
[sims20@test openssl]# make install

 以上安装ok后,继续安装httpd,需要指定依赖库安装路径,如下所示:

 [sims20@test httpd-2.4.39]  ./configure --prefix=apache-path --with-apr=apr-path --with-apr-util=apr-util-path --with-pcre=pcre-path --with-expat=expat-path --with-ssl=openssl-path --enable-so

安装成功后,启动apache:  /apache-path/bin/apachectl start

附图:安装的依赖库信息

 

转载于:https://www.cnblogs.com/quietCorner/p/11010498.html


http://www.niftyadmin.cn/n/2042151.html

相关文章

apache install

1. download apache: http://www.apachelounge.com/download/VC11/ 2. install V11 微软组件 https://www.microsoft.com/en-us/download/confirmation.aspx?id30679 3. install apache under directory c:\Apache24. No need to change conf\httpd.conf. Else Documen…

第三天 python基础

函数的定义方式 无参函数 不需要接收外部传入的参数 def foo():print(from foo) foo() 结果: from foo 有参函数 需要接收外部传入的参数 def login(user,pwd):print(user,pwd)login(zxy,111) 结果: zxy 111 传参缺一不可 比较两个数的大小 def max2(x,y…

基于asp.net714零食销售海米跨境电子商务商城

零食是很多人在茶前饭后所喜欢的食品之一。传统的零食购买方式都是到超市或者专卖店进行购买,但是随着网络的发展,人们越来越愿意通过网上下单,物流配送直接送达自己手里来进行品味。为了能够让更多的人。更加方便快捷的买到自己喜欢的零食,我…

基于Andriod的连锁药店管理系统APP(ssm+uinapp+Mysql)

网络的广泛应用给生活带来了十分的便利。所以把连锁药店管理与现在网络相结合,利用java技术建设连锁药店管理系统app,实现连锁药店的信息化。则对于进一步提高连锁药店管理发展,丰富连锁药店管理经验能起到不少的促进作用。 连锁药店管理系统…

后台使用freeMarker和前端使用vue的方法

一:freeMarker的使用 1:java后台使用freeMarker是通过Model,将值传给前端: 如: Controllerpublic class MobileNewsFreeMarkerController { RequestMapping("page/test") public String Test(Model model,Ht…

基于Andriod的厕所卫生清洁管理app(ssm+uinapp+Mysql)

随着Internet的发展,人们的日常生活已经离不开网络。未来人们的生活与工作将变得越来越数字化,网络化和电子化。网上管理,它将是直接管理“厕ce”APP的最新形式。本论文是以构建“厕ce”APP为目标,使用java技术制作,由…

基于asp.net713大学生健康咨询管理系统

健康咨询管理系统是一个基于网络,对学校大学生健康咨询案例数据进行管理及共享的信息系统。高校学生健康咨询案例管理系统的设计与实现,首先需要收集大量的高校健康咨询案例,并对其进行分析和归类,获取用户需求。 该系统的核心模…

Maven相关命令

1. download apache Maven: http://maven.apache.org/download.cgi#Installation 2. 解压缩Maven到本地路径, c:\software\apache-maven-3.3.9 3. 确认JDK已安装,JAVA_HOME已被设置 5. 将bin路径(c:\software\apache-maven-3.3.9\bin)设置…