帖子还没沉下去哦。我刚好研究着磁盘阵列这个问题卡住了,希望大家看到帮我分析一下,我安装raidtools老是不成功,我用的是linux AS4:
[root@localhost raidtools-1.00.3]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
[root@localhost raidtools-1.00.3]# make
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raidstart.o raidstart.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o parser.o parser.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raidlib.o raidlib.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o version.o version.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raid_io.o raid_io.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o scsi.o scsi.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o reconfiguration.o reconfiguration.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_common.o rrc_common.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_raid0.o rrc_raid0.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_raid5.o rrc_raid5.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_single.o rrc_single.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o mkraid.o mkraid.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o detect_multipath.o detect_multipath.c
mkraid.c: In function `main':
mkraid.c:174: error: missing terminating " character
mkraid.c:175: error: `WARNING' undeclared (first use in this function)
mkraid.c:175: error: (Each undeclared identifier is reported only once
mkraid.c:175: error: for each function it appears in.)
mkraid.c:175: error: syntax error before '!' token
mkraid.c:178: error: missing terminating ' character
mkraid.c:184: error: missing terminating ' character
mkraid.c:193: error: missing terminating ' character
mkraid.c:199: error: missing terminating " character
make: *** [mkraid.o] Error 1
make: *** Waiting for unfinished jobs....
[root@localhost raidtools-1.00.3]#
[root@localhost raidtools-1.00.3]# make install
for N in all install_bin install_doc install_dev; do make $N; done
make[1]: Entering directory `/software/raidtools-1.00.3'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
gcc -o raidstart raidstart.o parser.o raidlib.o version.o raid_io.o scsi.o reconfiguration.o rrc_common.o rrc_raid0.o rrc_raid5.o rrc_single.o -Wl,-Bstatic -lpopt -Wl,-Bdynamic
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o mkraid.o mkraid.c
gcc -o detect_multipath detect_multipath.o parser.o raidlib.o version.o raid_io.o scsi.o reconfiguration.o rrc_common.o rrc_raid0.o rrc_raid5.o rrc_single.o -Wl,-Bstatic -lpopt -Wl,-Bdynamic
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raidreconf.o raidreconf.c
mkraid.c: In function `main':
mkraid.c:174: error: missing terminating " character
mkraid.c:175: error: `WARNING' undeclared (first use in this function)
mkraid.c:175: error: (Each undeclared identifier is reported only once
mkraid.c:175: error: for each function it appears in.)
mkraid.c:175: error: syntax error before '!' token
mkraid.c:178: error: missing terminating ' character
mkraid.c:184: error: missing terminating ' character
mkraid.c:193: error: missing terminating ' character
mkraid.c:199: error: missing terminating " character
make[1]: *** [mkraid.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/software/raidtools-1.00.3'
make[1]: Entering directory `/software/raidtools-1.00.3'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
[ -d //sbin ] || mkdir -p //sbin
for n in raidstart mkraid detect_multipath raidreconf arytst lsraid; do \
install -s -m755 $n //sbin/$n ;\
done
install: cannot stat `mkraid': No such file or directory
install: cannot stat `raidreconf': No such file or directory
install: cannot stat `arytst': No such file or directory
install: cannot stat `lsraid': No such file or directory
make[1]: *** [install_bin] Error 1
make[1]: Leaving directory `/software/raidtools-1.00.3'
make[1]: Entering directory `/software/raidtools-1.00.3'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
for i in raidstart.8 raidstop.8 raidrun.8 mkraid.8 raid0run.8 raidtab.5 raidadd.8 ckraid.8 raidreconf.8 lsraid.8; do \
EXT=`echo $i | sed 's/.*\.//'` ;\
[ -d //usr/share/man/man$EXT ] || \
mkdir -p //usr/share/man/man$EXT; \
install -m644 $i //usr/share/man/man$EXT/$i ;\
done
make[1]: Leaving directory `/software/raidtools-1.00.3'
make[1]: Entering directory `/software/raidtools-1.00.3'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
[ -d /dev ] || mkdir -p /dev
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do \
if [ ! -e /dev/md$i ]; then \
mknod -m 0600 /dev/md$i b 9 $i; \
fi; \
done
make[1]: Leaving directory `/software/raidtools-1.00.3'
[root@localhost raidtools-1.00.3]#
[ 本帖最后由 jkler 于 2009-5-11 00:05 编辑 ]