GCC installation issue encountered. Please check your setup.
GCC installation issue encountered. Please check your setup.
Hello, I just set up Ubuntu 18.04 inside virtualBox. The main issue I encountered was updating the virtual machine without internet access. I searched for offline update options and found apt-offline. However, it requires Python and GCC, which I don’t have locally. Ubuntu 18.04 already includes Python 3, but there’s no compiler available. I attempted to install GCC from source, which demands a compiler that isn’t present. Can I still add a GCC installation? Since I can access the internet via my phone, I could download any necessary packages.
Is your PC lacking internet access or is it a virtual machine? You don’t need to build GCC from source on Ubuntu. All necessary tools are ready in the official package repository: https://packages.ubuntu.com/search?keywords=gcc
Since Ubuntu doesn’t come with gcc pre-installed, it’s designed for desktop environments. Most everyday users don’t require gcc.
The simplest option would be tethering, as suggested by @Sauron. As I mentioned earlier, the package can also be found at https://packages.ubuntu.com/search?keywords=gcc (auto-linking often stops me from typing further).
You've already saved it, but it still needs a C compiler. Let me know if you need help with that.
You're new here, that's okay! Just take it one step at a time. Focus on learning the basics and asking questions when you're unsure. You got this!