erro ao carregar .profile

0

Este é o meu bashrc

# LD_LIBRARY_PATH
OTCL_LIB=/home/shabeer/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/shabeer/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/shabeer/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/shabeer/ns-allinone-2.35/bin:/home/shabeer/ns-allinone-
2.35/tcl8.5.10/:/home/shabeer/ns-allinone-2.35/tk8.5.10/

#the above two lines beginning from xgraph and ending with unix should come on the same line

#NS=/home/shabeer/ns-allinone-2.35/ns-2.35/
#NAM=/home/shabeer/ns-allinone-2.35/nam-1.15/
#PATH=$PATH:$XGRAPH:$NS:$NAM

XGRAPH=/home/shabeer/ns-allinone-2.35/bin:/home/shabeer/ns-allinone-2.35/tcl8.5.10/:/home/shabeer/ns-allinone-2.35/tk8.5.10/
NS=/home/shabeer/ns-allinone-2.35/ns-2.35/
NAM=/home/shabeer/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM

quando estou logando pela primeira vez toda vez que o meu Ubuntu 14.04 me mostra uma mensagem de erro "" Erro encontrado ao carregar o erro /home/shabeer/.profile na linha bashrc 15, dizendo corrigi-lo assim que possível .... como faço para corrigir este problema?

Este é o meu perfil.

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
    
por shabeer 23.12.2014 / 03:49

2 respostas

1

Seu .bashrc tem o seguinte:

% bl0ck_qu0te%

mas há o que é suposto ser 1 linhas divididas em dois. Experimente:

# PATH
XGRAPH=/home/shabeer/ns-allinone-2.35/bin:/home/shabeer/ns-allinone-2.35/tcl8.5.10/:/home/shabeer/ns-allinone-2.35/tk8.5.10/
    
por rolfl 23.12.2014 / 11:26
1

Recebi o mesmo erro ao atualizar de 14.04 para 14.10. Eu resolvi isso redefinindo meu perfil.

Para obter o uso padrão de ~ / .profile de volta:

cp /etc/skel/.profile ~/.profile
    
por knurreleif 11.03.2015 / 22:18