The BELFRAMEWORK_HOME environment variable is required for proper functions of all command-line tools and web applications in the BEL Framework. This environment variable should be set to the location that contains the BEL Framework configuration folder. In most cases, this location is the BEL Framework installation directory. For example, if you have installed the BEL Framework in /opt/belframework, BELFRAMEWORK_HOME should be set to /opt/belframework.
Environment Variables in Windows
On Microsoft Windows operating systems, BELFRAMEWORK_HOME can be set as a system environment variable. To set up a system environment variable, administrative rights on the server is required. The following procedures assume the BEL Framework is installed in C:\BELFramework and set a system environment variable to that location:
- Click on the Start button on the task bar.
- Select Run…
- Type sysdm.cpl and click OK
- Click on the Advanced tab
- Click the Environment Variables… button
- A new dialog comes up, click the New… button under System variables.
- Type BELFRAMEWORK_HOME as the variable name.
- Type C:\BELFramework as the variable value.
- Click OK to close the New System Variable dialog.
- Click OK again to close the Environment Variables dialog.
- You may need to restart your computer for this new system variable to be visible to all processes.
Environment Variables in Linux
On Linux operating systems, the BELFRAMEWORK_HOME environment variable can be set in the user's profile. If the script needs to be run unattended by a scheduler, create a wrapper script to set the environment variable before calling any of the BEL Framework tools.
The following example script sets the BELFRAMEWORK_HOME environment variable to /opt/belframework and the calls the KamSummarizer command-line tool:
#!/bin/bash export BELFRAMEWORK_HOME="/opt/belframework"