Ok. From a long time I have been trying to install this package used to do data reduction in astronomical cubes of data. Today, I will follow every step with a lot of attention so I can be sure that I am not doing anything wrong.
------------------------------------------------------------------
1. Install the IDL astrolib library
From the other times that I tried to install FPDRT on my machine, I got a folder from a friend which has the astrolib. This time, I downloaded it from the website. Since my machine is a Ubuntu 10.04 (Unix System), I downloaded the astron.dir.tar.gz. This file seems to be more organized that the other one available for Unix, that's why I choosed it.
Since I have a lot of trash in my lib folder already from other attemps, I created a astrolib folder in my idl folder and unzipped the astro file inside it. After that I added this folder to my IDL PATH variable at the idl_startup.pro. Then, I runned IDL and typed AIRTOVAC to check.
------------------------------------------------------------------
2. Make sure the IDL astrolib library is into your IDL path.
Well... it is. I did this already in the last step.
------------------------------------------------------------------
3. Download the package 3d data reduction package (latest version: 5.03).
Nothing special here.
-----------------------------------------------------------------
4. Uncompress the 3d reduction package into your favorite directory.
Here, I did it into the idl folder. I created a FPreduc directory inside it and uncompressed the files inside it. Only to prevent any error, I gave all premissions to this folder and to the astrolib folder.
------------------------------------------------------------------
5. Add this directory to your !path variable (can be done through the IDL_STARTUP script)
Ok.
------------------------------------------------------------------
6. Go into this directory and start idl.
Ok. Only to be sure...
% pwd
> /home/myhome/.idl/idl/fpreduc
% ls
> FPreduc
------------------------------------------------------------------
7. At the idl prompt, type « build_baryc ». This will compile and install the baryc C submodule.
Then... the error:
IDL> build_baryc
% Compiled module: BUILD_BARYC.
% MAKE_DLL: Writing build script: /home/bquint/.idl/itt/compile_dir-118-
-linux-x86-m32-f64/baryc_10121_salamander.sh
% MAKE_DLL: Writing linker export file: /home/bquint/.idl/itt/compile_dir-118-idl_7_0-linux-x86-m32-f64/baryc_10121_salamander.export
% MAKE_DLL: Running build script: /home/bquint/.idl/itt/compile_dir-118-idl_7_0-linux-x86-m32-f64/baryc_10121_salamander.sh
% gcc -fPIC -I"/home/bquint/.idl/idl70/external/include" -c -m32 -D_REENTRANT "/home/bquint/.idl/idl70/fpreduc/baryc.c" -o "baryc_10121_salamander.o"
gcc: /home/bquint/.idl/idl70/fpreduc/baryc.c: Arquivo ou diretório não encontrado
gcc: no input files
% FILE_COPY: Unable to obtain file status. File: baryc.dlm.orig
No such file or directory
% Execution halted at: BUILD_BARYC 17
/home/bquint/.idl/idl70/fpreduc/FPreduc/build_baryc.pro
% $MAIN$
Trying again inside FPreduc folder...
~/.idl/idl/fpreduc/FPreduc$ idl
Version 7.0 (linux x86 m32). (c) 2007, ITT Visual Information Solutions
loadable module definition file lacks a MODULE directive:
/bquint/.idl/idl70/fpreduc/FPreduc/._baryc.dlm.