如何在 ubuntu 13.04 中安装 gcc-4.5-arm-linux-gnueabi?

如何在 ubuntu 13.04 中安装 gcc-4.5-arm-linux-gnueabi?

我试过 sudo apt-get install gcc-4.5-arm-linux-gnueabi

我收到此错误:

E: Package 'gcc-4.5-arm-linux-gnueabi' has no installation candidate

我怎样才能下载它?

答案1

在 Ubuntu 13.04 中,版本是 4.7。有什么特殊原因导致你需要 4.5 而不能使用更高版本的 4.7?

可以搜索 APT 存储库中的包,为了获得更好的结果,您可以使用正则表达式:

$ sudo apt-cache search gcc-4.*-arm-linux-gnueabi$
gcc-4.7-arm-linux-gnueabi - GNU C compiler
gcc-4.7-multilib-arm-linux-gnueabi - GNU C compiler (multilib files)

简而言之:

$ - marks that the string matching should end there
* - matches any character

参考:

http://manpages.ubuntu.com/manpages/raring/man8/apt-cache.8.html

http://www.zytrax.com/tech/web/regex.htm

相关内容