quinta-feira, 16 de setembro de 2010

"Improved 3D Fabry-Perot Data Reduction Techniques" Solved

In this post, we followed the steps described in this site to install a package that reduce 3D data obtained with Fabry-Pérot. We ended with an error regarding to the step number 7, where the 'build_baryc' procedure failed to run.

The solution to this problem envolves basically two steps. The first one, no matter where you start your IDL, it will look for the 'baryc.c' file at your home directory. At least, that happened to me. So, to be sure where you are, once you start IDL, type '$pwd' to know the directory that you are or '$ls baryc.c' to be sure that you have this file in the current folder. If you realize that you are in the wrong place, just type 'cd, "/my/path/to/the/FPreduc"' and, then, try to run 'build_baryc' again.

The second problem that may raise is related to the compiler gcc in Ubuntu. It is a particular problem that seems to happen only in this plattaform (we don't know about the other Unix distributions). According to the author, the error is raised by a stack smash protection that could be enabled by default on Ubuntu. This can be solved by modifying the 'build_baryc.pro' by adding the following line:

cflags='-fno-stack-protector -fno-stack-protector-all'

just before the 'MAKE_DLL' procedure is called. In my case, gcc did not recognized the second flag, so I kept only the first one.

After all of this, just follow the rest of the guideline in the instalation procedures and it will run perfectly.

Nenhum comentário:

Postar um comentário