آموزش کامل نصب ifort (intelCompiler) در Ubuntu

کامپایلر اینتل قدرتمند ترین کامپایلر فرترن هست.
در زیر روش نصبش رو کامل توضیح دادم.
به تمام ارور هایی که تاحالا خوردمم قرار دادم.

ابتدا dependency هارو نصب میکنیم:

apt-get install build-essential
apt-get install gcc-multilib
apt-get install rpm
apt-get install openjdk-8-jre-headless
cd Downloads
wget TODO/add/correct/path/here
cp Downloads/libstdc++5_3.3.6-20_i386.deb /opt/
dpkg --extract libstdc++5_3.3.6-20_i386.deb .
 cd usr/lib
cp libstdc++.so.5.0.7 /usr/lib32/
 cd /usr/lib32
 ln -s libstdc++.so.5.0.7 libstdc++.so.5

 

سپس فایل هارو به محل مناسب منتقل میکنیم؛

sudo su -
cp /path/to/ifort/l_cprof_p_11.1.046_intel64.tgz /opt/
cd /opt/
 tar -xvf l_cprof_p_11.1.046_intel64.tgz 
cd l_cprof_p_11.1.046_intel64/

سپس نصب رو احرا میکنیم؛

 ./install.sh

اگر با این صفحه روبرو شدید یعنی همه چیز اوکیه یعنی سیستم عامل ۶۴ بیتی هست و دیپندنسی ها نصب هست.

Step no: 1 of 7 | Welcome
--------------------------------------------------------------------------------
Welcome to the Intel(R) Fortran Compiler Professional Edition for Linux* version
۱۱٫۱٫

Intel(R) Fortran Compiler Professional Editions include not only the
high-performance Intel Fortran Compiler, but also Intel(R) Debugger and Intel(R)
Math Kernel Library (Intel(R) MKL) to create a strong foundation for building
robust, high performance parallel code at significant price savings.
--------------------------------------------------------------------------------
You will complete the steps below during this installation:
Step 1 : Welcome
Step 2 : License agreement
Step 3 : Activation option
Step 4 : Installation configuration
Step 5 : Configuration summary
Step 6 : Installation
Step 7 : Installation complete
--------------------------------------------------------------------------------
Press "Enter" key to continue or "q" to quit: 




الان Enter رو میزنیم:

Step no: 2 of 7 | License agreement
--------------------------------------------------------------------------------
To continue with the installation, you must accept the terms and conditions of
the End User License Agreement (EULA). The EULA will be displayed with the
"more" utility. While viewing the EULA, press the spacebar to page down or
press the "q" key to quit viewing the EULA. After viewing the EULA, you will
have the choice to either accept or decline the terms and conditions of the
EULA.
--------------------------------------------------------------------------------
۱٫ View the license agreement (required) [default]

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

سپس ۱ رو میزنیم و Enter

IMPORTANT - READ BEFORE COPYING, INSTALLING OR USING.
Do not copy, install, or use the Materials provided under this license agreement
 ("Agreement"), until you have carefully read the following terms and conditions
.

By copying, installing, or otherwise using the Materials, you agree to be bound 
by the terms of this Agreement.  If you do not agree to the terms of this Agreem
ent, do not copy, install, or use the Materials.

End User License Agreement for the Intel(R) Software Development Products

۱٫	LICENSE DEFINITIONS: 

A.	"Materials" are defined as the software, documentation, license key code
s and other materials, including any updates and upgrade thereto, for the applic
able Intel Software Development Product (which may be found at http://www.intel.
com/software/products/), that are provided to you under this Agreement.  Materia
ls also include the Redistributables as defined below.

B.	"Redistributables" are the files listed in the following text files that
 may be included in the Materials for the applicable Intel Software Development 
Product: clredist.txt, credist.txt, fredist.txt, redist.txt..

--More--(5%)[Press space to continue, 'q' to quit.]

 

بعد همینجور space بزنید برسید تهش 😀 :

