drbd make报错:
- make[1]: Leaving directory `/root/ha/drbd-8.3.0/documentation'
-
-
Userland tools build was successful.
-
Could not determine uts_release
-
make: *** [module] Error 1
查看 Makefile 文件
- module:
-
@if [ -z "$(KVER)" ]; then \
-
echo "Could not determine uts_release" ; \
-
false ; \
-
fi
- ............
- KDIR := $(shell echo /lib/modules/`uname -r`/build)
- KVER := $(shell KDIR=$(KDIR) O=$(O) scripts/get_uts_release.sh)
查看scripts/get_uts_release.sh
- #!/bin/bash
-
{
-
for x in include/linux/{utsrelease,version}.h;
-
do
-
for d in $KDIR $O;
-
do
-
test -e "$d/$x" || continue;
-
echo "#include \"$d/$x\"";
-
done;
-
done;
-
echo "drbd_kernel_release UTS_RELEASE"
-
} | gcc -nostdinc -E -P - | sed -ne 's/^drbd_kernel_release "\(.*\)".*/\1/p'
查看modules
- [root@node1 drbd-8.3.0]#ll /lib/modules/2.6.18-128.el5/build
- lrwxrwxrwx 1 root root 44 Jul 26 22:57 /lib/modules/2.6.18-128.el5/build -> ../../../usr/src/kernels/2.6.18-128.el5-i686 红色在闪
解决方法:
阅读(3743) | 评论(0) | 转发(0) |