Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, having a problem compiling software. I am trying to compile software prerequesits for gcc but how can I do this if I don't have compiling software. Every time ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    10

    Compiling software

    Hi all, having a problem compiling software. I am trying to compile software prerequesits for gcc but how can I do this if I don't have compiling software. Every time I try to load these software I get a compiling error. See below! Also, doesn't Red Hat software come with compiling software?

    List of errors.
    Exp 1
    configure: error: could not find a working compiler
    Exp 2
    configure: error: C compiler cannot create executables
    Exp 3
    ERROR: Cannot find suitable C compiler! If you do have
    one, you may have to adjust your PATH environment
    variable. Otherwise you can set the CC variable to the
    full compiler path.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Everything you need is in the repositories. You should almost always use your package manager to install software over compiling from source.

    For RHEL5 install with
    Code:
    su -
    yum groupinstall 'Development Tools'

  3. #3
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,956
    what are you trying to compile? new users should very rarely have to compile from source.....even advanced users rarely do unless they are using a distro like Gentoo...much easier to go through the package manager.
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  4. #4
    Just Joined!
    Join Date
    Aug 2009
    Posts
    10
    Still have problems. Everytime I try to configure stuff I get the same error, and I do have Gcc installed.
    [root@einstein gcc-4.4.1]# gcc --version
    gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    I tried using that command you posted but this is what I got.
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    No module named yum

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.3.4 (#1, Feb 18 2008, 17:17:04)
    [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)

    Not sure what I am doing??????????? have Linux overload.
    My original issue was trying to load a DPIO2 driver. I followed there process but when I did a make file I would get an error. See below:
    make ensure_dir DIR=/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel/../../../lib/x86-linux-2.6.x;
    make[1]: Entering directory `/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel'
    make[1]: Leaving directory `/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel'
    make -C /lib/modules/2.6.9-89.0.11.EL/build M=/root/Desktop/dpio2-drv-src-x86-linux/src/x86-linux-2.6.x/kernel modules
    make[1]: Entering directory `/lib/modules/2.6.9-89.0.11.EL/build'
    make[1]: *** No rule to make target `modules'. Stop.
    make[1]: Leaving directory `/lib/modules/2.6.9-89.0.11.EL/build'
    make: *** [build] Error 2
    Some told me I need gcc or compliling software to do this but I am on RH4 and it should be installed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...