Hello all. I am not sure this is the correct place to post this, but here it goes.
I am trying to install some scientific programs, like MPICH, ScaLAPACK,
etc on a PIIIx2. The installations went well, until I had to call a
command or library from the terminal. I have tried to set the PATH, MPI
and MPI_LIB variables for root and normal users (authenticated by nis),
with no sucess. I have put the correct lines on /etc/profile,
/etc/bash.bashrc, and on ~/.bashrc for normal users, and /root/.bashrc,
/root/.bash_profile and /root/.profile, with no sucess. The command is
not found, even if the variable is correctly setted. Here is an output:
*******************************************
/root/.profile:
MPI=/opt/gnu/mpich-1.2.7/bin
export MPI
MPI_LIB=/opt/gnu/mpich-1.2.7/lib
export MPI_LIB
PATH=$PATH:/opt/gnu/mpich-1.2.7
/root/.bash_profile:
MPI=/opt/gnu/mpich-1.2.7/bin/
export MPI
MPI_LIB=/opt/gnu/mpich-1.2.7/lib/
export MPI_LIB
/user/.bashrc:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
MPI=/opt/gnu/mpich-1.2.7/bin
export MPI
MPI_LIB=/opt/gnu/mpich-1.2.7/lib
export MPI_LIB
PATH=$PATH:/opt/gnu/mpich-1.2.7
/etc/profile:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='[EMAIL PROTECTED]:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
###############################
#Modificacoes para instalacao
###############################
###############################
#MPI
MPI=/opt/gnu/mpich-1.2.7/bin
export MPI
MPI_LIB=/opt/gnu/mpich-1.2.7/lib
export MPI_LIB
PATH=$PATH:/opt/gnu/mpich-1.2.7
export PATH
************************************************************
I already have logged and dislogged, and even rebooted the system.
When I issue a env, the paths are there.
************************************************************
env:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/opt/gnu/mpich-1.2.7:/opt/gnu/mpich-1.2.7/
PWD=/root
LANG=en_US
MPI=/opt/gnu/mpich-1.2.7/bin/
***************************************************************
What can be happening?
Thank you!
Ivan
--
-----------------------------------------------------------
Ivan S. P. Marin
Laboratório de Física Computacional
lfc.ifsc.usp.br
Instituto de Física de São Carlos - USP
----------------------------------------------------------
- Problem with PATH variable and access Ivan Paganini
- Fwd: Problem with PATH variable and access Ivan Paganini