۱۰٫	U.S. GOVERNMENT RESTRICTED RIGHTS: The Materials are provided with "REST
RICTED RIGHTS". Use, duplication or disclosure by the Government is subject to r
estrictions set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its succes
sor.  Use of the Materials by the Government constitutes acknowledgment of Intel
's rights in them.

۱۱٫	APPLICABLE LAWS: Any claim arising under or relating to this Agreement s
hall be governed by the internal substantive laws of the State of Delaware, with
out regard to principles of conflict of laws.  You agree that the terms of the U
nited Nations Convention on Contracts for the Sale of Goods do not apply to this
 Agreement. You agree that your distribution and export/re-export of the Softwar
e and permitted modifications shall be in compliance with the laws, regulations,
 orders or other restrictions of applicable export laws.

۱۲٫	THIRD PARTY PROGRAMS.  The Materials may include third party programs or
 materials.  The license terms with those programs or materials apply to your us
e of them, and we are not liable for them.

* Other names and brands may be claimed as the property of others

--------------------------------------------------------------------------------
Do you agree to be bound by the terms and conditions of this license agreement?
Type "accept" to continue or "decline" to back to the previous menu: 

سپس بنویسید accept و enter بزنید:

Step no: 3 of 7 | Activation options
--------------------------------------------------------------------------------
Activation requires a serial number and internet connection. It is a secure and
anonymous one-time process which verifies your software licensing rights to
enable use of the product.

You can also choose to install the software for evaluation purposes or activate
at a later time. The software will time out in 30 days.
--------------------------------------------------------------------------------
۱٫ I want to activate and install my product [default]
۲٫ I want to evaluate my product or activate later 
۳٫ Alternative activation - necessary if you plan to activate remotely ( because
   this system may not be set for successful Internet connection), or use a 
   license file, or use a license server
۴٫ View additional information about software activation

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

الان باید نحوه رجیستز شدن رو مشخص کنیم ما لایسنس فایل رو باید انتخاب کنیم پس ۳ رو میزنیم و enter :

Step no: 3 of 7 | Activation options
--------------------------------------------------------------------------------
Activation requires a serial number and internet connection. It is a secure and
anonymous one-time process which verifies your software licensing rights to
enable use of the product.

You can also choose to install the software for evaluation purposes or activate
at a later time. The software will time out in 30 days.
--------------------------------------------------------------------------------
۱٫ Use a serial number on a different computer which has access to the internet 
[default]
۲٫ Use a license file - choose this option if you already have a license file
   for this product
۳٫ Use a license server - choose this option if you connect to a license server
   to obtain a license for this product
۴٫ View additional information about software activation
۵٫ How do I find my serial number?
۶٫ Where can I purchase a serial number?

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

سپس ۲ رو میزنیم:

Step no: 3 of 7 | Activation Options - Use a License File
--------------------------------------------------------------------------------
In order to activate this system using a license file, the license file should
be a text file, it should be a valid license for this product, and it should be
in a location to which you have access.
--------------------------------------------------------------------------------
۱٫ Provide the full path to the license file(s) [default]
۲٫ View additional information about software activation
۳٫ How do I find my license file?

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

سپس ۱ :

Step no: 3 of 7 | Activation Options - Use a License File
--------------------------------------------------------------------------------
In order to activate this system using a license file, the license file should
be a text file, it should be a valid license for this product, and it should be
in a location to which you have access.
--------------------------------------------------------------------------------
۱٫ Provide the full path to the license file(s) [default]
۲٫ View additional information about software activation
۳٫ How do I find my license file?

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 1
Note: Press "Enter" key to back to the previous menu.
Please type the full path to your license file(s): 

الان باید مسیر کامل به lisnce file رو وارد کنیم و اینتز بزنیم:

/path/to/ifort/intel_TBE.lic
Step no: 3 of 7 | Activation Options - Use a License File
--------------------------------------------------------------------------------
In order to activate this system using a license file, the license file should
be a text file, it should be a valid license for this product, and it should be
in a location to which you have access.
--------------------------------------------------------------------------------
۱٫ Provide the full path to the license file(s) [default]
۲٫ View additional information about software activation
۳٫ How do I find my license file?

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 1
Note: Press "Enter" key to back to the previous menu.
Please type the full path to your license file(s): /media/milad/0EE0-33D5/ifort/intel_TBE.lic
--------------------------------------------------------------------------------
Activation completed successfully.
--------------------------------------------------------------------------------
Press "Enter" key to continue: 

