How to configure GCC environment variable in Linux?
To configure the GCC environment variables in Linux, you can follow these steps:
- Open the terminal.
- Configuration file for the Bash shell
- Open the file named .bashrc in the home directory.
- Add /usr/local/bin to the existing PATH variable.
- Save and close the file.
- Execute the ~/.bashrc file.
- What version of gcc are you using?
Now, you should have successfully set up the GCC environment variable.