每次登录的时候 就会报这个错误
- Assembly code
******************************************************************************** ** ** Welcome to AIX Version 6.1! ** ** ** Please see the README file in /usr/lpp/bos for information pertinent to ** this release of the AIX Operating System. ** ** ********************************************************************************Bad line 52 in /etc/environment': not a valid identifier
但是查找/etc/environment的第52行 是 export PATH JAVA_HOME JDK_HOME 根本没有'这个符号。
整个environment里面也没有这个符号。
下面是/etc/environment的内容,还请大家帮忙看看 是什么问题,感谢!
sp:这个异常 还没发现会影响其他功能的使用
- Assembly code
# @(#)18 1.26 src/bos/etc/environment/environment, cmdsh, bos61B, b2007_34A0 7/23/07 09:46:21# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos61B src/bos/etc/environment/environment 1.26 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1989,1994 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG ## COMPONENT_NAME: (CMDSH) Shell related commands ## ORIGINS: 27## (C) COPYRIGHT International Business Machines Corp. 1989, 1994# All Rights Reserved# Licensed Materials - Property of IBM## US Government Users Restricted Rights - Use, duplication or# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.################################################################## System wide environment file. This file should only contain# 1. comment lines which have a # in the first column,# 2. blank lines, and# 3. Lines in the form name=value.## WARNING: This file is only for establishing environment variables.# Execution of commands from this file or any lines other# than specified above may cause failure of the initialization # process.## Searching the current directory last is usually a BIG time saver.# If /usr/ucb is at the beginning of the PATH the BSD version of commands will# be found. #JAVA_HOME=/usr/java6JDK_HOME=$JAVA_HOME PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:$JAVA_HOME/bin:$PATHexport PATH JAVA_HOME JDK_HOMETZ=Asia/ChongqingLANG=ZH_CNLOCPATH=/usr/lib/nls/locNLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.catLC__FASTMSG=true# ODM routines use ODMDIR to determine which objects to operate on# the default is /etc/objrepos - this is where the device objects# reside, which are required for hardware configurationODMDIR=/etc/objreposLC_MESSAGES=C@lft
------解决方案--------------------------------------------------------
Bad line 52 in /etc/environment
': not a valid identifier
尝试着用普通的文本编辑器打开,查看一下,
实在不行恢复到初始状态
------解决方案--------------------------------------------------------
比较下别的机器,或者用liveCD看下
------解决方案--------------------------------------------------------
sed -n '52l' /etc/environment
看看
------解决方案--------------------------------------------------------