اگر با نوشته زیر روبزو بشید یعنی که با موفقیت اکتیو شده Enter میزنیم:

Step no: 4 of 7 | Installation Type
--------------------------------------------------------------------------------
Congratulations! Your software has been activated. Please continue the
installation by choosing Typical Install (default installation options) or
Custom Install to change the default installation options.
--------------------------------------------------------------------------------
۱٫ Typical Install (Recommended) [default]
۲٫ Custom Install (For Advanced Users)

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

ما ۱ رو انتخاب میکنیم:

Step no: 4 of 7 | Installation configuration - Missing Critical Pre-requisite
--------------------------------------------------------------------------------
There is one or more critical unresolved issue which prevents installation to
continue. You can fix it without exiting from the installation and re-check. Or
you can quit from the installation, fix it and run the installation again.
--------------------------------------------------------------------------------
Missing critical pre-requisite
-- ۳۲-bit libraries not found
--------------------------------------------------------------------------------
۱٫ Show the detailed info about issue(s) [default]
۲٫ Re-check the pre-requisites

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

اگه با این روبرو شدیم dependency ها اوکی نیست و باید نصب بشن:

یعنی یکاری نکردید یا یه مشکلی هست ۱ رو بزنیپد جزییات رو بگیر کمک کنیم یا بعد از درست کردن ۲ رو بزنید:

Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite
--------------------------------------------------------------------------------
There is one or more optional unresolved issues. It is highly recommended to fix
it all before you continue the installation. You can fix it without exiting from
the installation and re-check. Or you can quit from the installation, fix it and
run the installation again.
--------------------------------------------------------------------------------
Missing optional pre-requisite
-- operating system type is not supported.
-- system glibc or kernel version not supported or not detectable
-- binutils version not supported or not detectable
--------------------------------------------------------------------------------
۱٫ Skip missing optional pre-requisites [default]
۲٫ Show the detailed info about issue(s)
۳٫ Re-check the pre-requisites

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

اینا خیلی مهم نیست 😀 کلید ۱ رو بزنید بریم 😀 :

--------------------------------------------------------------------------------
Select option "1" below to begin installing files based on the information you 
provided.  Use the "b" option to go back to the previous screen(s) if you need
to change any of the information below.
--------------------------------------------------------------------------------
Activation Type:
	License File/Path
Component(s):
	Intel(R) Fortran Compiler Professional Edition for Linux*
	   Intel(R) Fortran Compiler for applications running on Intel(R) 64 
	   Intel(R) Debugger for applications running on Intel(R) 64 
	   Intel(R) Math Kernel Library for applications running on Intel(R) 64 
Location:
	/opt/intel/Compiler/11.1/046
Install Mode:
	NONRPM
--------------------------------------------------------------------------------
۱٫ Install [default]

h. Help
b. Back to the previous menu
q. Quit
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [1]: 

میگه که مسیر نصب رو وارد کنید برای ما پیشفرضش خوبه و Enter میزنیم : شروع میکنه به نصب کردن یکم طول میکشه…

Step no: 6 of 7 | Installation
--------------------------------------------------------------------------------
Each component will be installed individually. If you cancel the installation,
components that have been completely installed will remain on your system. This
installation may take several minutes, depending on your system and the options
you selected. 
Installing, please wait...
--------------------------------------------------------------------------------
Installing Intel(R) Fortran Compiler for applications running on Intel(R) 64 
component...
Intel(R) Fortran Compiler for applications running on Intel(R) 64  component
installed successfully.
--------------------------------------------------------------------------------
Installing Intel(R) Debugger for applications running on Intel(R) 64 
component...
Intel(R) Debugger for applications running on Intel(R) 64  component installed
successfully.
--------------------------------------------------------------------------------
Installing Intel(R) Math Kernel Library for applications running on Intel(R) 64 
component...
Intel(R) Math Kernel Library for applications running on Intel(R) 64  component 
installed successfully.
--------------------------------------------------------------------------------
Press "Enter" key to continue

