An execution error occurred after installing GCC An error occurred while loading the C file
gcc: error trying to exec 'cc1': execvp: No such file or directory
After adding environment variables
whereis cc1
Find out where CC1 is
/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1
Position of CC1 in my centos7
If you can’t find it
locate cc1
Once found, copy
/usr/libexec/gcc/x86_64-redhat-linux/4.8.2
then
PATH="$PATH":/usr/libexec/gcc/x86_64-redhat-linux/4.8.2
Import environment variables
export PATH
That’s it
Read More:
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- CentOS/RHEL 7: How to Reinstall GRUB2 from Rescue Mode (EFI)
- Linux Install Bee and Execute Error: bash: bee: command not found
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- [Solved] Error: Failed to download metadata for repo ‘appstream‘
- [Solved] Ubuntu pip Install Error: which is not on PATH
- [Solved] source /etc/profile Error: not a valid identifier
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] Error in OpenSSL when compiling code locally for raspberry pie
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- error while loading shared libraries: libz.so.1 [How to Solve]
- [Solved]unpacking of archive failed: cpio: lstat failed – Not a directory
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- ./configure Command Execute error (Centos7 Install erlang)
- MAC Adb Shell Error: -bash: adb: command not found, adb