Comments (8)
Hi @jhparkes
I think this should be easy to sort out: you need to make sure that:
- The environment variable
LD_LIBRARY_PATH
contains the path to the directory where the libsharp libraries live (you can do this throughexport LD_LIBRARY_PATH=/path/to/libsharp/lib:$LD_LIBRARY_PATH
) - The similar thing for
LDFLAGS
andCPPFLAGS
. In this case you'd want:
export LDFLAGS+=" -L/path/to/libsharp/lib"
export CPPFLAGS+=" -I/path/to/libsharp/include"
Note that the directories /path/to/libsharp/lib
and /path/to/libsharp/include
must exist and must contain the lib***
and ***.h
files installed by libsharp.
You can probably adapt the contents of the NERSC_Installation.md document to your own system when doing this.
Let me know if this doesn't work
from namaster.
Hey @damonge
Thank you so much. That worked. I was able to successfully run the ./configure file after using the process above for both Libsharp and Healpix. I have also confirmed that Healpix seems to be working by running the test discussed in the Healpix test/README.
I am now running into an issue where the make is running into a fatal error. It seems that it is related to it not being able to find chealpix.h. But I have confirmed that there is a file by that name in the directory /path/to/healpix/src/C/autotools/. I am slightly confused about how to add this to the path and where to add it to. I have added the healpix/lib and /include directories as above but not /src/C/autotools. The exact error I am getting is:
make all-am
make[1]: Entering directory '/mnt/d/GradSchool/ubuntu/NaMaster.git/trunk'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -fopenmp -I./src/ -g -O2 -MT src/libnmt_la-healpix_extra.lo -MD -MP -MF src/.deps/libnmt_la-healpix_extra.Tpo -c -o src/libnmt_la-healpix_extra.lo test -f 'src/healpix_extra.c' || echo './'
src/healpix_extra.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -fopenmp -I./src/ -g -O2 -MT src/libnmt_la-healpix_extra.lo -MD -MP -MF src/.deps/libnmt_la-healpix_extra.Tpo -c src/healpix_extra.c -fPIC -DPIC -o src/.libs/libnmt_la-healpix_extra.o
src/healpix_extra.c:3:22: fatal error: chealpix.h: No such file or directory
compilation terminated.
Makefile:726: recipe for target 'src/libnmt_la-healpix_extra.lo' failed
make[1]: *** [src/libnmt_la-healpix_extra.lo] Error 1
make[1]: Leaving directory '/mnt/d/GradSchool/ubuntu/NaMaster.git/trunk'
Makefile:424: recipe for target 'all' failed
make: *** [all] Error 2
from namaster.
Right, this can probably be solved in a similar manner, but I'm thinking that using the conda forge version of NaMaster might be much easier. Have you tried following the instructions at the beginning of the README?
from namaster.
I did try that. However, when I did for some reason I ran into a different issue that whenever I ran python in a conda environment I could import pymaster I could not import healpy. I tried figuring out the source of this error for a long time and couldn't ever uncover it. That is why I decided to try the alternative method
from namaster.
Oh well. OK, let's go back to the healpix problem then.
I have added the healpix/lib and /include directories as above but not /src/C/autotools.
Is there no chealpix.h
file in this include directory?
from namaster.
There is a chealpix.h in the include directory. I had missed it last time I looked
from namaster.
OK, you want to add those lib and include directories to LDFLAGS
, LD_LIBRARY_FLAGS
(lib) and CPPFLAGS
(include), and then rerun ./configure
. Have you done that?
from namaster.
Yes, I actually had to add them in order to get ./configure to run
from namaster.
Related Issues (20)
- nan's with map read from fits file HOT 2
- random seed in synfast_flat
- I am not seeing a real improvement in performance, but it might be my own compiler being a bit outdated. Still worth merging, since libsharp2 is the one being maintained, but will open an issue to investigate further.
- configure fails to find cfitsio HOT 7
- Missing version number in pymaster
- Help installing NaMaster on M2 macOS HOT 17
- cannot find _nmtbin module HOT 4
- Error when setting lmax < 3 * nside - 1 in compute_full_master HOT 2
- Missing different lmax for mask and coupling coefficients for covariances HOT 1
- f_ell does not seem to do anything in NmtBin HOT 1
- Conda installation fails if conda installs gsl=2.7.1 instead of gsl=2.7
- Inconsistency in results between MacOS and Ubuntu HOT 13
- Make exception message more informative
- Weird power in compute_coupled_cell HOT 3
- pymaster installation problem HOT 3
- Pseudo-cl's in the covariance computation - pixel window function HOT 3
- Floating point errors with full sky CAR pixellization HOT 1
- NaMaster installation CFITSIO issue
- Apodisation window functions HOT 3
- Noise bias for flat sky HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from namaster.