分页: 1 / 1

如何静态编译程序(rtorrent)

发表于 : 2009-11-08 19:22
chenwl
目的是想让编译后的可执行文件拷贝到其他linux机器上也能正常运行而不出现库依赖问题.

我用下面命令编译后,还是出现库依赖问题.

代码: 全选

./configure LDFLAGS=-static --enable-static --disable-shared --disable-debug

代码: 全选

./rtorrent: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory
注:编译和运行在不同的Linux上.目标机器我只有普通用户权限.

Re: 如何静态编译程序(rtorrent)

发表于 : 2009-11-28 14:26
tusooa

代码: 全选

s#\./configure LDFLAGS=-static#LDFLAGS=-static \./configure#