akhil@akhil-Aspire-E1-571:~$ sudo apt-get install gcc-arm-linux-gnueabi
[sudo] password for akhil:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-arm-linux-gnueabi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
akhil@akhil-Aspire-E1-571:~$ sudo ln -s /usr/bin/arm-linux-gnueabi-gcc usr/bin/arm-linux-gcc
ln: failed to create symbolic link ‘usr/bin/arm-linux-gcc’: No such file or directory
akhil@akhil-Aspire-E1-571:~$ cd zee-bow/u-boot-Digilent-Dev/
akhil@akhil-Aspire-E1-571:~/zee-bow/u-boot-Digilent-Dev$ sudo ln -s /usr/bin/arm-linux-gnueabi-gcc usr/bin/arm-linux-gcc
ln: failed to create symbolic link ‘usr/bin/arm-linux-gcc’: No such file or directory
akhil@akhil-Aspire-E1-571:~/zee-bow/u-boot-Digilent-Dev$ sudo ln -s /home/SDK/2014.4/gnu/arm/lin/arm-xilinx-linux-gnueabi-gcc usr/bin/arm-linux-gcc
ln: failed to create symbolic link ‘usr/bin/arm-linux-gcc’: No such file or directory
akhil@akhil-Aspire-E1-571:~/zee-bow/u-boot-Digilent-Dev$
答案1
/
中缺少。usr/bin/arm-linux-gcc
使用
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc /usr/bin/arm-linux-gcc
答案2
使用命令
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc /usr/bin/arm-linux-gcc
编辑:正如您所评论的,您收到错误:
ln: failed to create symbolic link ‘/usr/bin/arm-linux-gcc’: File exists
这意味着已经存在同名的符号链接arm-linux-gcc
。如果名称没有问题,请保留另一个名称,或者如果您创建这个名称没有问题,则您的符号链接创建成功,或者您想确保使用以下命令删除符号名称并重新创建它。
unlink /usr/bin/arm-linux-gcc
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc /usr/bin/arm-linux-gcc