6.8. Ruby environment variable

发布时间 : 2025-10-25 13:34:03 UTC      

Page Views: 10 views

The Ruby interpreter uses the following environment variables to control its behavior. The ENV object contains a list of all currently set environment variables.

Variable

Description

DLN_LIBRARY_PATH

Dynamically loads the path that the module searches for.

HOME

The directory to move to when no parameters are passed to Dir::chdir. Also used in File::expand_path to extend “~”.

LOGDIR

The directory to move to when no parameters are passed to Dir::chdir and the environment variable HOME is not set.

PATH

Execute the search path for the child process, and the search path for the Ruby program after the-S option is specified. Each path is separated by a colon (semicolon in DOS and Windows).

RUBYLIB

The search path to the library. Each path is separated by a colon (semicolonin DOS and Windows).

RUBYLIB_PREFIX

Used to modify the RUBYLIB search path, replacing the library prefix path1 with path2 by using the format path1;path2 or path1path2.

RUBYOPT

Command line options passed to the Ruby interpreter. Ignored in taint mode (where $SAFE is greater than 0).

RUBYPATH

The search path of the Ruby program after the-S option is specified. Priority is higher than PATH. Ignored in taint mode (where $SAFE is greater than 0).

RUBYSHELL

Specifies the shell to be used when executing the command. If the environment variable is not set, SHELL or COMSPEC is used.

For Unix, use the env command to view a list of all environment variables.

HOSTNAME=ip-72-167-112-17.ip.secureserver.net RUBYPATH=/usr/bin SHELL=/bin/bash TERM=xterm HISTSIZE=1000 SSH_CLIENT=122.169.131.179 1742 22 SSH_TTY=/dev/pts/1 USER=amrood JRE_HOME=/usr/java/jdk/jre J2RE_HOME=/usr/java/jdk/jre PATH=/usr/local/bin:/bin:/usr/bin:/home/guest/bin MAIL=/var/spool/mail/guest PWD=/home/amrood INPUTRC=/etc/inputrc JAVA_HOME=/usr/java/jdk LANG=C HOME=/root SHLVL=2 JDK_HOME=/usr/java/jdk LOGDIR=/usr/log/ruby LOGNAME=amrood SSH_CONNECTION=122.169.131.179 1742 72.167.112.17 22 LESSOPEN=|/usr/bin/lesspipe.sh %s RUBYLIB=/usr/lib/ruby G_BROKEN_FILENAMES=1 _=/bin/env 
《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。