SDSS binutils for IDL installation

[中文版]

If you are trying to install SDSS binutils package for IDL on a pretty up-to-date Linux box following the instructions on SDSS site, probably you get two kinds of errors,for example:

Error: output to /lib/libmangle.a  ,permission denied.

Error: azel.s.o  not found (or "f77 : program not found " if you have not installed f77 with f2c)

The first is caused by the ineffectiveness of the IDLUTILS_DIR variable when executing evilmake in a bash shell. While the second is because the script failed to set the appropriate compilers.

Here is my work-around:

Download your package,untar it, and change to that directory.

Modify the evilmake script to use gfortran as fortran 77 compiler and gcc as a linker, by changing the following two lines in \$IDLUTILS_DIR/bin/evilmake

    "Linux" )
        LDF77=g77

to these three lines:

    "Linux" )
        F77=gfortran
        LDF77=gcc

If you do not have gfortran compiler, install it first.

Now change your shell to csh by the command

csh

and set the environment variable by

setenv IDLUTILS_DIR your_idlutils_dir...

Now it would be fine to run the modified evilmake in csh, only some warning about unused variable should be issued.

The last step is to set the IDL working path to include your IDLUTILS_DIR. This is easily done in your idlde menu by setting the perference or options where you find the Path tab or IDL->directory tree.