From: "☂Josh Chia (謝任中)" <joshchia@gmail.com>
To: 李金龙 <ljl18583113302@163.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Request:How to install gcc in ubuntu18.04 int the way of offline?
Date: Fri, 15 Oct 2021 14:26:40 +0800 [thread overview]
Message-ID: <CALxtSbQGSDGRpnVzuyoLerH_B+RPhuMNG5gU=y8qHPhXrUys4Q@mail.gmail.com> (raw)
In-Reply-To: <73119125.3793.17c826b1285.Coremail.ljl18583113302@163.com>
What is MCU? Microcontroller unit? What's the relationship to apt-get?
The problem is just as the error message says. You can't build gcc without
an existing C compiler. Perhaps your real problem is getting "apt-get
install" to work, and not building gcc from scratch without an existing
compiler.
On Fri, Oct 15, 2021 at 1:27 PM 李金龙 via Gcc-help <gcc-help@gcc.gnu.org>
wrote:
> Dear Ladies or Gentelman:
>
> My MCU can’t connect to the ubuntu’s apt-source(like Ubuntu,aliyun,163
> etc). So It certainly can’t use the command “sudo apt-get install gcc" to
> make it all right.
> So I want to know how to install gcc in the way of offline in
> ubuntu18.04.
> I search the solution from the internet then find one:
> https://blog.csdn.net/weixin_40671425/article/details/92762839. But
> unfortunately, it worked wrong on the steps: " ./configure
> --disable-multilib --prefix=/data2/upchen/MyPackages/gcc/gcc-5.4.0
> --enable-add-ons ". The result is as follows:
> ---------------------linux@test:~/gcc-5.4.0$ ./configure
> --disable-multilib --prefix=/data2/upchen/MyPackages/gcc/gcc-5.4.0
> --enable-add-ons
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-unknown-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for a sed that does not truncate output... /bin/sed
> checking for gawk... gawk
> checking for libatomic support... yes
> checking for libcilkrts support... yes
> checking for libitm support... yes
> checking for libsanitizer support... yes
> checking for libvtv support... yes
> checking for gcc... no
> checking for cc... no
> checking for cl.exe... no
> configure: error: in `/home/linux/gcc-5.4.0':
> configure: error: no acceptable C compiler found in $PATH
> See `config.log' for more details.
>
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> the config.log is in attachment.
> Thanks for the kind of selfless help in good faith.
>
>
>
next prev parent reply other threads:[~2021-10-15 6:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 5:27 李金龙
2021-10-15 6:26 ` ☂Josh Chia (謝任中) [this message]
2021-10-15 11:26 ` Xi Ruoyao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALxtSbQGSDGRpnVzuyoLerH_B+RPhuMNG5gU=y8qHPhXrUys4Q@mail.gmail.com' \
--to=joshchia@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=ljl18583113302@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).