Announcement

Collapse
No announcement yet.

Troubles with gcc and make

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

    Troubles with gcc and make

    Hi rescue workers ;-)

    Newbie needs some help. Ok, I am not a total newbie, but I have troubles with a very elementary thing. I've recently installed kubuntu and when I type 'gcc' or 'make' in Konsole it says command not found:

    laptop:/$ gcc
    bash: gcc: command not found
    laptop:/$ make
    bash: make: command not found


    Problem is that apt-get install says that both utils are already installed!

    laptop:/usr/lib/gcc/i486-linux-gnu/4.0.3/include$ sudo apt-get install gcc-4.0-base
    Reading package lists... Done
    Building dependency tree... Done
    gcc-4.0-base is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Now...the question is .... where?

    When I search the filesystem with:
    find / -name gcc
    , it only finds a directory which contains:
    laptop:/usr/lib/gcc/i486-linux-gnu/4.0.3/include$ ls
    mcpp_gcc40_predef_old.h  mcpp_gxx40_predef_old.h
    mcpp_gcc40_predef_std.h  mcpp_gxx40_predef_std.


    Can somebody help me please!?

    Thanks in advance.

    #2
    Re: Troubles with gcc and make

    Maybe you need to be root.

    Did you try sudo gcc, sudo make?

    Comment


      #3
      Re: Troubles with gcc and make

      Thank you for the fast reply. However, it did not help. Same result

      Thanks anyway!

      Comment


        #4
        Re: Troubles with gcc and make

        To see if they really are installed, use

        Code:
        which gcc
        it should print out '/usr/bin/gcc'

        If not...I suggest you install/reinstall 'build-essential' metapackage...it contains the basic tools for compiling

        Comment


          #5
          Re: Troubles with gcc and make

          Kubuntu doesn't install any of this by default. You'll have to run adept and install the following all yourself:
          gcc (it will install the latest version for you)
          g++
          gdb
          binutils
          bison
          flex
          make
          automake
          autoconf

          You'll probably want to look while you pick these, for the doc files, which you'll want to install as well

          Comment


            #6
            Re: Troubles with gcc and make

            How about installing build-essential instead? It will install everything needed to compile from source, including most of the stuff Goofus listed.
            Jucato's Data Core

            Comment

            Working...
            X