linux 无法访问全局目录

9udxz4iz  于 2023-02-18  发布在  Linux
关注(0)|答案(1)|浏览(156)

亲爱的
我有以下问题:
我在shell中定义了全局目录,如下所示:

$ydb_gbldir=memory.gld

$export ydb_gbldir.

当我尝试在shell $ydb中访问YottaDB应用程序时,我得到了以下错误:
错误文件位于/tmp/ydb_env_3163_9e7vEJ/err 150374122,Robustify +10 ^ %YDBENV,% YDB-E-ZGBLDIRACC,无法访问全局目录/home/test/memory.gld。无法继续。,% SYSTEM-E-ENO2,没有这样的文件或直接存储器$ZSTATUS ="150374122,Robustify +10 ^ %YDBENV,% YDB-E-ZGBLDIRACC,无法访问全局目录/home/test/memory.gld。无法继续。,% SYSTEM-E-ENO2,没有此类文件或目录"/usr/local/lib/yottadb/r132/ydb:19:/约塔巴德:未找到
有没有人能解释一下我在$ydb_gbldir配置上做错了什么,现在我无法访问应用程序?

nxowjjhe

nxowjjhe1#

我之前发布了一个关于如何创建一个可工作的m安装的解释。也许它能帮助你。下面的命令必须以root用户的身份执行以保存几个sudos:

apt install libicu-dev (needed for UTF-8 support)
    
    mkdir /tmp/tmp ; wget -P /tmp/tmp https://gitlab.com/YottaDB/DB/YDB/raw/master/sr_unix/ydbinstall.sh
    cd /tmp/tmp ; chmod +x ydbinstall.sh
    ./ydbinstall.sh --utf8 default --verbose r1.28
    mkdir /var/lib/yottadb
    mkdir /var/lib/yottadb/r
    mkdir /var/lib/yottadb/g
    mkdir /var/lib/yottadb/o
    chmod 775 -R /var/lib/yottadb
    groupadd yottadb
    chgrp yottadb -R /var/lib/yottadb/
    usermod -aG yottadb <username>
    
    I put the following commands at the end of /etc/bash.bashrc
    
    export ydb_dist=/usr/local/lib/yottadb/r128
    export PATH=$PATH:$ydb_dist
    export ydb_gbldir=/var/lib/yottadb/g/gtm.gld
    export ydb_routines="/var/lib/yottadb/o(/var/lib/yottadb/r) /usr/local/lib/yottadb/r128/utf8/libyottadbutil.so"
    export ydb_ztrap_form="adaptive"
    export ydb_chset="UTF-8"
    export ydb_icu_version=`pkg-config --modversion icu-io`
    export gtm_icu_version=$ydb_icu_version
    alias m="\$ydb_dist/mumps -di"
    alias M="\$ydb_dist/mumps -di"
    alias gde="\$ydb_dist/mumps -run GDE"
    
    
    I've added a yottadb-group to restrict directory access to users in that group
    
    After this a reboot is necessary beacuse the new group is not active until reboot as I had to learn. Also the bash.bashrc is in effect then
    
    next step is to create the global directory
    
    $ gde
    GDE> change -seg default -file=/var/lib/yottadb/g/mumps.dat
    GDE> exit
    $ mupip create
    
    now I have a full working YottaDB environment.
    
    A Hello World Example would be:
    
    nano /var/lib/yottadb/r/helloworld.m
    
    HelloWorld ;
    W "Hello World!"
    Q
    
    back on shell:
    $ mumps -r helloworld
    
    Mumps Commandline can be reached by
    
    $ m

拜托,如果这对你有用的话...

相关问题