简体   繁体   English

如何在 64 位 Ubuntu 系统上安装一个简单的 Intel C/C++ 编译器?

[英]How to install a simple Intel C/C++ compiler on a 64-bit Ubuntu system?

I need to compile c/c++ code, by running a build.sh file.我需要通过运行 build.sh 文件来编译 c/c++ 代码。 The instruction on the program (that i want to run) says it needs to be compiled by a Intel's compiler 1 .程序上的指令(我想运行)说它需要由英特尔的编译器1编译。

After searching on the net I came across information on what to do.在网上搜索后,我遇到了有关该做什么的信息。 Some people said that we must install first a 32-bit libraries: https://help.ubuntu.com/community/InstallingCompilers有人说要先安装一个32位的库: https : //help.ubuntu.com/community/InstallingCompilers

Others said that we must, first of any installation, change some things: http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu其他人说我们必须首先在任何安装中更改一些东西: http : //software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu

In the other hand, Intel's page show many suites: http://software.intel.com/en-us/c-compilers另一方面,英特尔的页面显示了许多套件: http : //software.intel.com/en-us/c-compilers

while the only thing that I want is simply Intel's C/C++ compiler.而我唯一想要的只是英特尔的 C/C++ 编译器。

Can somebody be so gentle to give me the directions on how to install a Intel's compiler on a 64-bit Ubuntu system?有人能这么温柔地给我指导如何在 64 位 Ubuntu 系统上安装英特尔的编译器吗?


Footnote 1 / Editor's note: other x86 compilers including GCC and clang (and MSVC on Windows), support Intel's SSE/AVX intrinsic functions , but Intel's compiler comes with some libraries such as SVML (eg SIMD sin and exp ) and MKL which some code might need.脚注 1 / 编者注:其他 x86 编译器,包括 GCC 和 clang(以及 Windows 上的 MSVC),支持 Intel 的SSE/AVX 内在函数,但 Intel 的编译器带有一些库,例如 SVML(例如 SIMD sinexp )和 MKL,其中一些代码可能需要。 Other compilers can be used with SVML if you have it installed separately.如果您单独安装了 SVML,则其他编译器可以与 SVML 一起使用。

In short, it's worth trying with other compilers, especially if you understand why something says it needs to be compiled by ICC, if getting ICC would be inconvenient.简而言之,值得尝试使用其他编译器,特别是如果您理解为什么有些东西说它需要由 ICC 编译,如果获得 ICC 会不方便的话。 But you might (or might not) be missing out on performance for packages that detect what's available instead of just erroring.但是您可能(或可能不会)错过检测可用内容而不是仅仅出错的软件包的性能。

for non commercial use you can download it from Intel对于非商业用途,您可以从英特尔下载

EDIT:编辑:

the Intel® System Studio 2016 includes a c++ compiler.英特尔® System Studio 2016包含一个 c++ 编译器。

I've tried the 32-bit version of it, the non-commecial one.我试过它的 32 位版本,非商业版本。 I don't think it differ from the 32-bit on basic stuff related to installation.我认为它与 32 位在与安装相关的基本内容上没有区别。 Open this and go to compilers and libraries section and you will see the C/C++ compiler.打开并转到编译器和库部分,您将看到 C/C++ 编译器。 After download it read the files in doc folder;下载后读取doc文件夹中的文件; it includes how to install/use/get a key to compiler etc.它包括如何安装/使用/获取编译器的密钥等。

您需要通过apt-get install gcc安装 gcc 编译器 看这里的例子: 安装 GCC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM