Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Intel compiler install, I'm lost

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
choppy



Joined: Mon Jul 31, 2006 9:22 pm
Posts: 4

PostPosted: Mon Jul 31, 2006 9:25 pm    Post subject: Intel compiler install, I'm lost Reply with quote

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!
Back to top
View user's profile Send private message
choppy



Joined: Mon Jul 31, 2006 9:22 pm
Posts: 4

PostPosted: Mon Jul 31, 2006 9:44 pm    Post subject: RE: Intel compiler install, I Reply with quote

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
Back to top
View user's profile Send private message
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Tue Aug 01, 2006 12:38 pm    Post subject: RE: Intel compiler install, I Reply with quote

It looks like they want you to edit your .login file (in your home directory) and add the following lines
Code:
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.
Back to top
View user's profile Send private message
choppy



Joined: Mon Jul 31, 2006 9:22 pm
Posts: 4

PostPosted: Tue Aug 01, 2006 11:57 pm    Post subject: Reply with quote

.login...I'm not finding this file anywhere, I'll keep looking
Back to top
View user's profile Send private message
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Wed Aug 02, 2006 10:22 am    Post subject: Reply with quote

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

Nigel.
Back to top
View user's profile Send private message
choppy



Joined: Mon Jul 31, 2006 9:22 pm
Posts: 4

PostPosted: Thu Aug 03, 2006 4:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Thu Aug 03, 2006 5:06 pm    Post subject: Reply with quote

'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.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast