免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4517 | 回复: 12
打印 上一主题 下一主题

大家来看看,我的.profile文件无法设置环境变量和PATH参数.~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-21 01:26 |只看该作者 |倒序浏览
SYBASE=/usr/sybase                                        ; export SYBASE

SYBPLATFORM="linux"                                ; export SYBPLATFORM
LD_LIBRARY_PATH="$SYBASE/lib"                        ; export LD_LIBRARY_PATH
LC_ALL="default"                                ; export LC_ALL
LANG=C

PATH=./SYBASE/binPATH                        ; export PATH
export SYBASE LD_LIBRARY_PATH LANG PATH
if [ ! "${PAGER}" ]; then
    PAGER=cat                                        ; export PAGER
fi

# Have the README and WARNINGS at least presented once.
if [ ! -f ${SYBASE}/.readme ]; then
    ${PAGER} ${SYBASE}/README
    touch ${SYBASE}/.readme
    if [ `id -u` = 0 ]; then
        cat <<EOM
#
   WARNING: Before configuring this release of Sybase Adaptive Server
   Enterprise we strongly recommend you to run from an other login
   account then root.

   This because the SQL Server can be configured to operate on designated
   disk partitions resulting in data loss if the permissions are not
   setup properly.

EOM
        echo -n "Do you like to continue? [y/n]: "
        read ans
        case $ans in

                [Yy]*)        break ;;
                *)        exit ;;

        esac
    fi
fi

# Need to run sybinit 1st time
if [ ! -f ${SYBASE}/.sybinit ]; then
    echo ; echo -n "Do you want to start 'sybinit' now? [y/n]: "
    read ans
    case $ans in

           [Yy]*) ${SYBASE}/install/sybinit
               touch ${SYBASE}/.sybinit
               exit 0 ;;

        *) echo ; echo "You can start it by hand later by executing"
           echo "${SYBASE}/install/sybinit"

    esac
fi

论坛徽章:
0
2 [报告]
发表于 2006-11-21 01:28 |只看该作者
大家帮我看看,哪错了吗?SYBASE环境变量就是设置不了.....

论坛徽章:
0
3 [报告]
发表于 2006-11-21 09:50 |只看该作者
安装目录下直接有个 SYBASE.sh 的文件,运行下所有的环境变量就设置好了阿

论坛徽章:
0
4 [报告]
发表于 2006-11-21 11:25 |只看该作者
/usr/sybase/install/中没有这个文件哦~~
继续求助!

论坛徽章:
0
5 [报告]
发表于 2006-11-21 16:00 |只看该作者
就在/usr/sybase 目录下面

论坛徽章:
0
6 [报告]
发表于 2006-11-21 17:10 |只看该作者
原帖由 zm852 于 2006-11-21 11:25 发表
/usr/sybase/install/中没有这个文件哦~~
继续求助!

SYBASE.sh 在 /usr/sybase 目录下

PS:搂主的目录好奇怪,应该是 /usr/sybase/ASE-12_5/install吧?

论坛徽章:
0
7 [报告]
发表于 2006-11-21 19:40 |只看该作者
大家看看这是我的目录文件,我安装的是sybase 11.03 for linux
___________________________________________________

-bash-3.00$ ls
CONFIGURE   SYBASE.002  SYBASE.008  SYBASE.bak   install         lib
Desktop     SYBASE.003  SYBASE.009  SYBASE.cfg   interfaces      locales
GPL         SYBASE.004  SYBASE.010  SYBASE.cfg~  interfaces.001  master.dat
LICENSE     SYBASE.005  SYBASE.011  bin          interfaces.002  scripts
README      SYBASE.006  SYBASE.012  charsets     interfaces.003  sybprocs.dat
SYBASE.001  SYBASE.007  SYBASE.013  init         interfaces~     upgrade
-bash-3.00$ pwd
/usr/sybase
-bash-3.00$

论坛徽章:
0
8 [报告]
发表于 2006-11-21 21:17 |只看该作者
目前为止,环境变量还是无法执行...我用echo $PATH,还是看不到SYBASE目录
无法启动RUN_SYB_BACKUP服务...
Errorlog:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ackup Server/11.0.3.3 ESD#6/P-FREE/Linux Intel/Linux 2.2.14 i686/1/OPT/Fri Mar 17 15:52:00 CET 2000
(c) Copyright 1987, 2000.
Sybase, Inc.  All rights reserved.

Unpublished rights reserved under U.S. copyright laws.
This software contains confidential and trade secret information of Sybase,
Inc.   Use,  duplication or disclosure of the software and documentation by
the  U.S.  Government  is  subject  to  restrictions set forth in a license
agreement  between  the  Government  and  Sybase,  Inc.  or  other  written
agreement  specifying  the  Government's rights to use the software and any
applicable FAR provisions, for example, FAR 52.227-19.

Sybase, Inc. 6475 Christie Avenue, Emeryville, CA 94608, USA.

No server log file open; Using stderr for log.
Nov 21 21:12:27 2006: Backup Server: 1.56.2.1: The SYBASE environment variable must be set.

论坛徽章:
0
9 [报告]
发表于 2006-11-21 22:16 |只看该作者

回复 8楼 zm852 的帖子

1. 你使用的版本不是 ASE 12.0 以后版本,所以在安装完毕后不会自动生成 SYBASE.sh 文件,需要手工设置;
2. 你的.profile还跟你用户的shell类型有关系,如果你是csh,就不用export命令了
3. 检查你的.profile是否具备执行属性,可以直接用 . .profile执行一下看看是不是设置了环境变量
4. 你的.profile文件要放在你用户的home目录下,确认你的home目录对不对
如果都不对,你为什么不下载一个更新版本的ASE?

论坛徽章:
0
10 [报告]
发表于 2006-11-22 20:54 |只看该作者
Blackrose,高手啊,不会Sybase公司的吧,对产品这么熟悉
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP