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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2024/3/26 编程问答 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 gearman java_gearman安装,提示错误:configure: error: could not find boost 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

背景及最終解決方案

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

先安裝:

# yum install -y boost boost-devel

發現問題還是沒解決,最終通過Bing找到了正確的答案,還要繼續安裝:

# yum install gcc-c++.x86_64 gperf

最后,再執行 ./configure? 完美通過。

安裝與排查過程詳細說明

1、下載gearman

進入:https://github.com/gearman/gearmand/releases ,下載: gearmand-1.1.18.tar.gz

2、本地解壓

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

3、執行

./configure

錯誤來了,提示: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

網上找了一圈,很多答案都只是寫著:

解決辦法

# yum install -y boost boost-devel

即可

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

根據提示,進行安裝,并確保已經安裝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,并且根據上面英文的錯誤提示,查看安裝的boost版本號為:

#define BOOST_VERSION 105300

#define BOOST_LIB_VERSION "1_53"

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

繼續再重新看多幾遍英文錯誤提示,繼續在/etc/environment追加環境變量:

export BOOST_ROOT=/usr/include/boost

source后依舊不行。

轉機

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

搞定了,zypper in gcc gcc-c++,后面這個gcc-c++沒安裝。

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

但是還是有點迷糊。

轉用Bing,在國外找到了解決方案:

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

完美解決

至此,問題已經解決,并且./configure 通過。

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

是以記。

總結

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

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。