日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

gearman java_gearman安装,提示错误:configure: error: could not find boost

發(fā)布時(shí)間:2024/3/26 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 gearman java_gearman安装,提示错误:configure: error: could not find boost 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

背景及最終解決方案

在CentOS 7上安裝gearman時(shí),提示錯(cuò)誤:configure: error: could not find boost,最終解決方案是:

先安裝:

# yum install -y boost boost-devel

發(fā)現(xiàn)問(wèn)題還是沒(méi)解決,最終通過(guò)Bing找到了正確的答案,還要繼續(xù)安裝:

# yum install gcc-c++.x86_64 gperf

最后,再執(zhí)行 ./configure? 完美通過(guò)。

安裝與排查過(guò)程詳細(xì)說(shuō)明

1、下載gearman

進(jìn)入:https://github.com/gearman/gearmand/releases ,下載: gearmand-1.1.18.tar.gz

2、本地解壓

tar -xzvf ./gearmand-1.1.18.tar.gz

3、執(zhí)行

./configure

錯(cuò)誤來(lái)了,提示:could not find boost

checking for boostlib >= 1.39... configure: We could not detect the boost libraries (version 1.39 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.

configure: error: could not find boost

網(wǎng)上找了一圈,很多答案都只是寫著:

解決辦法

# yum install -y boost boost-devel

即可

摘自:http://www.bubuko.com/infodetail-448566.html

根據(jù)提示,進(jìn)行安裝,并確保已經(jīng)安裝boost:

[root@iz8vbetvcrpn38l0x1kd06z gearmand-1.1.18]# yum install -y boost boost-devel

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* remi-php71: mirrors.tuna.tsinghua.edu.cn

* remi-safe: mirrors.tuna.tsinghua.edu.cn

Package boost-1.53.0-27.el7.x86_64 already installed and latest version

Package boost-devel-1.53.0-27.el7.x86_64 already installed and latest version

Nothing to do

安裝的目錄位于:/usr/include/boost,并且根據(jù)上面英文的錯(cuò)誤提示,查看安裝的boost版本號(hào)為:

#define BOOST_VERSION 105300

#define BOOST_LIB_VERSION "1_53"

版本為1.53,是高于1.39的。但為什么依然找不到呢?

繼續(xù)再重新看多幾遍英文錯(cuò)誤提示,繼續(xù)在/etc/environment追加環(huán)境變量:

export BOOST_ROOT=/usr/include/boost

source后依舊不行。

轉(zhuǎn)機(jī)

繼續(xù)查了一通,在眾多資料中找到了:

搞定了,zypper in gcc gcc-c++,后面這個(gè)gcc-c++沒(méi)安裝。

摘自:http://tieba.baidu.com/p/3481148738?traceid=

但是還是有點(diǎn)迷糊。

轉(zhuǎn)用Bing,在國(guó)外找到了解決方案:

I had the same issue compiling 1.1.12

boost-devel was installed but wasn't being detected, even when I pass --with-boost

For whatever reason installing these packages allowed it to compile

yum install gcc-c++.x86_64 gperf

摘自:https://github.com/gearman/gearmand/issues/68

完美解決

至此,問(wèn)題已經(jīng)解決,并且./configure 通過(guò)。

config.status: executing libtool commands

---

Configuration summary for gearmand version 1.1.18

* Installation prefix:?????? /usr/local

* System type:?????????????? pc-linux-gnu

* Host CPU:????????????????? x86_64

是以記。

總結(jié)

以上是生活随笔為你收集整理的gearman java_gearman安装,提示错误:configure: error: could not find boost的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。