tar -jxvf *.tar.gz2
可能出现如下错误:
[root@localhost ~]# tar -jxvf scst-3.1.0.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
解决:yum install -y bzip2
make all (scst)
1. make: *** No rule to make target `all'. Stop.
路径不对,make all时应该是和Makefile在同一目录
2.
[root@localhost scst]# make all
cd src && make all
make[1]: Entering directory `/root/scst/scst-3.1.0/scst/src'
make -C /lib/modules/3.10.0-123.el7.x86_64/build SUBDIRS=/root/scst/scst-3.1.0/scst/src BUILD_DEV=m
make: Entering an unknown directory
make: *** /lib/modules/3.10.0-123.el7.x86_64/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/scst/scst-3.1.0/scst/src'
make: *** [all] Error 2
解决:
1. `yum install kernel-devel-$(uname -r)`
我的系统是`3.10.0-123.el7.x86_64`,所以下载
2. `wget -P /root/scst https://buildlogs.centos.org/c7-updates/kernel/3.10.0-123.el7/20140630120647/kernel-devel-3.10.0-123.el7.x86_64.rpm`
3. ` rpm -i kernel-devel-3.10.0-123.el7.x86_64.rpm `
3.
[root@localhost scst]# make all
cd src && make all
make[1]: Entering directory `/root/scst/scst-3.1.0/scst/src'
make -C /lib/modules/3.10.0-123.el7.x86_64/build SUBDIRS=/root/scst/scst-3.1.0/scst/src BUILD_DEV=m
make[2]: Entering directory `/usr/src/kernels/3.10.0-123.el7.x86_64'
/usr/src/kernels/3.10.0-123.el7.x86_64/arch/x86/Makefile:96: stack-protector enabled but compiler support broken
Makefile:616: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[2]: gcc: Command not found
LD /root/scst/scst-3.1.0/scst/src/built-in.o
CC [M] /root/scst/scst-3.1.0/scst/src/scst_main.o
/bin/bash: gcc: command not found
make[3]: *** [/root/scst/scst-3.1.0/scst/src/scst_main.o] Error 127
make[2]: *** [_module_/root/scst/scst-3.1.0/scst/src] Error 2
make[2]: Leaving directory `/usr/src/kernels/3.10.0-123.el7.x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/scst/scst-3.1.0/scst/src'
make: *** [all] Error 2
解决:
yum install -y gcc
make all (scstadmin)
可能出现以下错误:
[root@localhost scstadmin-3.1.0]# make all
cd scstadmin && make all
make[1]: Entering directory `/root/scst/scstadmin-3.1.0/scstadmin.sysfs'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 6.
BEGIN failed--compilation aborted at Makefile.PL line 6.
make[1]: *** [perl-module] Error 2
make[1]: Leaving directory `/root/scst/scstadmin-3.1.0/scstadmin.sysfs'
make: *** [all] Error 2
解决:
yum install -y perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker cpan
service scst start
可能出现如下错误:
SCST/etc/init.d/scst: line 84: killall: command not found
解决:
yum install -y psmisc