jasonlarkin / p3dfft

Automatically exported from code.google.com/p/p3dfft
GNU General Public License v3.0
0 stars 0 forks source link

Issue compiling on OS X (seq command outdated in configure file) #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compiling p3dfft 2.5.1 on Mac OS X leads to an error:

1. On OS X 10.6.8 untar p3dfft.2.5.1

2. cd into this directory and run the following command
./configure --prefix=/usr/p3dfft/ --enable-gnu --enable-fftw 
--with-fftw=/usr/fftw CC=/usr/openmpi/bin/mpicc CXX=/usr/openmpi/bin/mpicxx 
F77=/usr/openmpi/bin/mpif90 FC=/usr/openmpi/bin/mpif90

3. This seems to work all right: 
configure: configure script complete!

However, the seq command cannot be found
checking FFTW directory... /usr/fftw
./configure: line 2306: seq: command not found

This is because bash no longer supports seq.

4. Modify all instances of seq in configure and configure.ac files:
Replace 
for i in $(seq 1 $N)
with
for i in $(eval echo {1..$N})

5. Rerun configure: no errors

6. Run make:
Build successful!

7. sudo make install:
Making install in build
make[1]: [all-local] Error 1 (ignored)
test -z "/usr/p3dfft//lib" || /Users/jcaps/Downloads/p3dfft.2.5.1/install-sh -d 
"/usr/p3dfft//lib"
/bin/sh: /Users/jcaps/Downloads/p3dfft.2.5.1/install-sh: Permission denied
make[2]: *** [install-libLIBRARIES] Error 126
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

Any ideas? Thanks!
This runs fine, however, 

Original issue reported on code.google.com by jessec...@gmail.com on 12 Dec 2012 at 2:10

GoogleCodeExporter commented 9 years ago
So I got it to compile...

After modifying configure and configure.am:
CHMOD 777 install-sh

Now make install will work.

Original comment by jessec...@gmail.com on 12 Dec 2012 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by dmitry...@gmail.com on 17 Mar 2015 at 12:04