gpt4 book ai didi

debian - GCC 4.6.3 无法安装 Debian

转载 作者:行者123 更新时间:2023-12-05 01:28:20 34 4
gpt4 key购买 nike

我在 Debian squeeze 上安装 gcc 4.6.3 时遇到问题。当前已安装 4.4,但我需要 4.6.x 才能运行 php-hiphop。我尝试寻找类似的问题,但没有发现任何与我所遇到的错误有关的问题。

我使用这些说明进行安装:

wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.gz
tar -xzvf gcc-4.6.3.tar.gz
cd gcc-4.6.3
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
£PWD/../gcc-4.6.3/configure --prefix=/opt/gcc-4.6.3
make
make install

make 命令上,在接下来的 20 分钟或更长时间里,一切似乎都很好,BLAMO!这弹出:

make[5]: Entering directory `/root/objdir/x86_64-unknown-linux-gnu/32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/root/objdir/./gcc/xgcc -B/root/objdir/./gcc/ -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/bin/ -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/include -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -I. -I. -I../../.././gcc -I/root/objdir/../gcc-4.6.3/libgcc -I/root/objdir/../gcc-4.6.3/libgcc/. -I/root/objdir/../gcc-4.6.3/libgcc/../gcc -I/root/objdir/../gcc-4.6.3/libgcc/../include -I/root/objdir/../gcc-4.6.3/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c /root/objdir/../gcc-4.6.3/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/features.h:378:0,
from /usr/include/stdio.h:28,
from /root/objdir/../gcc-4.6.3/libgcc/../gcc/tsystem.h:87,
from /root/objdir/../gcc-4.6.3/libgcc/../gcc/libgcc2.c:29:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make[5]: *** [_muldi3.o] Error 1
make[5]: Leaving directory `/root/objdir/x86_64-unknown-linux-gnu/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/root/objdir/x86_64-unknown-linux-gnu/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/root/objdir/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/root/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/objdir'
make: *** [all] Error 2
root@localvm:~/objdir#

我知道是什么原因造成的,找不到 stubs.h,但我该如何解决这个问题?是否有我需要的单独的库,或者有其他问题吗?提前致谢。

编辑 下载 multilib 依赖项解决了上述错误。 make 命令运行了整整 5 个小时,是的,大约 5 个小时左右,然后由于另一个与 zips 和 jars 有关的错误而崩溃,我被难住了。

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of /root/objdir/./gcc/xgcc -B/root/objdir/./gcc/ -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/bin/ -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/include -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/sys-include ... gcc3
checking dependency style of /root/objdir/./gcc/xgcc -shared-libgcc -B/root/objdir/./gcc -nostdinc++ -L/root/objdir/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/root/objdir/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/bin/ -B/opt/gcc-4.6.3/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/include -isystem /opt/gcc-4.6.3/x86_64-unknown-linux-gnu/sys-include ... gcc3
checking for x86_64-unknown-linux-gnu-as... /root/objdir/./gcc/as
checking for x86_64-unknown-linux-gnu-ld... /root/objdir/./gcc/collect-ld
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-dlltool... dlltool
checking for gawk... (cached) mawk
checking for jar... no
checking for fastjar... no
checking for gjar... no
checking for zip... no
checking for unzip... unzip
configure: error: cannot find neither zip nor jar, cannot continue
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/root/objdir'
make: *** [all] Error 2
root@localvm:~/objdir#

最佳答案

我认为你需要 multilib 支持,因为你正试图在 64 位机器上安装 32 位库。

关于debian - GCC 4.6.3 无法安装 Debian,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13028011/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com