Python论坛  - 讨论区

标题:[python-chinese] python2.4.1在red linux7.2安装问题

2005年06月27日 星期一 16:29

Qiangning Hong hongqn at gmail.com
Mon Jun 27 16:29:48 HKT 2005

那段代码是在检查有没有g++,但是不会造成configure失败,因为编译Python c++
编译器不是必须的。

>>>>yes checking size of int... configure: error: cannot compute sizeof
>>>>(int), 77 See `config.log' for more details.

看上面这段出错信息,应该是在编译一段检测sizeof(int)的测试代码时出错。
grep sizeof config.log 试试。

Wang Kebo wrote:
>>configure: failed program was:
>>| #ifndef __cplusplus
>>|   choke me
>>| #endif
> 
> 
> 这里好像是检查C++的代码。
> 
> __
> Best Regards,
>  
> Kebo Wang
> 
> 
> 
>>-----Original Message-----
>>From: python-chinese-bounces at lists.python.cn 
>>[mailto:python-chinese-bounces at lists.python.cn] On Behalf Of 
>>Qiangning Hong
>>Sent: Monday, June 27, 2005 3:37 PM
>>To: python-chinese at lists.python.cn
>>Subject: Re: [python-chinese] python2.4.1在red linux7.2安装问题
>>
>>python是C写的,需要g++么?
>>
>>On 6/26/05, Wang Kebo <mep_ at 163.com> wrote:
>>
>>>我没有编译过python的源码,根据 经验猜测: 你是否安装了g++?
>>>
>>>__
>>>Best Regards,
>>>
>>>Kebo Wang
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: python-chinese-bounces at lists.python.cn
>>>>[mailto:python-chinese-bounces at lists.python.cn] On Behalf Of 陈亚殊
>>>>Sent: Sunday, June 26, 2005 9:03 PM
>>>>To: python-chinese at lists.python.cn
>>>>Subject: [python-chinese] python2.4.1在red linux7.2安装问题
>>>>
>>>>下载并解压后进行安装出现如下问题:
>>>>./configure
>>>>。。。。
>>>>。。。。
>>>>checking for size_t... yes
>>>>checking for uid_t in sys/types.h... yes checking for int...
>>>>yes checking size of int... configure: error: cannot compute sizeof 
>>>>(int), 77 See `config.log' for more details.
>>>>
>>>>
>>>>在config.log中有:
>>>>configure:2564: $? = 0
>>>>configure:2567: test -s conftest.o
>>>>configure:2570: $? = 0
>>>>configure:2581: result: yes
>>>>configure:2598: checking for gcc option to accept ANSI C
>>>>configure:2668: gcc  -c -g -O2  conftest.c >&5
>>>>configure:2674: $? = 0
>>>>configure:2678: test -z
>>>>                        || test ! -s conftest.err
>>>>configure:2681: $? = 0
>>>>configure:2684: test -s conftest.o
>>>>configure:2687: $? = 0
>>>>configure:2705: result: none needed
>>>>configure:2723: gcc -c -g -O2  conftest.c >&5
>>>>conftest.c:2: parse error before `me'
>>>>configure:2729: $? = 1
>>>>configure: failed program was:
>>>>| #ifndef __cplusplus
>>>>|   choke me
>>>>| #endif
>>>>configure:2870: checking how to run the C preprocessor
>>>>configure:2905: gcc -E  conftest.c
>>>>configure:2911: $? = 0
>>>>configure:2943: gcc -E  conftest.c
>>>>conftest.c:11:28: ac_nonexistent.h: No such file or directory
>>>>configure:2949: $? = 1
>>>>configure: failed program was:
>>>>| /* confdefs.h.  */
>>>>
>>>>
>>>>请问如何处理?涉及red linux问题,不是很熟悉,请教如何处理,谢谢。
>>>>
>>>>
>>>>***************************************************************
>>>>*****************************************************************
>>>>The information in this email is confidential and may be legally 
>>>>privileged. If you have received this email in error or are not the 
>>>>intended recipient, please immediately notify the sender and delete 
>>>>this message from your computer. Any use, distribution, or 
>>
>>copying of 
>>
>>>>this email other than by the intended recipient is strictly 
>>>>prohibited. All messages sent to and from us may be monitored to 
>>>>ensure compliance with internal policies and to protect our 
>>
>>business.
>>
>>>>Emails are not secure and cannot be guaranteed to be error free as 
>>>>they can be intercepted, amended, lost or destroyed, or contain 
>>>>viruses. Anyone who communicates with us by email is taken 
>>
>>to accept 
>>
>>>>these risks.
>>>>
>>>>收发邮件者请注意:
>>>>本邮件含保密信息,若误收本邮件,请务必通知发送人并直接删去,不得使用、传
> 
>> 
>>>或复制本邮件。
>>>
>>>>进出邮件均受到本公司合规监控。邮件可能发生被截留、被修改、丢失、被破坏或
> 
>> 
>>>含计算机病毒等不安全情况。
>>>
>>>>***************************************************************
>>>>*****************************************************************
>>>>_______________________________________________
>>>>python-chinese list
>>>>python-chinese at lists.python.cn
>>>>http://python.cn/mailman/listinfo/python-chinese
>>>>
>>>
>>>
>>>_______________________________________________
>>>python-chinese list
>>>python-chinese at lists.python.cn
>>>http://python.cn/mailman/listinfo/python-chinese
>>>
>>
>>
>>--
>>Qiangning Hong
>>Get Firefox! 
>><http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
>>
> 
> 
> 


-- 
Qiangning Hong

 ___________________________________________________________
/ Well fine, go ahead and miss church, and when you die and \
| go to hell you can answer to SATAN!                       |
|                                                           |
\ Ok                                                        /
 -----------------------------------------------------------
 \     ____________
  \    |__________|
      /           /\
     /           /  \
    /___________/___/|
    |          |     |
    |  ==\ /== |     |
    |   O   O  | \ \ |
    |     <    |  \ \|
   /|          |   \ \
  / |  \_____/ |   / /
 / /|          |  / /|
/||\|          | /||\/
    -------------|
        | |    | |
       <__/    \__>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号