Announcement

Collapse
No announcement yet.

C compiler cannot create executables

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    C compiler cannot create executables

    I am trying to download a VPN client and I get this when I drag the config file into the terminal:

    mattbracewell@ubuntu:~$ /home/mattbracewell/configure
    checking build system type... i686-pc-linux-gnulibc1
    checking host system type... i686-pc-linux-gnulibc1
    checking target system type... i686-pc-linux-gnulibc1
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for -p flag to install... yes
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for kde-config... /usr/bin/kde-config
    checking where to install... /usr (as returned by kde-config)
    checking for style of include used by make... GNU
    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.

    I don't understand why it's doing this. This has also happened when I attempted to install a couple of other things. Can anyone help? Sorry for the noob question...

    #2
    Re: C compiler cannot create executables

    Hi.

    Please try the following (if not already done so)

    sudo apt-get install g++

    - if still no joy try

    sudo apt-get build-essential

    - also you should d to the directory and use

    ./configure

    Comment


      #3
      Re: C compiler cannot create executables

      Ok it fixed that error message. It configures for a while now and then it says:

      checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!

      Any ideas? Am I missing a file in the installation package?

      Comment


        #4
        Re: C compiler cannot create executables

        Yes you are.

        What dependencies do you need ?

        Also have you checked the thing you are trying to build is not available in apt ? (what is the name of the client ?)

        The two main X development packages I can think of the top of my head are (try this):-

        sudo apt-get install xserver-xorg-dev

        (if no joy also try)

        sudo apt-get install xorg-dev

        Comment


          #5
          Re: C compiler cannot create executables

          The VPN client I need is the Cisco VPN.

          I did you what you said (the second command worked) and this is the new error message I got:

          checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!

          Comment


            #6
            Re: C compiler cannot create executables

            Hi.

            You could try (i'm not 100% sure ..)

            sudo apt-get install libqt3-mt-dev

            - if no joy - load adept and search for packages with qt in the name (as your compiling you will need the -dev packages..)

            Also have you tried KVpnc ( KVpnc is a KDE frontend for various vpn clients.)

            It supports :
            * Cisco-compatible VPN client (vpnc)
            * IPSec (freeswan, openswan, racoon)
            * Point-to-Point Tunneling Protocol (PPTP) client (pptp-linux)
            * Virtual Private Network daemon (openvpn)

            - to try it use (you can always remove it after..)

            sudo apt-get install kvpnc

            - also you can use adept to search for packages (in name and descriptions) for cisco

            Comment

            Working...
            X