centos7安装scst出现的问题以及解决

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值