gearman java_gearman安装,提示错误:configure: error: could not find boost
背景及最終解決方案
在CentOS 7上安裝gearman時(shí),提示錯(cuò)誤:configure: error: could not find boost,最終解決方案是:
先安裝:
# yum install -y boost boost-devel
發(fā)現(xiàn)問題還是沒解決,最終通過Bing找到了正確的答案,還要繼續(xù)安裝:
# yum install gcc-c++.x86_64 gperf
最后,再執(zhí)行 ./configure? 完美通過。
安裝與排查過程詳細(xì)說明
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ò)誤來了,提示: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++沒安裝。
摘自: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
完美解決
至此,問題已經(jīng)解決,并且./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
是以記。
總結(jié)
以上是生活随笔為你收集整理的gearman java_gearman安装,提示错误:configure: error: could not find boost的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 购买什么样的天猫网店转让更有优势
- 下一篇: 放大镜插件
