astromatic / sextractor

Extract catalogs of sources from astronomical images
http://astromatic.net/software/sextractor
GNU General Public License v3.0
148 stars 43 forks source link

configure: error: FFTW include files not found in default location! Exiting. #68

Open EKHess opened 1 month ago

EKHess commented 1 month ago

Hi there!

I'm new to Astromatic software, but I'm collaborating with a seasoned vet who uses SWarp, SExtractor and other Astromatic software in their IRAF routines. I succesfully installed SWarp by cloning the repo, and running the standard ./autogen.sh then ./configure then make as recomended here: https://www.astromatic.net/repositories/.

I'm now trying to install SExtractor so I followed the steps that worked before:

  1. Cloned the repo
  2. cd'd into the sextractor folder
  3. Ran ./autogen.sh And was all good up to this point. However, when I run ./configure it exits before completing with the error message:
    configure: error: FFTW include files not found in default location! Exiting.

    Obviously some files are missing for the FFTW routines, but that's all I can gleam. I'm somewhat Linux-savvy, but certainly not as savvy as others, so I've included the entire dialogue from running ./configure on my machine below. I'm a bit out of my depth in troubleshooting this, so any help/suggestions would be appreciated.

For context, I'm running Ubuntu 22.04 Jammy, x86 64 architecture.

Thanks for your time,

Eric

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
******** Configuring:  SExtractor 2.28.0 - 1 (2024-06-06) ********
checking if compilation flags are set automatically... no
checking whether the classic INTEL compiler is enabled... no
checking whether the INTEL compiler is enabled... no
checking whether INTEL's MKL is enabled... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/param.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for sin in -lm... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking how to run the C preprocessor... gcc -E
checking for uid_t in sys/types.h... yes
checking for error_at_line... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for atexit... yes
checking for getenv... yes
checking for gettimeofday... yes
checking for isinf... yes
checking for isnan... yes
checking for logf... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for posix_memalign... yes
checking for setlinebuf... yes
checking for sincosf... yes
checking for strstr... yes
checking for sysconf... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether OpenBLAS is enabled... no
checking whether CFITSIO support should be disabled (default=enabled)... no
checking if model-fitting should be disabled (default=enabled)... no
checking for profiler mode... no
checking best linking option... no
checking for fftw3.h... no
checking for fftw/fftw3.h... no
configure: error: FFTW include files not found in default location! Exiting.
olebole commented 1 month ago

On Ubuntu 22.04, you can install the Astromatic software collection with

sudo apt install astromatic

This will install source-extractor, swarp, stiff, missfits, psfex, scamp, weightwatcher. IRAF can be installed similarly with

sudo apt install iraf

There is a large set of astronomy software available in Ubuntu as part of the Debian Astro Pure Blend; see https://blends.debian.org/astro/ for more info and the lists of packages.

EKHess commented 1 month ago

Thanks so much for the help! I was able to get source-extractor running and dump a standard configuration file after running:

$ sudo apt install sextractor

In case anyone else reads this, I invoke source-extractor by typing:

$ source-extractor

in the terminal. I read from various sources that some invoke using sextractor or simply sex but neither of those work for me.

Thanks as well for the link to the Debian Astro Pure Blend - I hadn't come across that before now!

Clear skies, Eric