ubuntu编译drbd-utils

ubuntu下安装配置完drbd后启动报错, 查看版本信息:

root@drbd2:~# drbdadm --versionDRBD module version: 8.4.5   userland version: 8.4.4you should upgrade your drbd tools!DRBDADM_BUILDTAG=GIT-hash:\ 599f286440bd633d15d5ff985204aff4bccffadd\ build\ by\ phil@fat-tyre\,\ 2013-10-11\ 16:42:48DRBDADM_API_VERSION=1DRBD_KERNEL_VERSION_CODE=0x080405DRBDADM_VERSION_CODE=0x080404DRBDADM_VERSION=8.4.4

ubuntu14.4.04 kernel中编译的 drbd module 版本是 8.4.5, 而官方trusty所提供的drbd8-utils的版本只到8.4.4, 只能手动编译了

解决依赖:

apt-get install flex

官方下载drbd-utils: http://oss.linbit.com/drbd/

编译:

root@ubuntu:~# tar -xf drbd-utils-latest.tar.gz -C /usr/src/root@ubuntu:~# cd /usr/src/drbd-utils-8.9.6/root@ubuntu:/usr/src/drbd-utils-8.9.6# lsautogen.sh configure COPYING drbd-headers Makefile.in scriptsChangeLog configure.ac documentation drbd.spec.in README userroot@ubuntu:/usr/src/drbd-utils-8.9.6# ./configure --prefix=/usr/local/drbd-utils --sysconfdir=/etc/root@ubuntu:/usr/src/drbd-utils-8.9.6# makeroot@ubuntu:/usr/src/drbd-utils-8.9.6# make installroot@ubuntu:~# mkdir /usr/local/drbd-utils/var/run/drbd
关于再次报错:

make 后会报以下错误:

Userland tools build was successful.make -C documentation/v9 docmake[1]: Entering directory `/usr/src/drbd-utils-8.9.6/documentation/v9'xsltproc -o drbdsetup.xml drbdsetup.xsl drbdsetup.xml.inmake[1]: xsltproc: Command not foundmake[1]:  * [drbdsetup.xml] Error 127make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'make:  * [doc] Error 2

此错误对drbd运行没有影响, 提示安装xsltproc可解决, 然而实际上又报了别的错, 如下:

http://docbook.sourceforge.net/release/xsl/current/html/param.xsl:445: parser error : Premature end of data in tag stylesheet line 3compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 24 element includexsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/html/param.xslmake[1]:  * [drbdsetup.8] Error 5make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'make:  * [doc] Error 2

此处的报错貌似影响的是文档, 文档要在线下载却又爬不动墙, 不影响软件使用

make install 后同样报错(如下):

Userland tools build was successful.make -C documentation/v9 docmake[1]: Entering directory `/usr/src/drbd-utils-8.9.6/documentation/v9'make -C ../../user/v9 drbdsetupmake[2]: Entering directory `/usr/src/drbd-utils-8.9.6/user/v9'make[2]: `drbdsetup' is up to date.make[2]: Leaving directory `/usr/src/drbd-utils-8.9.6/user/v9'../../user/v9/drbdsetup xml-help new-resource > drbdsetup_xml-help_new-resource.xmlxsltproc -o drbdsetup_new-resource.xml xml-usage-to-docbook.xsl drbdsetup_xml-help_new-resource.xmlmake[1]: xsltproc: Command not foundmake[1]:  * [drbdsetup_new-resource.xml] Error 127make[1]: Leaving directory `/usr/src/drbd-utils-8.9.6/documentation/v9'make:  * [doc] Error 2

无影响, 可忽略

关键字:drbd

版权声明

本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处。如若内容有涉嫌抄袭侵权/违法违规/事实不符,请点击 举报 进行投诉反馈!

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部