6.5. Ruby installation-Windows

发布时间 : 2025-10-25 13:33:59 UTC      

Page Views: 10 views

The steps for installing Ruby on a Windows machine are listed below.

Note: you may have different versions available during installation.

  • Under the Window system, we can use RubyInstaller to install the Ruby environment at: Please click here to download .

  • After downloading rubyinstaller, extract it to the newly created directory:

  • Double click rubyinstaller-2.2.3.exe file to launch the Ruby installation wizard.

  • Click Next to continue the wizard, and remember to check Add Ruby executables to your PATH until the Ruby installer completes the Ruby installation.

If your installation does not configure the environment variables properly, you may need to configure the environment variables next.

  • If you are using Windows 9x, please use your c:\autoexec.bat add: set PATH= “D:(ruby installation directory)bin;%PATH%”

  • Windows NT/2000 users need to modify the registry.

    • Click Control Panel |Performance| Environment variable.

    • Under the system variable, select Path and click EDIT.

    • Add the Ruby directory at the end of the list of variable values and click OK.

    • Under the system variable, select PATHEXT and click EDIT.

    • Add .RB and .RBW to go to the list of variable values and click OK.

  • After installation, ensure that everything works properly by entering the following command on the command line:

$ ruby -v ruby 2.2.3 
  • If everything works fine, the installed version of the Ruby interpreter willbe output, as shown above. If you have another version installed, differentversions are displayed.

《地理信息系统原理、技术与方法》  97

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