mpip / pfft

Parallel fast Fourier transforms
GNU General Public License v3.0
54 stars 23 forks source link

How do I install locally without privilege escalation? #39

Open j-rahman opened 1 year ago

j-rahman commented 1 year ago

I was trying to install this library on a supercomputing cluster. However, I can only install it locally in my home directory, since I do not have authorisation to install it elsewhere.

After loading the modules intel/2020.4, intelmpi/2020.4, openucx/1.13.1 and fftw/3.3.10, I cloned the git repository and followed the installation instructions and ran ./bootstap.h followed by ./configure and make install.

The Makefile does its thing for some time, then it fails with the following error:

make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 pfft.h '/usr/local/include'
/usr/bin/install: cannot create regular file '/usr/local/include/pfft.h': Permission denied
make[2]: *** [Makefile:506: install-includeHEADERS] Error 1

Please advise what I must do to have it installed without needing admin privileges? Thank you.

j-rahman commented 1 year ago

Silly me, I just had to re-run configure as follows: ./configure --prefix=$HOME/.local and then run make install. This time it worked fine. Perhaps it would be nice to add this information in the README file.

BTW, when I ran make check, I got an error saying:

ifort: error #10236: File not found:  'simple_check_c2c.o'
make[3]: *** [Makefile:486: simple_check_c2c] Error 1
make[2]: *** [Makefile:631: check-am] Error 2
make[1]: *** [Makefile:1639: check-recursive] Error 1
make: *** [Makefile:648: check-recursive] Error 1

Wonder what that is about. Anyway, thank you for your time.