Menu

#57 configure script problem with C on ubuntu

v3.20+
closed-fixed
nobody
None
5
2016-01-19
2015-05-11
No

The configure script runs into a problem when doing the C configuration. The issue is with the question "do you want the HEALPix/C library to include CFITSIO-related functions ?". No matter what you answer you get an error like "./configure: 231: [: x: unexpected operator" and then it goes on assuming you answered "no".

The problem is that the script uses bash functionality but it's run in sh, so it doesn't understand the syntax. A simple fix for me was to change the first line of the configure script from "#! /bin/sh" to "#! /bin/bash".

I have installed HEALPix on a few different platforms, but I only get this error on Ubuntu. Not really sure why, but I assume on the other platforms sh understands bash syntax as well. In any case, the script should either be run on bash or not include any bash-specific syntax.

Discussion

  • Martin Reinecke

    Martin Reinecke - 2016-01-19

    It seems that this problem has been addressed in the shellscript, yet the problem report has not yet been closed. Closing it now...

     
  • Martin Reinecke

    Martin Reinecke - 2016-01-19
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel