我正在尝试将gcc-4.8.2编译器安装在远程Debian 7系统上,我没有根目录特权,但只有ssh访问权限。我发现最简单的方法是从源代码编译编译器。
我正在从GCC的网页上关注。
基本上,我完成了最简单的安装,在页面底部总结如下:
tar xzf gcc-4.8.2.tar.gz
cd gcc-4.8.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.2/configure --prefix=$HOME/gcc-4.8.2 --enable-languages=c++
make
由于
我尝试了几种方法,建立和安装gcc-5.4.0在我的个人电脑;
我运行了这个代码:
GCC_VERSION="5.4.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
cd $WORKDIR
wget http://www.netgull.com/gcc/releases/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.bz2
tar -xf gcc-${GCC_VERSION}.tar.bz2
cd gcc-${GCC_VERSION}
./contrib/do
我想学习llvm,所以我不得不在我的ubuntu14.04中安装clang,但我遇到了一些problems.Here:
当我执行command:sudo apt-get install clang-3.5时,我得到一些错误消息,如下所示:
Reading package lists... Done Building dependency tree Reading
state information... Done Some packages could not be installed. This
may mean that you have requested an impos
我对RISCV软件工具感兴趣,对linux和工具链有一定的了解。我想在我的系统上安装riscv工具,运行在ubuntu14.04-32位。我尝试了github中给出的步骤,但是构建失败了。是否对此构建有任何基本要求。
错误日志:
configure: WARNING: decimal float is not supported for this target, ignored
In file included from ../../../build-gcc-newlib-src/libgcc/../gcc/libgcc2.c:57:0:
../../../build-gcc-newlib-s
我有一个旧版本的boost 1.33.1。我想用一个自定义的gcc二进制文件构建它,这个文件位于默认路径之外的路径中。我在web上找不到该页面,因此我粘贴了gcc-tools.jam表单tools/build/v1/gcc-tools.jam的第一部分。
版权所有(c) 2001大卫·亚伯拉罕。
# Copyright (c) 2002-2005 Rene Rivera.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or h
我正在尝试使用Homebrew在我的MacOS10.9上安装gcc48,但我总是遇到这个错误:
brew install gcc48 --enable-all-languages
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.8.2/gcc-4.8.2.tar.bz2
curl: (28) Operation timed out after 300259 milliseconds with 0 out of 0 bytes received
Error: Download failed: ftp://gcc.gnu.or
在我的新macbook pro上安装了osx lion和XCode 4.1后,我遇到了一些问题,那就是和gcc的关系。
在/usr/bin中我找不到gcc-4.2
我只有以下版本:
i686-apple-darwin11-llvm-gcc-4.2
llvm-gcc
llvm-gcc-4.2
因此,当我尝试通过port select --set gcc gcc42选择gcc42时,它返回以下错误:Selecting 'gcc42' for 'gcc' failed: could not create new link "/opt/local/bin/gc
在我的盒子里,我们安装了GCC 4.1.2作为根用户,但是要编译LLVM和clang,我需要一个更高的GCC版本。因此,我下载并安装了GCC 4.5.0在我的本地目录。
如何使现有的程序参考GCC 4.5.0 libs和包括。
> gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is N
我安装gcc使用brew,因为我需要安装brew的Fortran软件包。看来brew install gcc安装的gcc软件包不支持mdll标志。我如何安装正确的版本的Fortran和gcc?
$ which gcc
/usr/local/bin/gcc
$ gcc --version
gcc (GCC) 4.9.2 20141029 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. Ther
所以我安装了gcc-4.4和gcc-4.3 (g++也一样)。现在,据我所知,在Ubuntu中有一个工具,它为您设置符号链接,如果您只告诉它您想要哪个版本。然而,它似乎在最新的版本中不起作用,我觉得这令人失望。
root@nexus:~# update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc.
root@nexus:~# update-alternatives --config cc
There is only one alternative in link group cc:
场景:在Ubuntu 12.4 lxc主机(均为64位)上运行已取消引导的Ubuntu 11.4 lxc来宾
在lxc来宾系统中,rsyslogd经常崩溃,SIGABRT声明:
libgcc_s.so.1 must be installed for pthread_cancel to work
0334.380551272:7f4128a84700:
Signal 6 (SIGABRT) occured, execution must be terminated.
我不确定为什么找不到libgcc_s.so.1。如果我运行ldconfig -p:
$# ldconfig -p | grep
我想在centos上安装gcc 4.7.3,但我是这样使用百胜搜索的gcc的:
yum search gcc
它向我显示了太多信息以供选择:
gcc-c++.x86_64 : C++ support for GCC
gcc-gnat.x86_64 : Ada 95 support for GCC
gcc-objc.x86_64 : Objective-C support for GCC
gcc-objc++.x86_64 : Objective-C++ support for GCC
gcc-plugin-devel.x86_64 : Support for compiling GCC plu
最近我升级到gcc-4.9,但它完全破坏了我的clang++,我无法编译任何东西。我正在收到的错误:
In file included from src/tester.cpp:11:
In file included from /usr/include/boost/progress.hpp:22:
In file included from /usr/include/boost/timer.hpp:20:
In file included from /usr/include/boost/config.hpp:40:
In file included from /usr/include/boos
我目前正在Debian6.0.9上运行DirectAdmin,并收到一条消息,表示Exim需要更新。所以我做了我的常规命令:
./build update
./build versions
./build update_versions
但是,每当我运行这些命令时,我都会得到以下错误:
In file included from tls.c:121:
tlscert-openssl.c: In function ‘asn1_time_copy’:
tlscert-openssl.c:114: warning: passing argument 2 of ‘ASN1_TIME_print’ di
我已经从下载了gcc-4.1.2,并使用两个命令构建
./configure
make
现在我可以看到g++二进制文件了。但并不存在gcc二进制。
$ ls /opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/g++
/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/g++
$ ls /opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/gcc
ls: cannot access /opt/gcc-4.1.2/host-x86_64-unknown-lin
我注意到我使用的代码中有一个bug,下面的测试代码演示了这一点: PROGRAM test
implicit none
integer(kind=8):: i
i=17159401
print*,i,float(i)
end program test 虽然代码应该输出17159401 17159401.0,但它输出的是17159401 17159400.0 我正在使用gfortran: Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/apps/gcc/4.8.2/bin/../libexec/