1. to install it under the root user, the installation may fail under other users.
2. If the "floating point exception" is displayed after the installation is successful, it may be your Linux
Generally, you can reinstall another version of Linux to solve this problem.
How to Make arm-Linux-GCC available in any directory:
The current directory is/home/Jun/arm.
$ Sudo CP-r usr/
(PS: some tools that will be used later to create a file system will be automatically copied to the corresponding sbin directory)
$ CP-r opt/embedsky /*./
(PS: it will copy 4.3.3 and crosstool-***. It will be slow if there are many files)
Then you can drop OPT and usr to RM.
$ Rm-RF opt USR
Then we add the/home/Jun/ARM/4.3.3/bin directory to the environment variable.
$ Sudo VI/etc/environment
There is only one path in it. Do not forget to separate it. And execute:
$ Export Path = $ path:/home/Jun/ARM/4.3.3/bin
In this way, the current environment will be valid, and the modified environment file will be valid after the next boot.
Or modify the/etc/profile file: Add the following at the end to save the/etc/profile file:
Export Path = $ path:/home/Jun/ARM/4.3.3/bin
Run the following command to refresh the path.
$ Source/etc/profile
Then let's verify:
$ Arm-Linux-gcc-V