Paul Dreik wrote: > I now tried on Debian Lenny, 64 bit which did not work out of the box.
Thanks, I didn't try Debian Lenny. > After installing fits libs, I get the following output: > octave:3> pkg install fits.tar.gz > 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 > [...] > > I think this is related to the Debian package not containing the library. Hm, I just noticed that all Debian packages libcfitsio3-dev (3.080-2) - independent of the architecture - are missing the cfitsio.pc file. I would consider this a bug in the Debian package. Maybe we should raise a bug report, and see if they want to fix this in the stable release. The cfitsio.pc is present in the current Debian Squeeze package. > Replacing > MKOCT_FLAGS = $(shell pkg-config --libs cfitsio) with > MKOCT_FLAGS = -lcfitsio > in src/Makefile makes it run on debian. The linker flags depend on the system and the installation. E.g., for Macports they are typically "-L/opt/local/lib -lcfitsio -lm". On Debian Squeeze, 'pkg-config --libs cfitsio' returns "-lcfitsio -lpthread". They install libcfitsio.so.3 in /usr/lib, and therefore they omit "-L/usr/lib" in the cfitsio.pc file. This works, since the linker will search this directory automatically on Debian. The intention of pkg-config (which is used by cfitsio) is to easily query installed libraries and corresponding flags. I don't think, we should break with this tool and write our own library detection. If pkg-config is not working, it's a bug of the cfitsio installation, which is a prerequisite for the octave-fits package. Maybe we could/should add your hint concerning Debian Lenny in a README file (which is currently missing ;) Do you want to add the fits package to the repository and add me as a developer? Dirk ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev