Intel compiler install, I'm lost

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Intel compiler install, I'm lost

Postby choppy » Mon Jul 31, 2006 8:25 pm

I've gone through the motions and I thought I had it installed fully, but I've been fooling around with the compiler enviornment setup and the more I work with it the more lost I get. Has anyone got this up and running that would be so kind as to nudge me in the right direction.

I have installed the download, and I need to setup the enviornment

thanks much!
choppy
 
Posts: 4
Joined: Mon Jul 31, 2006 8:22 pm

RE: Intel compiler install, I

Postby choppy » Mon Jul 31, 2006 8:44 pm

here are the instructions. I dont know what they're talking about

Setting Up the Compiler Environment

The programs in the Intel C++ Compiler 9.0 for Linux product rely on the
environment variables |PATH| and |LD_LIBRARY_PATH|. The installation
script |(install.sh)| creates compiler environment script files
|(iccvars.sh/idbvars.sh)| that set these variables. It is strongly
recommended that you add those script files into your login script
(|.login| file). Once the variables are set in the |".login"| file there
is no need to run the script files for each session.

|source| the script to setup the compiler environment:

* |> source <install-dir>/bin/iccvars.sh(.csh) |
to use icc
* |> source <install-dir>/bin/idbvars.sh(.csh) |
to use idb
choppy
 
Posts: 4
Joined: Mon Jul 31, 2006 8:22 pm

RE: Intel compiler install, I

Postby Nigel » Tue Aug 01, 2006 11:38 am

It looks like they want you to edit your .login file (in your home directory) and add the following lines
Code: Select all
source <install-dir>/bin/iccvars.sh
source <install-dir>/bin/idbvars.sh

replacing <install-dir> with the location you installed the intel compilers to (probably /usr/local).
If by any chance you use csh instead of bash as your default shell, just change the .sh at the end of each line to .csh

logout & login again and you should be set to go...
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Postby choppy » Tue Aug 01, 2006 10:57 pm

.login...I'm not finding this file anywhere, I'll keep looking
choppy
 
Posts: 4
Joined: Mon Jul 31, 2006 8:22 pm

Postby Nigel » Wed Aug 02, 2006 9:22 am

You may not have one by default. Just create one in your home directory.
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Postby choppy » Thu Aug 03, 2006 3:59 pm

Alright, I tried this for quite a bit yesterday with no success.

I'm assuming 'source' is what tells it to sort of link the the files between it's location and the directory.

In the console, I'm changing to the .login dir and using the command lines but nothing seems to be happening. Let me give it another go
choppy
 
Posts: 4
Joined: Mon Jul 31, 2006 8:22 pm

Postby Nigel » Thu Aug 03, 2006 4:06 pm

'source' is a bash command. It means "read and execute all the commands in the following file". Bit like an include file in c/c++.
You can type the source commands at the command prompt as well, they will then be active for your current session in that terminal window only.

The commands in the files you source will set up various environment variables that the compilers need.

BTW - .login isn't a directory, it's a file. You can create it with any text editor (Kate, vi, emacs - whichever you prefer).
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK


Return to Programming

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron