我正在尝试在 Ubuntu 10.04 上安装 binutils-2.22。我已下载 binutils-2.22 的源代码,为其配置了自定义前缀(以免与系统 binutils 冲突)并构建了它。
但是,我在将程序与新的 binutils 链接时遇到了麻烦。一个与系统 binutils 链接良好的程序现在在链接时出现以下错误:
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXext.so.6, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXrender.so.1, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXinerama.so.1, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXi.so.6, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXrandr.so.2, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXcursor.so.1, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXcomposite.so.1, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXdamage.so.1, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libXfixes.so.3, needed by /usr/lib/../lib32/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libpcre.so.3, needed by /usr/lib/../lib32/libgio-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libresolv.so.2, needed by /usr/lib/../lib32/libgio-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libselinux.so.1, needed by /usr/lib/../lib32/libgio-2.0.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libpixman-1.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libdirectfb-1.2.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libfusion-1.2.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libdirect-1.2.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libxcb-render-util.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libxcb-render.so.0, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libxcb.so.1, needed by /usr/lib/../lib32/libcairo.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libICE.so.6, needed by /usr/lib/../lib32/libSM.so, not found (try using -rpath or -rpath-link)
/home/<myname>/Programs/binutils/binutils-2.22/bin/ld: warning: libuuid.so.1, needed by /usr/lib/../lib32/libSM.so, not found (try using -rpath or -rpath-link)
随后出现一系列“未定义引用”错误。
我是否需要做一些额外的配置才能使 binutils-2.22 正常工作?