红联Linux门户
Linux帮助

drbd安装问题

发布时间:2013-09-27 15:12:48来源:红联作者:ctpyy
执行 make KDIR=/usr/src/kernels/2.6.32-358.18.1.el6.x86_64报下面错误
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/usr/local/drbd-8.4.3/drbd'
make[1]: Leaving directory `/usr/local/drbd-8.4.3/drbd'
make[1]: Entering directory `/usr/local/drbd-8.4.3/user'
cp ../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -g -O2 -Wall -I../drbd -I../drbd/compat -c -o drbd_buildtag.o drbd_buildtag.c
gcc -g -O2 -Wall -I../drbd -I../drbd/compat -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o registry.o config_flags.o libgenl.o drbd_nla.o
gcc -g -O2 -Wall -I../drbd -I../drbd/compat -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o
gcc -g -O2 -Wall -I../drbd -I../drbd/compat -o drbdsetup libgenl.o registry.o drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o config_flags.o drbd_nla.o wrap_printf.o
make -C legacy
make[2]: Entering directory `/usr/local/drbd-8.4.3/user/legacy'
cp ../../drbd/drbd_buildtag.c drbd_buildtag.c
gcc -g -O2 -Wall -I. -I../drbd -I../drbd/compat -c -o drbd_buildtag.o drbd_buildtag.c
gcc -g -O2 -Wall -I. -I../drbd -I../drbd/compat -o drbdadm-83 drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o drbdadm_minor_table.o
gcc -g -O2 -Wall -I. -I../drbd -I../drbd/compat -o drbdsetup-83 drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o
make[2]: Leaving directory `/usr/local/drbd-8.4.3/user/legacy'
ln -f -s legacy/drbdadm-83
ln -f -s legacy/drbdsetup-83
make[1]: Leaving directory `/usr/local/drbd-8.4.3/user'
make[1]: Entering directory `/usr/local/drbd-8.4.3/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/drbd-8.4.3/scripts'
make[1]: Entering directory `/usr/local/drbd-8.4.3/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory `/usr/local/drbd-8.4.3/documentation'

Userland tools build was successful.
make[1]: Entering directory `/usr/local/drbd-8.4.3/drbd'

Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/usr/src/kernels/2.6.32-358.18.1.el6.x86_64

make -C /usr/src/kernels/2.6.32-358.18.1.el6.x86_64 SUBDIRS=/usr/local/drbd-8.4.3/drbd modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-358.18.1.el6.x86_64'
CC [M] /usr/local/drbd-8.4.3/drbd/drbd_buildtag.o
/bin/sh: perl: command not found
make[3]: *** [/usr/local/drbd-8.4.3/drbd/drbd_buildtag.o] Error 127
make[2]: *** [_module_/usr/local/drbd-8.4.3/drbd] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-358.18.1.el6.x86_64'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/usr/local/drbd-8.4.3/drbd'
make: *** [module] Error 2
望各位指点一下 谢谢 !!!
文章评论

共有 6 条评论

  1. dlchengzi 于 2014-05-06 18:06:20发表:

    楼主很厉害!

  2. chushihua 于 2014-01-12 21:09:03发表:

    hehe俺来也

  3. ctpyy 于 2013-10-11 18:41:54发表:

    怎么没人帮忙呀?

  4. ctpyy 于 2013-10-11 18:41:31发表:


    为什么2台机器连接不上?始终是Unknown

  5. ctpyy 于 2013-09-27 16:25:37发表:

    现在执行modprobe drbd提示FATAL: Module drbd not found.
    这个怎么解决?

  6. ctpyy 于 2013-09-27 16:23:12发表:

    没安装perl