installing python2.4.1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Belyh G.P.

    #1

    installing python2.4.1

    While I try to install python arise an error:

    I type
    ./configure
    ....
    ....
    checking for g++ ... no
    checking for gcc ... gcc
    checking for C++ compiler default output file name ... configure: error:
    C++ compiler cannot create executables
    See 'config.log' for more details.


    config.log is

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by python configure 2.4, which was
    generated by GNU Autoconf 2.59. Invocation command line was

    $ ./configure

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = zope
    uname -m = i686
    uname -r = 2.6.8-2-686
    uname -s = Linux
    uname -v = #1 Mon Jan 24 03:58:38 EST 2005

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = i686
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /sbin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /usr/bin/X11
    PATH: /usr/local/sbin
    PATH: /usr/local/bin


    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:1444: checking MACHDEP
    configure:1578: result: linux2
    configure:1584: checking EXTRAPLATDIR
    configure:1599: result:
    configure:1618: checking for --without-gcc
    configure:1667: result: no
    configure:1673: checking for --with-cxx=<compiler>
    configure:1694: result: no
    configure:1713: checking for c++
    configure:1742: result: no
    configure:1713: checking for g++
    configure:1742: result: no
    configure:1713: checking for gcc
    configure:1729: found /usr/bin/gcc
    configure:1739: result: gcc
    configure:1779: checking for C++ compiler default output file name
    configure:1782: gcc conftest.cc >&5
    gcc: installation problem, cannot exec `cc1plus': No such file or directory
    ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^6
    Where I can find "conftest.c c" or "cc1plus" ? I cannot find both in
    archive... (archive is "Python-2.4.1.tgz" from
    http://www.python.org/ftp/python/2.4...hon-2.4.1.tgz). It's my
    problem or no?
    configure:1785: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define _GNU_SOURCE 1
    | #define _NETBSD_SOURCE 1
    | #define __BSD_VISIBLE 1
    | #define _BSD_TYPES 1
    | #define _XOPEN_SOURCE 600
    | #define _XOPEN_SOURCE_E XTENDED 1
    | #define _POSIX_C_SOURCE 200112L
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:1824: error: C++ compiler cannot create executables
    See `config.log' for more details.

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    ac_cv_env_CC_se t=
    ac_cv_env_CC_va lue=
    ac_cv_env_CFLAG S_set=
    ac_cv_env_CFLAG S_value=
    ac_cv_env_CPPFL AGS_set=
    ac_cv_env_CPPFL AGS_value=
    ac_cv_env_CPP_s et=
    ac_cv_env_CPP_v alue=
    ac_cv_env_LDFLA GS_set=
    ac_cv_env_LDFLA GS_value=
    ac_cv_env_build _alias_set=
    ac_cv_env_build _alias_value=
    ac_cv_env_host_ alias_set=
    ac_cv_env_host_ alias_value=
    ac_cv_env_targe t_alias_set=
    ac_cv_env_targe t_alias_value=
    ac_cv_prog_CXX= gcc

    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##

    AR=''
    BASECFLAGS=''
    BLDLIBRARY=''
    BLDSHARED=''
    BUILDEXEEXT=''
    CC=''
    CCSHARED=''
    CFLAGS=''
    CFLAGSFORSHARED =''
    CONFIGURE_MACOS X_DEPLOYMENT_TA RGET=''
    CONFIG_ARGS=''
    CPP=''
    CPPFLAGS=''
    CXX='gcc'
    DEFS=''
    DLINCLDIR=''
    DLLLIBRARY=''
    DYNLOADFILE=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    EXTRAMACHDEPPAT H=''
    EXTRAPLATDIR=''
    HAVE_GETHOSTBYN AME=''
    HAVE_GETHOSTBYN AME_R=''
    HAVE_GETHOSTBYN AME_R_3_ARG=''
    HAVE_GETHOSTBYN AME_R_5_ARG=''
    HAVE_GETHOSTBYN AME_R_6_ARG=''
    INSTALL_DATA=''
    INSTALL_PROGRAM =''
    INSTALL_SCRIPT= ''
    INSTSONAME=''
    LDFLAGS=''
    LDLAST=''
    LDLIBRARY=''
    LDLIBRARYDIR=''
    LDSHARED=''
    LIBC=''
    LIBM=''
    LIBOBJS=''
    LIBRARY=''
    LIBS=''
    LIBTOOL_CRUFT=' '
    LINKCC=''
    LINKFORSHARED=' '
    LN=''
    LTLIBOBJS=''
    MACHDEP='linux2 '
    MACHDEP_OBJS=''
    MAINOBJ='python .o'
    OBJEXT=''
    OPT=''
    OTHER_LIBTOOL_O PT=''
    PACKAGE_BUGREPO RT='http://www.python.org/python-bugs'
    PACKAGE_NAME='p ython'
    PACKAGE_STRING= 'python 2.4'
    PACKAGE_TARNAME ='python'
    PACKAGE_VERSION ='2.4'
    PATH_SEPARATOR= ':'
    PYTHONFRAMEWORK =''
    PYTHONFRAMEWORK DIR='no-framework'
    PYTHONFRAMEWORK INSTALLDIR=''
    PYTHONFRAMEWORK PREFIX=''
    RANLIB=''
    RUNSHARED=''
    SGI_ABI=''
    SHELL='/bin/sh'
    SHLIBS=''
    SIGNAL_OBJS=''
    SO=''
    SOVERSION='1.0'
    SRCDIRS=''
    THREADHEADERS=' '
    THREADOBJ=''
    TRUE=''
    UNICODE_OBJS=''
    USE_SIGNAL_MODU LE=''
    USE_THREAD_MODU LE=''
    VERSION='2.4'
    ac_ct_CC=''
    ac_ct_RANLIB=''
    bindir='${exec_ prefix}/bin'
    build_alias=''
    datadir='${pref ix}/share'
    exec_prefix='NO NE'
    host_alias=''
    includedir='${p refix}/include'
    infodir='${pref ix}/info'
    libdir='${exec_ prefix}/lib'
    libexecdir='${e xec_prefix}/libexec'
    localstatedir=' ${prefix}/var'
    mandir='${prefi x}/man'
    oldincludedir='/usr/include'
    prefix='NONE'
    program_transfo rm_name='s,x,x, '
    sbindir='${exec _prefix}/sbin'
    sharedstatedir= '${prefix}/com'
    sysconfdir='${p refix}/etc'
    target_alias=''

    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##

    #define _BSD_TYPES 1
    #define _GNU_SOURCE 1
    #define _NETBSD_SOURCE 1
    #define _POSIX_C_SOURCE 200112L
    #define _XOPEN_SOURCE 600
    #define _XOPEN_SOURCE_E XTENDED 1
    #define __BSD_VISIBLE 1

    configure: exit 77





  • Grig Gheorghiu

    #2
    Re: installing python2.4.1

    I had a similar problem when trying to compile Python 2.4.1 on AIX. The
    configure script complained about not finding 'cc_r'. I simply did 'ln
    -s /usr/bin/gcc /usr/bin/cc_r' and that solved my problem. You may
    consider doing the same for cclplus.

    Grig

    Comment

    • Belyh G.P.

      #3
      Re: installing python2.4.1

      Grig Gheorghiu wrote:
      [color=blue]
      >I had a similar problem when trying to compile Python 2.4.1 on AIX. The
      >configure script complained about not finding 'cc_r'. I simply did 'ln
      >-s /usr/bin/gcc /usr/bin/cc_r' and that solved my problem. You may
      >consider doing the same for cclplus.
      >
      >Grig
      >
      >
      >[/color]
      Thank for your letter.
      Advice has helped me, but not absolutely as I expected :). Now instead
      of a mistake installation process stoped and not responsed. So I shall
      use the old Python(2.1.3) while has not arrived yet our manager. Once
      again thank.

      Comment

      • TPJ

        #4
        Re: installing python2.4.1

        There are two things I don't like about messages you got.
        [color=blue]
        > checking for g++ ... no[/color]

        and
        [color=blue]
        > C++ compiler cannot create executables[/color]

        There are two possibilities I can think of now. The first is you have
        no g++ installed. In this case you should install it (I think it would
        be very easy, you could install it from the proper deb package).

        The second is there is a working g++, but ./configure fails to detect
        it.

        BTW: Have you tried to compile a simple C program by yourself?

        Comment

        Working...