Chinaunix首页 | 论坛 | 博客
  • 博客访问: 536720
  • 博文数量: 28
  • 博客积分: 150
  • 博客等级: 入伍新兵
  • 技术积分: 429
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-25 12:07
个人简介

Cisco Certified Internetwork Expert(Routing and Switching) CCIE R&S 2101X, IBM Certified Advanced Technical Expert - Power Systems with AIX v2, Red Hat Certified Engineer RHCE 130-165-39X, Oracle Certified Master 10g

文章分类

全部博文(28)

文章存档

2018年(1)

2017年(2)

2016年(4)

2015年(8)

2014年(4)

2013年(2)

2011年(7)

我的朋友

分类: LINUX

2015-09-16 18:22:08


========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 
 
阅读(3468) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~