论坛风格切换切换到宽版
  • 470阅读
  • 1回复

[问题求助]关于静态编译 [复制链接]

上一主题 下一主题
离线qwer20.
 
发帖
2210
C币
-60177
威望
375
贡献值
1
银元
-3
铜钱
4907
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
请问如.何将一.个不常用的xx.tar.gz包 进行静态编译.<性病>

情况是这样的
我有A B机器
A机编.译了一个可执行程序expect.
我把这个expec.t上传到了B机器.上去执行 但是提示<性病>
./expect: error while loading shar.ed libraries: libexpec.t5.43.so: cannot open shared .object file: No such file or directory[成人用品]
问了别人说要静态编译.

请问如何静态编译?

Configuration:
. --cache-file=FILE     .  cache test results in FILE             汽车
  --help       .   .        print this message域名
  --no-create             do not .create .output files             电子
  --quiet, --silent    .   do not print `checking...' m.essages学习
  --version       .        print the v.ersion of autoconf that cr.eated configure              乙肝
Directory and file names.:.
  --prefix=PREFIX         instal.l architecture-independent files .in PREFIX             电子
                          [/usr/lo..cal]外贸
  --exec-prefix=EPREFIX   install archi.tecture-dependen.t files in EPREFIX    健康
          .                [same as prefi.x]学习
  --bindir=DIR            user. executables in DIR [EP.REFIX/bin]服务器
  --sbindir=DIR           syste.m admin executa.bles in DIR [EPREFIX/sbin]<性病>
  --libexecdir=DIR        program executa.bles in DIR [EPRE.FIX/libexec]<性病>
  --datadir=DIR           read-only archit.ecture-in.dependent data in DIR.
           .               [PREFIX/share.][成人用品]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/e..tc].
  --sharedstatedir=DIR    modifiable architec.ture-independent data i.n DIR             汽车
          .  .              [PREFIX/com].
  --localstatedir=DI.R     modifi.able single-machine data in .DIR [PREFIX/var]             电子
  --libdir=DIR            object code libraries. in DIR [EPREFI.X/lib]           鲜花
  --includedir=DIR        C header file.s in DIR [PREFIX/inclu.de]    外汇
  --oldincludedir=.DIR     C header file.s for non-gcc in DIR [/usr/include].
. --infodir=DI.R           info documentation in DIR [PREFIX/info].
  --mandir=DIR .           man documentation in DIR. [PREFIX/man].
  --srcd.ir=DIR            find the sources in DI.R [configure dir or ..].
  --program.-prefix=PREFIX prepend PREFIX to i.nstalled program names[成人用品]
  --program.-suffix=SUFFIX append SUFFIX to i.nstalled program names              乙肝
  --.program-transform-.name=PROGRAM服务器
                          ru.n sed .PROGRAM on installed program names.
Host type:
  --build=BUILD           configure for building on BUILD [BUI.LD=HOST].外贸
  --ho.st=HOST             configure. for HOST [guessed]           鲜花
  --target=TARGET         c.onfigure for TARGET [TARGE.T=HOST].
Features and package.s:<性病>
  --disable-FEATURE       do .not. include FEATURE (same as --enable-FEATURE.=no).
  --enable-FEATURE[=ARG]  incl.ude FEATURE [ARG=ye.s]          婚庆
  --with-PAC.KAGE[=ARG]    use PACKAGE [AR.G=yes].
  --without-PACKAGE       do not use PA.CKAGE (same as --with-PACKAGE=.no).
  --x-includes=DIR  .      X include files a.re in DIR.
  --x-libraries=DIR    .   X l.ibrary files are in DIR.
--enable and --.with opt.ions recognized:           鲜花
  --enable-th.reads     .   build with threads (not supported)            杀毒
. --with-tcl       .    directory containing tcl con.figuration (tclConfig.sh).
  --w.ith-tk           di.rectory containing tk configuration (tkConfig.sh)外贸
  --enable.-symbols   allo.w use of symbols if available    外汇
  --.with-tclinclude       directory where tcl. private headers are服务器
  --enable-shared     build libexpect as a shared library      /*看了一下这个比较像.然后后面configur.e 加了这个.选项 但是还是不行.*/投资
  --with-x               whether or no.t to use X (defa.ult yes)(广告)
  --.with-tkinclude       directory where tk private. headers are    外汇
  --disable-load     disallow dynamic. loadin.g.
  --enable-gcc        allow use of gcc if av..ailable健康

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线magicworm.
发帖
1957
C币
-199353
威望
335
贡献值
1
银元
-1
铜钱
4296
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
在B上重新编译下
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个