Data Reduction Frequently Asked Questions
I am trying to install the latest version of the VISIR Pipeline under Mac OSX, but the installation fails with the following error:
make: *** [org_eso_cpl_jni_CPLControl.h] Error 2
make: *** [all-recursive] Error 1
make: *** [all] Error 2
The command make failed with code 512 at ./install_pipeline line 800, <STDIN> line 2. This should not have happened.
Please send an error report with the file ./install.log to email@example.com using subject: Installation of pipeline visir-kit-3.5.1 failed.
What do I do?
The problem you are encountering is because the Java Development Kit is installed on this platform in ways that are different from the one on Linux. Thus the installation script fails to find all the necessary executables and ancillary files. However, there is an easy workaround which consists in setting an environment variable to point directly to the root of your Java installation. Here is how to proceed:
- Download and unpack the pipeline kit of your choice (in your case, the VISIR one)
- Set up the JAVA_HOME environment variable. According to our investigations, for your MacOS X 10.7 machine you should do this via the command:
Please make sure this is indeed the correct path. The script will expect to find two subdirectories in JAVA_HOME that are named 'Headers' and 'Commands', where the files 'jni.h' and 'javah' should be located, respectively.
- Run the installation script 'install_pipeline'. The compilation should now go through after you have answered the initial questions about where you want the files installed.
- Please make sure to set up the additional environment variables CPLDIR, DYLD_LIBRARY_PATH and PATH according to the instructions displayed at the end of the installation process. You should be able to copy/paste the suggested commands to achieve this. Issue also a 'hash -r' command after you have set the PATH variable (this step may not be necessary).
- Just run 'gasgano' from the command line.