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

Robin Lee robinlee.sysu at gmail.com
Mon Oct 22 10:01:31 UTC 2012


configure 时添加 --enable-rpath 试试

2012/10/22 Johnny Tao <johnnybeijing在gmail.com>

> 菜菜正解,
>
> 编译成rpm后路径是对了,不过安装完成后,运行'cd /opt/ruby/bin &&ruby -v'发现下面的报错
>
> error while loading shared libraries: libruby.so.1.9: cannot open shared
> object file: No such file or directory
>
> 而缺失的shared object文件就在这个路径里头,不知原因为何?请指教~
> /opt/ruby/lib64/libruby.so.1.9
>
>
> 2012/10/19 microcai <microcai在fedoraproject.org>
>
> > 在 2012年10月19日 下午5:20,Robin Lee <robinlee.sysu在gmail.com> 写道:
> > > 在文件开头
> > > %global _prefix /opt/ruby
> > > 试试
> >
> > 是 %define _prefix /opt
> >
> > >
> > > 2012/10/19 Johnny Tao <johnnybeijing在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
> > --
> > Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
> >
>
> --
> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>
>


More information about the Chinese mailing list