Unable to install gcc offline, no acceptable C compiler found in $PATH

Hello,

Not having access to internet on my laptop because of a non compatible driver (yet functional on Windows) - I configure a dualboot -

I am trying to install gcc, which is needed for the “make” command needed to install rtw89 to get internet on my laptop.

But shortly after, I downloaded the gcc-11.2 offline using ftp mirrors,
In the gcc folder, I tried the following:

./configure --prefix=/platform \
    --enable-shared \
    --enable-threads=posix \
    --enable-__cxa_atexit \
    --enable-clocale=gnu \
    --enable-languages=all \
   && make \ && make install

Thus giving me the following result :

zsh: correct 'make' to 'qmake' [nyae]? n
zsh: correct 'make' to 'qmake' [nyae]? n
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-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... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/mypath/gcc-11.2.0/gcc-11.2.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

How am I supposed to get out of this loop?

I looked on the internet, and it seems that a c-compiler should have been present in my manjaro installation … I have installed the full version though.

Connect to the internet using cable or usb-tethering.

Then install the package base-devel which will provide necessary tools - you will most likely also need the headers for your kernel.

sudo pacman -Syu base-devel $KERNEL-headers dkms --needed

Then build using pamac

pamac build rtw89-dkms-git
2 Likes

Hi, and thanks for quick reply

Unfortunately I don’t have any Ethernet port on my laptop and can’t use this solution… it would have been too easy!

Then use usb-tethering using your charger cable and your phone.

For your info - you can build the driver using the AUR PKGBUILD named rtw89-dkms-git

God, thank you so much!

I hadn’t even thought about this option and I’ve been struggling with this issue for almost 4 hours, and you resolved it in few minutes …

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.