profile설정중 갑자기 에러가 떴습니다.ㅠ.ㅠ
작성자 정보
- 이재현 작성
- 작성일
컨텐츠 정보
- 2,888 조회
- 1 댓글
- 0 추천
- 목록
본문
페도라 6 사용입니다.
tomcat connector 땜에 path 설정하고
source profile 하는데....
에러가 뜨네요...ㅠ.ㅠ....
내용은 이렇습니다.
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
EUID=`id -u`
UID=`id -ru`
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
if [ -x /usr/bin/id ]; then
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
unset pathmunge
export JAVA_HOME=/usr/java/jdk
export APACHE2_HOME=/usr/local/apache2
export CATALINA_HOME=/usr/local/tomcat
export CLASSPATH=.:$JAVA_HOME/lib
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/activation.jar:$JAVA_HOME/lib/mail.jar:$CATALINA_HOME/common/lib/servlet.jar
export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin:$CLASSPATH:$APACHE2_HOME/bin:.
export PATH=$PATH:$JAVA_HOME/bin
export LANG=ko_kr.eucKR.en_US
여기까지가 profile이구요
: command not found
: command not found
: command not found
'bash: ./profile: line 22: syntax error near unexpected token `
'bash: ./profile: line 22: ` fi
이런 에러 뜨네요..ㅠ.ㅠ.....
고수님들...좀..ㅠ.ㅠ.
관련자료
-
이전
-
다음
초짜님의 댓글
- 초짜
- 작성일
해당 오타가 있는지 찾아보시기 바랍니다.