On Thu, 11 Sep 2003, Farschad Torabi wrote:
> I have done the following steps:
> 1. setting following variables:
>
> PGI=/urs/pgi
> LAMHOME=/usr/lam-7.0
> LAMHF77=pgi
> PATH=$PATH:/usr/lam-7.0/bin
> PATH=$PATH:/usr/lam-7.0/lib
> PATH=$PATH:/usr/lam-7.0/include
> export PGI LAMHOME PATH LAMHF77
A few notes:
- We actually recommend against setting the LAMHOME environment variable
except in very rare circumstances. From what you described above, you
shouldn't need to set it. Don't get me wrong -- setting it won't cause
any problems, but if you don't need it, you shouldn't set it, and it
eliminates one set of potential problems.
- You only need to add /usr/lam-7.0/bin in your PATH -- you don't need to
add the lib and include directories into your PATH.
> 2. configuring LAM
>
> ./configure --prefix=/usr/lam-7.0 --with-fc=pgf90 \
> --with-FFLAGS='-Msecond_underscore -g77libs' -with-rsh='ssh-x'
Two notes:
1. I think your problem may be the --with-FFLAGS -- it should actually be
--with-fflags. The switch is case-sensitive; you --with-FFLAGS switch was
probably ignored.
2. Most modern versions of ssh don't require the -x flag anymore. That
was mainly for older versions of ssh that required the use of "-x" to make
ssh *not* send a message to stderr about X forwarding. You should
probably be able to use --with-rsh=ssh (make sure you use two dashes
before "with").
> 3. make
> 4. make install
>
> now the problem is that i am not able to build and link examples that
> use MPI library.
Give the above a try and see if that fixes your problems. If it does not,
send some specific output about what happens when you try to compile/link
MPI programs, as well as the output from "laminfo" and "mpif77 -showme".
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|