[FZH] 请教rpm打包怎么重定向安装路径

microcai microcai at fedoraproject.org
Fri Oct 19 13:51:43 UTC 2012


在 2012年10月19日 下午5:20,Robin Lee <robinlee.sysu at gmail.com> 写道:
> 在文件开头
> %global _prefix /opt/ruby
> 试试

是 %define _prefix /opt

>
> 2012/10/19 Johnny Tao <johnnybeijing at gmail.com>
>
>> 最近在为CentOS5 x86_64的服务器制作ruby的rpm包,因为根据统一的要求需要将程序安装到/opt的目录里面;
>> 以前没有写过spec就到网上找到了一个spec,不知道怎么修改才能使打好的rpm包默认就安装到/opt中,同时也能把
>> /opt/ruby 放到默认的环境变量里面,我尝试做过一些更改但是总是报错,希望大家指教一下,谢谢!
>>
>> 报错信息
>> RPM build errors:
>>     Macro % has illegal name (%define)
>>
>> spec地址
>> https://github.com/imeyer/ruby-1.9.2-rpm
>> --
>> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>>
> --
> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese


More information about the Chinese mailing list