Emulex HBA卡编译RHEL驱动时的报错处理

3750阅读 0评论2015-09-16 phanx
分类:LINUX


========phanx.com========
Author:   phanx
Updated: 2015-9-16
转载请保留作者信息
=========================

 
今天更新Emulex的时候,先用SRPM包安装,然后在用rpmbuild编译的时候报错:

error: line 14: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: kernel-devel -f /root/rpmbuild/SOURCES/lpfc.files -p /root/rpmbuild/SOURCES/lpfc.preamble   

网上有用的信息比较少,最后发现是 redhat-rpm-config 包没有装。
在HP的NetExtremeII卡的驱动说明里面也提到了
http://downloads.linux.hp.com/repo/spp/RHEL/5/i386/current/hp-netxtreme2-6.2.23-2.src.txt
5. The rpmbuild will fail if the redhat-rpm-config package is not installed 
because it cannot resolve the %kernel_module_package_buildreqs macro.  The 
error will be similar to the following: 

error: line xx: Dependency tokens must begin with alpha-numeric,'_'or'/': 
BuildRequires: %kernel_module_package_buildreqs 
 
上一篇:DNS引起的VMware Converter问题和VMRC问题
下一篇:Intel X710 板载万兆卡驱动问题