- 论坛徽章:
- 0
|
uname -r
2.6.32-431.el6.x86_64
rpm -q kernel-devel
kernel-devel-2.6.32-431.el6.x86_64
tar -xzvf drbd-8.4.1.tar.gz
cd drbd-8.4.1
./configure --prefix=/usr/local/drbd --with-km
make KDIR=/usr/src/kernels/2.6.32-431.el6.x86_64/
make -C drbd drbd_buildtag.c
make[1]: Entering directory `/home/drbd-8.4.1/drbd'
make[1]: Leaving directory `/home/drbd-8.4.1/drbd'
make[1]: Entering directory `/home/drbd-8.4.1/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 `/home/drbd-8.4.1/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 `/home/drbd-8.4.1/user/legacy'
ln -f -s legacy/drbdadm-83
ln -f -s legacy/drbdsetup-83
make[1]: Leaving directory `/home/drbd-8.4.1/user'
make[1]: Entering directory `/home/drbd-8.4.1/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/drbd-8.4.1/scripts'
make[1]: Entering directory `/home/drbd-8.4.1/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory `/home/drbd-8.4.1/documentation'
Userland tools build was successful.
make[1]: Entering directory `/home/drbd-8.4.1/drbd'
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=/usr/src/kernels/2.6.32-431.el6.x86_64/
make -C /usr/src/kernels/2.6.32-431.el6.x86_64/ SUBDIRS=/home/drbd-8.4.1/drbd modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
CC [M] /home/drbd-8.4.1/drbd/drbd_buildtag.o
/bin/sh: perl: command not found
make[3]: *** [/home/drbd-8.4.1/drbd/drbd_buildtag.o] Error 127
make[2]: *** [_module_/home/drbd-8.4.1/drbd] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.32-431.el6.x86_64'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/home/drbd-8.4.1/drbd'
make: *** [module] Error 2
|
|