Re: GCC 6.3.0 build fails on Ubuntu 20.04: make: *** [Makefile:924: all] Error 2 - libitm / libquadmath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan / Hi All,

Thank you very much for the very prompt reply and hint.

You are right! That was rather a general Ubuntu related question. I'm sorry for that.

I took the N.B. on PATH for the rest of my life. Thanks much.

Back to the previous topic. The truth is that the directory "/usr/local/gcc-6.3/bin" was already correctly added to PATH after editing ".bashrc". I've just checked it now.

How I can see now, the reasons for throwing a "sudo: gcc-6: command not" found output after "sudo gcc-6 --version" command are two fold:

(1) the name of the file in that specific folder "usr/local/gcc-6.3/bin" is not "gcc-6" but "gcc-6.3" in my case;

(2) with the "sudo" prefix it does not work only without it. cf. below.

rawpointer@rawpointer-ubuntu:~$ gcc-6.3 --version
gcc-6.3 (GCC) 6.3.0
Copyright (C) 2016 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.

rawpointer@rawpointer-ubuntu:~$ sudo gcc-6.3 --version
[sudo] password for rawpointer:
sudo: gcc-6.3: command not found

I think it should be fine now, and I can go to direct MATLAB (which is the only reason why I built the legacy GCC 6.3.0 from source) to pick the path for GCC 6.3.0.

Thank you once again. I highly appreciate your support.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, January 27, 2021 4:48 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:

> On Wed, 27 Jan 2021 at 15:45, lordmund via Gcc-help
> gcc-help@xxxxxxxxxxx wrote:
>
> > The GCC 6.3.0 was installed in the below directory of my computer:
> > /usr/local/gcc-6.3
> > However, my Ubuntu (terminal) cannot find the path to the recently installed GCC 6.3.0, which I find very interesting why.
>
> Because you installed it to a directory that isn't in your PATH. This
> is normal, and how linux/unix works.
>
> Either run /usr/local/gcc-6.3/bin/gcc or add /usr/local/gcc-6.3/bin to
> your PATH.
>
> N.B. this is not a GCC question, this is a basic "how do I use
> ubuntu?" question.






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux