Seite 1 von 1

cfitsio kompilieren

BeitragVerfasst: Samstag 23. Dezember 2017, 17:20
von schubi
Werte Thelianer,
ich scheitere immer wieder an einem Versionsfehler in der cfitsio.h Headerdatei.
Hintergrund siehe hier:http://www.theli-forum.info/viewtopic.php?f=12&t=579&p=4773#p4773

ich habe in /usr/local/ die dateien fitsio.h , fitsio2.h , drvrsmem.h und longnam.h entfernt und cfitsio neu kompiliert.
Ich habe den Eindruck dass etwas mit dem Makefile nicht in Ordnung ist.
Hier die Meldungen im Terminal:
Code: Alles auswählen
schubi@Rechner1:~/cfitsio$ ./configure --prefix=/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gfortran... no
checking for g95... no
checking for g77... no
checking for f77... no
checking for ifort... no
checking for f95... no
checking for f90... no
checking for xlf... no
checking for cf77... no
checking for gf77... no
checking for af77... no
checking for ncf... no
checking for f2c... no
configure: WARNING: cfitsio: == No acceptable Fortran compiler found in $PATH
configure: cfitsio: == Adding wrapper support for GNU Fortran by default
checking for ar... ar
checking for ranlib... ranlib
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
cfitsio: == Using gcc version 5.4.0
checking "whether ftruncate works"... "yes"
checking "whether long long is defined"... "yes"
checking "whether system V style IPC services are supported"... "yes"
checking "do we have flock_t defined in sys/fcntl.h"... "no"
checking "do we have flock_t defined in sys/flock.h"... "no"
checking "do we have union semun defined"... "no"
checking for library containing gethostbyname... none required
checking for library containing connect... none required
configure: creating ./config.status
config.status: creating Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cfitsio.pc

    Congratulations, Makefile update was successful.
    You may want to run "make" now.

schubi@Rechner1:~/cfitsio$ make
make[1]: Verzeichnis „/home/schubi/cfitsio“ wird betreten
make[1]: Für das Ziel „stand_alone“ ist nichts zu tun.
make[1]: Verzeichnis „/home/schubi/cfitsio“ wird verlassen
schubi@Rechner1:~/cfitsio$

Was besagen die Meldungen des Makefiles ?
Hier das makefile:
Code: Alles auswählen




prefix =/usr habe ich gewählt weil ich vermute dass Theli dort sucht.

In /usr finde ich keine Eintragungen.
In /usr/local/include finde ich die obig erwähnten Header Dateien.
In /usr/local/lib gibt es Archivpaket libcfitsio.a und einige libCCfits Dateien mit den jeweiligen Endungen .la .so
so.0 .so.0.0.0

Meine Fragen:
In welchem Verzeichnis sucht Theli nach der Library ?
wie muss ich das System bereinigen damit die Kompilierung der cfitsio richtig funktioniert ?

ich komme hier nicht weiter und bitte deshalb um Hilfe.
besten Dank

Re: cfitsio kompilieren

BeitragVerfasst: Montag 25. Dezember 2017, 11:29
von schubi
Hallo Thelianer,
ist gelöst.
cfitsio neu kompiliert und danach die CCfits mit der neuen cfitsio kompiliert.

VG
CS