我跟随本指南在我的Ubuntu18.04机器上安装Linaro (64位双核)。与指南不同,我想要最新的Linaro版本。因此,我使用以下命令:
sudo apt-get install aptitude
sudo apt-get install gcc-multilib
wget -c https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz --no-check-certificate
tar xf gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
export CC=`pwd`/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
{CC}gcc --version它在最后一行失败,抱怨:
{CC}gcc: command not found有人能指点我吗?我做错了什么?这个过程在我使用Linaro6.4.1时失败了,如指南中所示。提前谢谢你。
正如N0rbert所指出的,我把$放在那里。产出如下:
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Linaro无处可寻。这个export命令是如何工作的,为什么不做它应该做的事情呢?
发布于 2018-11-28 15:37:17
下载Linaro并在~/.bashrc文件的底部添加路径。
PATH=$PATH:"Path_to_Linaro_Extract_Directory/bin“
https://askubuntu.com/questions/1070247
复制相似问题