1、rpm打包過程自行百度即可
2、所遇到的問題是在用rpm打包並安裝後,源碼文件大小不一致,導致程序不能正常運行
解決方案:
在spec文件%prep節點加入
#打包時不丟棄debug信息
%define __strip /bin/true
#打包之前不要對目標文件做strip
%define __os_install_post %{nil}
#禁止自動搜索依賴關係
Autoreq:no
Autoprov:no
重新打包即可
1、rpm打包過程自行百度即可
2、所遇到的問題是在用rpm打包並安裝後,源碼文件大小不一致,導致程序不能正常運行
解決方案:
在spec文件%prep節點加入
#打包時不丟棄debug信息
%define __strip /bin/true
#打包之前不要對目標文件做strip
%define __os_install_post %{nil}
#禁止自動搜索依賴關係
Autoreq:no
Autoprov:no
重新打包即可