X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



9422 Rate this article:
No rating

The idl_setup Script For The Bash Shell


Published below for cutting and pasting is the standard UNIX idl_setup* script, reformatted specifically with Bash shell syntax. This will be particularly useful for Linux users; Linux tends to install the Bash shell as the default shell.
Distributed with every IDL for UNIX are two versions of our idl_setup* script. This script is used to set several environment variables, search paths and aliases. The versions currently included in IDL are for your choice of C shell or Korn shell. Both of these throw multiple errors when executed in a Bash shell. The below script reformats this script in strictly Bash syntax. Right after the displayed contents, you will find a link to this new "idl_setup.bash" file. If you right-click on that link and select 'Save As...' from the pop-up menu, you can store this file on your local host. We recommend you store this file in the same directory as 'idl_setup' and 'idl_setup.ksh' (e.g., in IDL 6.1, '.../idl_6.1/bin/').

Note that the value of IDL_DIR is version specific, and would need to be updated each time you install an IDL upgrade!

# Bash shell commands to define IDL environment variables and aliases.
#
# This script can be used by IDL users, who use Bash as their interactive
# shell. It defines the environment variables and aliases required by IDL
# related commands (idl, idlde, idlhelp, idldemo), in the case that
# symbolic links to the default directory (/usr/local/rsi/idl) are not
# being used.
#
# Bash users should run idl_setup from their .profile file
# using the following command:
#
# . /usr/local/rsi/idl_6.1/bin/idl_setup.bash
#
RSI_DIR=/usr/local/rsi
IDL_DIR=/usr/local/rsi/idl_6.1
export IDL_DIR RSI_DIR
IDL_PATH="
"
export IDL_PATH
alias rsilicense=$IDL_DIR/bin/rsilicense
alias idl=$IDL_DIR/bin/idl
alias idlde=$IDL_DIR/bin/idlde
alias idldeclient=$IDL_DIR/bin/idldeclient
alias idlhelp=$IDL_DIR/bin/idlhelp
alias idlman=$IDL_DIR/bin/idlman
alias idlrpc=$IDL_DIR/bin/idlrpc
alias idldemo=$IDL_DIR/bin/idldemo

Right-click->'Save as...' to Download idl_setup.bash.

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »