[Ubuntu-zh] 请教如何在ubuntu7下安装gcc-3.2?
Brightman
mr.brightman在gmail.com
星期二 十一月 27 08:07:20 GMT 2007
错误提示
/usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
defines no instances
gcc: Internal compiler error: program cc1 got fatal signal 11
吴先生 写道:
> 你试试,我之前在编译时也出现错误,后来安装bulid-essential和libncurses5
> -dev即可。
>
> 在07-11-16,*Brightman* <mr.brightman在gmail.com
> <mailto:mr.brightman在gmail.com>> 写道:
>
> 非常感谢!可能我没有描述清楚。
> 我需要安装gcc-3.2 apt-get 没有gcc-3.2, 我自己下载了gcc-3.2源码,在
> gcc-3.4 gcc-4 gcc-2.9下都make不过。
> 假设我没有gcc情况下,我怎么装gcc-3.2?我没有找到gcc-3.2的可执行程序
> 下载。
>
> ding lei 写道:
>> 1.确保安装svn,| svn co
>> svn://gcc.gnu.org/svn/gcc/tags/gcc_/x/_/y/_/z/_release gcc
>> 2.明确要安装的版本: http://gcc.gnu.org/releases.html
>>
>> |
>>
>> 配置
>>
>> 配置的目的是决定将GCC编译器安装到什么地方(${destdir}),支持什么
>> 语言以及指定其它一些选项等。其中,${destdir}不能与$ {objdir}或$
>> {srcdir}目录相同。
>>
>> 配置是通过执行${srcdir}下的configure来完成的。其命令格式为(记得
>> 用你的真实路径替换${destdir}):
>>
>> % ${srcdir}/configure --prefix=${destdir} [其它选项]
>>
>> 例如,如果想将GCC 3.4.0安装到/usr/local/gcc-3.4.0目录下,则$
>> {destdir}就表示这个路径。
>>
>> 在我的机器上,我是这样配置的:
>>
>> % ../gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0
>> --enable-threads=posix --disable-checking --enable--long-long
>> --host=i386-redhat-linux --with-system-zlib
>> --enable-languages=c,c++,java
>>
>> 将GCC安装在/usr/local/gcc-3.4.0目录下,支持C/C++和JAVA语言,其它
>> 选项参见GCC提供的帮助说明。
>>
>> 编译
>>
>> % make
>>
>> 这是一个漫长的过程。在我的机器上(P4-1.6),这个过程用了50多分钟。
>>
>> 安装
>>
>> 执行下面的命令将编译好的库文件等拷贝到${destdir}目录中(根据你设
>> 定的路径,可能需要管理员的权限):
>>
>> % make install
>>
>>
>>
>> 在07-11-16,*Christian Leng* <rookie999.ly在gmail.com
>> <mailto:rookie999.ly在gmail.com>> 写道:
>>
>> 你如果有网络的话,直接 $sudo apt-get install gcc-3.4 应该就行了
>> 或者在新立得里面找找相关的包全部都装上呗!
>> 然后用 $gcc -V <version> 来指定你要使用的gcc版本
>> ――当然,如果你只装了一个版本的gcc就不必了
>>
>> 在07-11-16,* Brightman *<mr.brightman在gmail.com
>> <mailto:mr.brightman在gmail.com>> 写道:
>>
>> ubuntu7 带的gcc-4.1 gcc-3.4 gcc-2.9.5都没有编过去
>> 有gcc-3.2的二进制执行文件么?
>> 谢谢!
>> SUN 写道:
>>> 我的理解是:
>>> 下载源码包
>>> ./configure --prefix=YOURDIR
>>> make
>>> make install
>>> 就可以了。
>>>
>>> 2007/11/16, Brightman <mr.brightman在gmail.com
>>> <mailto:mr.brightman在gmail.com>>:
>>>
>>> rt.3ks
>>>
>>> --
>>> ubuntu-zh mailing list
>>> ubuntu-zh在lists.ubuntu.com
>>> <mailto:ubuntu-zh在lists.ubuntu.com>
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>>
>>>
>>>
>>>
>>> --
>>> Welcome to contact with me!
>>
>>
>> --
>> ubuntu-zh mailing list
>> ubuntu-zh在lists.ubuntu.com
>> <mailto:ubuntu-zh在lists.ubuntu.com>
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>
>>
>>
>> --
>> ubuntu-zh mailing list
>> ubuntu-zh在lists.ubuntu.com <mailto:ubuntu-zh在lists.ubuntu.com>
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>
>>
>>
>>
>> --
>> Regards!
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com <mailto:ubuntu-zh在lists.ubuntu.com>
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
More information about the ubuntu-zh
mailing list