Can't install FITS in Octave dev.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't install FITS in Octave dev.

Dildar Sk
When I am trying to install FITS package in Octave dev by typing
'>>pkg install fits-1.0.7.tar.gz'

I am getting following error.

Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
Package cfitsio was not found in the pkg-config search path.
Perhaps you should add the directory containing `cfitsio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cfitsio' found
save_fits_image.cc:23:20: fatal error: fitsio.h: No such file or directory
save_fits_image_multi_ext.cc:23:20: fatal error: fitsio.h: No such file or
directory
read_fits_image.cc:23:20: fatal error: fitsio.h: No such file or directory
compilation terminated.
compilation terminated.
compilation terminated.
make: *** [save_fits_image.oct] Error 1
make: *** Waiting for unfinished jobs....
make: *** [read_fits_image.oct] Error 1
make: *** [save_fits_image_multi_ext.oct] Error 1
make: Entering directory '/tmp/oct-IWUQbC/fits-1.0.7/src'
mkoctfile --verbose -Wall  read_fits_image.cc
mkoctfile --verbose -Wall  save_fits_image.cc
mkoctfile --verbose -Wall  save_fits_image_multi_ext.cc
g++ -std=gnu++11 -c  -fPIC -I/usr/local/include/octave-4.3.0+/octave/..
-I/usr/local/include/octave-4.3.0+/octave -I/usr/local/include  -pthread
-fopenmp -g -O2  -Wall   save_fits_image_multi_ext.cc -o
save_fits_image_multi_ext.o
g++ -std=gnu++11 -c  -fPIC -I/usr/local/include/octave-4.3.0+/octave/..
-I/usr/local/include/octave-4.3.0+/octave -I/usr/local/include  -pthread
-fopenmp -g -O2  -Wall   save_fits_image.cc -o save_fits_image.o
g++ -std=gnu++11 -c  -fPIC -I/usr/local/include/octave-4.3.0+/octave/..
-I/usr/local/include/octave-4.3.0+/octave -I/usr/local/include  -pthread
-fopenmp -g -O2  -Wall   read_fits_image.cc -o read_fits_image.o
Makefile:9: recipe for target 'save_fits_image.oct' failed
Makefile:9: recipe for target 'read_fits_image.oct' failed
Makefile:9: recipe for target 'save_fits_image_multi_ext.oct' failed
make: Leaving directory '/tmp/oct-IWUQbC/fits-1.0.7/src'

pkg: error running `make' for the fits package.
error: called from
    configure_make at line 95 column 9
    install at line 192 column 7
    pkg at line 394 column 9



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Can't install FITS in Octave dev.

marco atzeri-2
On 22/02/2018 14:28, Dildar Sk wrote:
> When I am trying to install FITS package in Octave dev by typing
> '>>pkg install fits-1.0.7.tar.gz'
>
> I am getting following error.
>
> Package cfitsio was not found in the pkg-config search path.
> Perhaps you should add the directory containing `cfitsio.pc'
> to the PKG_CONFIG_PATH environment variable

The massage is very clear, to compile from source the fits
octave package you need the the headers and import library of cfitsio.

Please look on your system package repository and install the
development version of cfitsio package.

For example on Debian you need
https://packages.debian.org/jessie/libcfitsio-dev

Regards
Marco


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------