- -bash: g++-arm-linux-gnueabi: command not found
- Method 1: Double check the command name
- Method 2: Make sure the command is installed on your system
- Method 3: Make sure the path is set correctly
- gcc-arm-linux-gnueabi command not found
- 12 Answers 12
- bin/sh/ 1 arm-linux-gnueabi-g++ not found with eclipse
- 1 Answer 1
- arm-linux-gnueabi-g++: command not found
- tm23
- Comments
-bash: g++-arm-linux-gnueabi: command not found
When you are running commands on Linux, Unix or Mac OS system terminals, sometimes you will encounter the command not found error. All users and systems are different and the issue could be a number of different things.
Some of the reasons why you are getting g++-arm-linux-gnueabi: command not found could be:
- The command is misspelled (yes it does happen)
- The command or package isn’t installed on the system
- The location of the script or package is unknown
Lets go into detail on the different ways we can fix g++-arm-linux-gnueabi: command not found.
Method 1: Double check the command name
We make mistakes as humans and can easily misspell words or commands. Maybe you accidentally hit an extra word or added an unneeded space in the command.
Method 2: Make sure the command is installed on your system
Linux and Mac OS systems come with a lot of most common and popular packages or commands installed by default, but there are some versions that might be slimmed down a bit due to size and performance.
If your system doesn’t have a package or command installed, your package manager will be able to find a suitable package for your machine.
To install g++-arm-linux-gnueabi on Ubuntu Linux systems, you can try running the command:
sudo apt install g++-arm-linux-gnueabi
To install g++-arm-linux-gnueabi on CentOS or Redhat Linux systems, you can try running the command:
sudo yum install g++-arm-linux-gnueabi
Or for newer CentOS and Redhat systems, you can use the new DNF (Dandified YUM) command:
sudo dnf install g++-arm-linux-gnueabi
To install g++-arm-linux-gnueabi on Mac OS, you can try running the command:
brew install g++-arm-linux-gnueabi
Method 3: Make sure the path is set correctly
One of the most common mistakes is not setting the path for Linux or Mac OS packages. You need to let the shell prompt know the full absolute path of the script or add it to your PATH.
The PATH variable contains a list of directories with binary and executable files and commands. When you run a command, it checks to see if it exists in one of those PATH directories to run it.
To check the path or location of a command you can use the which command:
which ls to find the where the ls command is located.
which g++-arm-linux-gnueabi to find where g++-arm-linux-gnueabi is located.
If you want to run g++-arm-linux-gnueabi anywhere on your system, then you need to add it to your PATH:
You can add your package or script into one of those directories.
Or you can add a PATH to another directory that already contains your executable:
In this tutorial, you have learned how to fix the g++-arm-linux-gnueabi: command not found error.
If you found this help, please leave a comment below.
Related package errors
librust-harfbuzz-sys+build-native-harfbuzz-dev: #VALUE! When you are running commands on Linux, Unix …
librust-rkyv-derive-0+arbitrary-enum-discriminant-dev: #VALUE! When you are running commands on Linux, Unix …
gcc-arm-linux-gnueabi command not found
I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binaries. I have tried with ./ and without and putting it in the PATH and it keeps telling me «Command not Found» yet the file is there in the folder right in front of me. Then I tried sudo apt-get install gcc-arm-linux-gnueabi except after it says it has installed successfully, I cannot find it with whereis gcc-arm-linux-gnueabi. Can anyone help?
if you install from source code, you need compile the source and install the bin. However, if you download compiled bin, you can run it. could give more information, after you use apt to install it. try to use sudo find / -name «*gcc-arm*» to find if there are some bin
apt-get install ia32-libs. You are trying to run 32 bit binaries on a 64 bit linux install. Been there, done that.
12 Answers 12
sudo apt-get install gcc-arm*
Are you compiling on a 64-bit OS? Try:
sudo apt-get install ia32-libs
I had the same problem when trying to compile the Raspberry Pi kernel. I was cross-compiling on Ubuntu 12.04 64-bit and the toolchain requires ia32-libs to work on on a 64-bit system.
On ubuntu, when i give this command, it throws error — Package ia32-libs is not available, but is referred to by another package.
CodeSourcery convention is to use prefix arm-none-linux-gnueabi- for all executables, not gcc-arm-linux-gnueabi that you mention. So, standard name for CodeSourcery gcc would be arm-none-linux-gnueabi-gcc .
After you have installed CodeSourcery G++, you need to add CodeSourcery directory into your PATH .
Typically, I prefer to install CodeSourcery into directory like /opt/arm-2010q1 or something like that. If you don’t know where you have installed it, you can find it using locate arm-none-linux-gnueabi-gcc , however you may need to force to update your locate db using sudo updatedb before locate will work properly.
After you have identified where your CodeSourcery is installed, add it your PATH by editing ~/.bashrc like this:
Also, it is customary and very convenient to define
CROSS_COMPILE=arm-none-linux-gnueabi-
in your .bashrc , because with CROSS_COMPILE defined, most tools will automatically use proper compiler for ARM compilation without you doing anything.
bin/sh/ 1 arm-linux-gnueabi-g++ not found with eclipse
I’m trying to cross compile with eclipse. newbie on this. My problem: When I try to build my code it says : bin/sh/ 1 arm-linux-gnueabi-g++ not found here is my screenshot:
add android toolchain bin to your path, there is a scipt that will built the correct one for you under ndk dir
arm-linux-gnueabi-g++ is the compiler insteaf of classic g++, you have to build u toolchain that include it by runing a script from the ndk, then add the bin directory of that toolchain to your path, the script name is ‘make-standalone-toolchain.sh’ search for it on google, you’ll get more info on how to proceed
1 Answer 1
I had a same problem and i solved. If you copy arm-liunx-guneabi-g++ from Eclipse console and paste to terminal and execute, then you may see same message. like this Ubuntu32bit:~/workspace/HelloWorldTest$ arm-linux-gnueabi-g++ arm-linux-gnueabi-g++: command not found
But if you type to terminal using tab, then you may see following message. Ubuntu32bit:~/workspace/HelloWorldTest$ arm-linux-gnueabi-g++ arm-linux-gnueabi-g++: fatal error: no input files compilation terminated.
I don’t know Why this happened. It’s same string «arm-linux-gnueabi-g++». So solution is that «arm-linux-gnueabi-g++» copy from terminal then paste to Eclipse’s project, Properties. Settings -> GCC C++ Compiler GCC C++ Linker
arm-linux-gnueabi-g++: command not found
for kernel or uboot cross compiling below commands are enough:
sudo apt-get install -y gcc-arm-linux-gnueabihf sudo apt-get install -y libncurses-dev sudo apt-get install -y libqt4-dev pkg-config sudo apt-get install -y u-boot-tools sudo apt-get install -y device-tree-compiler
but for c++ cross compiling you should install g++ using below command:
sudo apt-get install g++-arm-linux-gnueabihf
tm23
Updated on August 21, 2022
Comments
I am trying to compile C++ code for ARM architecture. I don’t know exactly the full name of processor (waiting for information from some hardware guy), I know only it is some ARM. The problem which I have. I use command in order to compile my resource files for ARM architecture:
arm-linux-gnueabi-g++ myApp.cpp -g -Wall -o myApp
arm-linux-gnueabi-gcc myApp.cpp -g -Wall -lstdc++ -o myApp
-bash: arm-linux-gnueabi-g++: command not found
-bash: arm-linux-gnueabi-gcc: command not found
locate arm-none-linux-gnueabi- locate arm-linux-gnueabihf-g++ locate arm-linux-gnueabihf-gcc
locate arm-linux-gnueabi-g++ locate arm-linux-gnueabi-gcc
I am not allowed to do some tries and install arm package, because this linux is running on some server to which many developers are attached. setting PATH in shell:
PATH=$PATH:/opt/eds/x86_64/13.1-2/embedded/ds-5/bin/arm-linux-gnueabihf-g++
also doesn’t solve the issue because additional problems occurs, I cannot connect to linux server. Thanks in advance for any help.