Chinaunix

标题: 哪里能下载到GCC二进制文件? [打印本页]

作者: Gvtheen    时间: 2007-07-07 11:46
标题: 哪里能下载到GCC二进制文件?
如提
先谢谢了
作者: fire_cpp    时间: 2007-07-07 12:39
???奇怪的问题,apt-get install gcc不就有了吗?
你想问什么哦?
作者: dxf1219    时间: 2009-02-03 09:57
我也想找找看阿 。。。 这样就不用编译了阿 。。。
作者: chenyx    时间: 2009-02-03 10:16
原帖由 dxf1219 于 2009-2-3 09:57 发表
我也想找找看阿 。。。 这样就不用编译了阿 。。。

什么系统,及版本
作者: zhumao    时间: 2009-02-03 11:24
标题: 回复 #1 Gvtheen 的帖子
http://gnu.07vn.com/gnu/gcc/
作者: gs80140    时间: 2012-01-05 12:53
你不能使用apt-get是吗?
请参照下面的方法来做

[Ubuntu] apt-get: Package has no installation candidate
注:以下命令可能需要sudo
If the package name does not exist in APT’s database, it does not have any idea what you are trying to install and you see the following error message:

#  apt-get install <packagename>
Reading package lists... Done
Building dependency tree... Done
Package aptitude is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package <packagename> has no installation candidate


So, the above error occurs for 2 reasons:

1) The APT’s database is not updated.

A quick fix is to update the APT’s database as per the defined sources list.

# apt-get update
# apt-get upgrade
# apt-get install <packagename>
This is it. If isn’t fixed, check point #2 below.

2) The package itself isn’t available on the official Ubuntu repository.

In such a situation, you have to add a 3rd party repository to your /etc/apt/sources.list file and install the package, however, try such repositories at your own risk.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2