این یعنی همه چیز نصب شده و خوبه 😀 حالا Enter میزنیم:

Step no: 7 of 7 | Installation complete
--------------------------------------------------------------------------------
Thank you for installing and for using the
Intel(R) Fortran Compiler Professional Edition for Linux* version 11.1.

Your Subscription Service starts with your activation. Create your support
account now in order to access free product updates and upgrades. In addition
to product updates and upgrades, you will get access to interactive issue
management and communications, technical support, sample code, and
documentation.
Support services start from the time you install or activate your product, so
please be sure to create your support account now in order to take full
advantage of your product purchase.

To create your support account, please visit the Subscription Services web site
https://registrationcenter.intel.com/RegCenter/registerexpress.aspx?media=3LT
--------------------------------------------------------------------------------
h. Help
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice [q]: 

اینتر میزنیم حب تموم شد….

gedit ~/.bashrc

این خط رو اخرش اضافه کنید:

source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh intel64

برای تست کردن یه فایل تستی مینوییسم:

vi test.f90

برنامه زیر رو مینویسم: برای نوشتن i برای save کردن esc و :wq میزمنیم

program test

write(*,*)"Helooooo"

end program

سپس کامپایل و اجرا میکنیم:

ifort test.f90
./a.out

اگه نوشت

Helooooo

تبریک میگم 😀 اگه این ارور رو داد:

milad@milad-VGN-FW21E:~$ ifort test.f90
/opt/intel/Compiler/11.1/046/bin/intel64/fortcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
ifort: error #10273: Fatal error in /opt/intel/Compiler/11.1/046/bin/intel64/fortcom, terminated by 0x7f

این رو نصب کنید:

sudo apt-get install libstdc++5

الان اگه دوباره تست کنید باید اوکی باشه اگه باز ارور داد به من چه 😀 نمیدنم :D: D: D .

الان میتومی فایل های اضافی رو پاک کنیم:

sudo rm /opt/l_cprof_p_11.1.046_intel64.tgz
sudo rm -r /opt/l_cprof_p_11.1.046_intel64/

 

 

 

 

 

 

 

8 پاسخ
  1. محمد
    محمد گفته:

    با عرض سلام و خسته نباشید
    از شما خواهشی دارم آیا امکان داره روش نصب ifort در لینوکس ubuntuرا برام ارسال کنید
    تا اخر عمر دعاگوی شما هستم

    پاسخ
  2. شهرام
    شهرام گفته:

    سلام میشه لطفا راهنمایی کنید ifort رو از کجا تهیه کنیم؟ اینتل ورژن غیر تجاری رو ظاهرا برداشته. امکان نصبش هنوز وجود داره ؟

    پاسخ
  3. علی
    علی گفته:

    سلام من میخوام اینتل فورترن رو نصب کنم؟

    همین آموزش کامله و الان هم میشه ازش استفاده کرد با توجه به اینکه زمان زیادی از گذاشتن این پست میگذره.

    فایلش رو از کجا دانلود کنم؟

    ممنون

    پاسخ
    • sajadabasi
      sajadabasi گفته:

      سلام این اموزش برای نسخه ۲۰۱۳ هست ولی نسخه های بعدی هم شبیه هست
      دانلود ifort مشکل نیست باید لایسنس داشته باشید! و یجوری باید لایسنس رو تهیه کنید.

      پاسخ
        • sajadabasi
          sajadabasi گفته:

          سلام از سایت اینتل اقدام کنید با ایمیل دانشجویی بجز ایران یا نرم افزار اپن سورس یا با خرید که خیلیم گرون هست میدن

          پاسخ

دیدگاه خود را ثبت کنید

تمایل دارید در گفتگوها شرکت کنید؟
در گفتگو ها شرکت کنید.

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *