Similar compiler question

Ask a Question related to Ubuntu, Design and Development.

  1. #1

    Default Similar compiler question

    When I open up a terminal window and type:

    gcc -v

    I get the error:

    bash:gcc:command not found

    Is there a certain directory I should be running gcc from? I'm afraid
    I'm totally new to to Linux, and one of the things I was looking forward
    to was ease of use when it came to practicing my meager coding skills. I
    did try:

    slocate gcc

    and got a long list of locations, so I know it's there. Is it wrong to
    assume that I can access the C compiler from any directory? I was kind
    of hoping I could do so. :-)

    TIA,
    Ian
    --
    [url]http://sundry.ws/[/url]
    Ian Rastall Guest

  2. Similar Questions and Discussions

    1. Anything similar to MenuMachine for DW?
      Is there an extension that is similar to MenuMachine for GoLive? There are people trying to switch to DW from GoLive and I am wondering about...
    2. what is similar to CORBA in .Net
      Hi all, I need to build a distributed application. I'm confused on what technology to use to develop my project. Ideally I would use CORBA,...
    3. Compiler Error Message: The compiler failed with error code 128.
      Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me...
    4. Extension similar to this one.....
      If you look at the following page and scroll right down to the bottom. you will see the photo of maralyn monroe and also the artistic frame below...
    5. DragAnyWindow or similar for OS X?
      One of my favorite Control Panels in OS 9 was DragAnyWindow 4.5 by Alessandro Levi Montalcini. Is there a similar application for OS X?......
  3. #2

    Default Re: Similar compiler question

    On Sun, 09 Apr 2006 21:08:45 +0000, Ian Rastall wrote:
    > When I open up a terminal window and type:
    >
    > gcc -v
    >
    > I get the error:
    >
    > bash:gcc:command not found
    Usually, gcc is a symbolic link to the actual gcc-versionnumber, so if you
    wish to run the compiler, change directory to /usr/bin and then sudo ln -s
    gcc-versionnumber (e.g. gcc-3.4) gcc and you should then be able to run
    the compiler as you wish. The command would look like this: sudo ln -s
    gcc-3.4 gcc (using my example version number).

    Egon Spengler Guest

  4. #3

    Default Re: Similar compiler question

    Egon Spengler wrote:
    > Usually, gcc is a symbolic link to the actual gcc-versionnumber, so
    if you
    > wish to run the compiler, change directory to /usr/bin and then sudo ln -s
    > gcc-versionnumber (e.g. gcc-3.4) gcc and you should then be able to run
    > the compiler as you wish. The command would look like this: sudo ln -s
    > gcc-3.4 gcc (using my example version number).
    Hey Egon. I tried as you suggested, it asked for my password, told me
    that gcc existed, then when I typed:

    gcc -v

    I got the same error message. I did manage to locate gcc, in the
    /usr/lib directory, but typing that into the prompt *in that directory*
    yields the same error. It says "command not found", not "file not
    found", so I wonder if I'm typing in the wrong command. I guess I have
    some work ahead of me here. :-)

    Ian
    --
    [url]http://sundry.ws/[/url]
    Ian Rastall Guest

  5. #4

    Default Re: Similar compiler question

    On Mon, 10 Apr 2006 01:57:21 +0000, Ian Rastall wrote:
    > Egon Spengler wrote:
    > > Usually, gcc is a symbolic link to the actual gcc-versionnumber, so
    > if you
    >> wish to run the compiler, change directory to /usr/bin and then sudo ln -s
    >> gcc-versionnumber (e.g. gcc-3.4) gcc and you should then be able to run
    >> the compiler as you wish. The command would look like this: sudo ln -s
    >> gcc-3.4 gcc (using my example version number).
    >
    > Hey Egon. I tried as you suggested, it asked for my password, told me
    > that gcc existed, then when I typed:
    >
    > gcc -v
    >
    > I got the same error message. I did manage to locate gcc, in the
    > /usr/lib directory, but typing that into the prompt *in that directory*
    > yields the same error. It says "command not found", not "file not
    > found", so I wonder if I'm typing in the wrong command. I guess I have
    > some work ahead of me here. :-)
    Does Synaptic think that you have the development tools package installed?

    --
    mark south; echo [email]znexfbhgu2000@lnubb.pb.hx[/email]|tr a-z n-za-m
    "I can trace my ancestry back to a protoplasmal primordial atomic
    globule. Consequently, my family pride is something inconceivable."
    -- Gilbert & Sullivan, The Mikado

    Mark South Guest

  6. #5

    Default Re: Similar compiler question

    Mark South wrote:
    > Does Synaptic think that you have the development tools package installed?
    Ah, no it doesn't. I'll mess around with it and see if more questions
    arise. Thanks for the heads up!

    Ian
    --
    [url]http://sundry.ws/[/url]
    Ian Rastall Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139