Installing P3DFFT
up vote
1
down vote
favorite
I am installing P3DFFT in ubuntu. I downloaded the ".tar.gz" file for it and extracted. Then used the "./configure" command. The configure gave the following error,
" configure:error:You must choose to use either ESSL or FTTW "
I have istalled the FTTW lib before P3DFFT. Please help me on this error.
Thanks
software-installation
add a comment |Â
up vote
1
down vote
favorite
I am installing P3DFFT in ubuntu. I downloaded the ".tar.gz" file for it and extracted. Then used the "./configure" command. The configure gave the following error,
" configure:error:You must choose to use either ESSL or FTTW "
I have istalled the FTTW lib before P3DFFT. Please help me on this error.
Thanks
software-installation
1
Please run./configure --help
to know the options--enable-fftw
and--with-fftw
.
â Knud Larsen
May 16 at 14:18
... although there appears to be an additional wrinkle that the./configure
script is hardwired to look in$with-fftw/lib64
rather than the multiarch-aware location$with-fftw/lib/x86_64-linux-gnu
for example
â steeldriver
May 16 at 15:20
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am installing P3DFFT in ubuntu. I downloaded the ".tar.gz" file for it and extracted. Then used the "./configure" command. The configure gave the following error,
" configure:error:You must choose to use either ESSL or FTTW "
I have istalled the FTTW lib before P3DFFT. Please help me on this error.
Thanks
software-installation
I am installing P3DFFT in ubuntu. I downloaded the ".tar.gz" file for it and extracted. Then used the "./configure" command. The configure gave the following error,
" configure:error:You must choose to use either ESSL or FTTW "
I have istalled the FTTW lib before P3DFFT. Please help me on this error.
Thanks
software-installation
asked May 16 at 13:05
Kiran Jadhav
212
212
1
Please run./configure --help
to know the options--enable-fftw
and--with-fftw
.
â Knud Larsen
May 16 at 14:18
... although there appears to be an additional wrinkle that the./configure
script is hardwired to look in$with-fftw/lib64
rather than the multiarch-aware location$with-fftw/lib/x86_64-linux-gnu
for example
â steeldriver
May 16 at 15:20
add a comment |Â
1
Please run./configure --help
to know the options--enable-fftw
and--with-fftw
.
â Knud Larsen
May 16 at 14:18
... although there appears to be an additional wrinkle that the./configure
script is hardwired to look in$with-fftw/lib64
rather than the multiarch-aware location$with-fftw/lib/x86_64-linux-gnu
for example
â steeldriver
May 16 at 15:20
1
1
Please run
./configure --help
to know the options --enable-fftw
and --with-fftw
.â Knud Larsen
May 16 at 14:18
Please run
./configure --help
to know the options --enable-fftw
and --with-fftw
.â Knud Larsen
May 16 at 14:18
... although there appears to be an additional wrinkle that the
./configure
script is hardwired to look in $with-fftw/lib64
rather than the multiarch-aware location $with-fftw/lib/x86_64-linux-gnu
for exampleâ steeldriver
May 16 at 15:20
... although there appears to be an additional wrinkle that the
./configure
script is hardwired to look in $with-fftw/lib64
rather than the multiarch-aware location $with-fftw/lib/x86_64-linux-gnu
for exampleâ steeldriver
May 16 at 15:20
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
As you do not specify your Ubuntu version I tested the method below on two supported LTS versions - Ubuntu 16.04 LTS (Xenial Xerus) and Ubuntu 18.04 LTS (Bionic Beaver).
Install FFTW-related developer packages and build-dependencies. Do not forget to enable source code repositories in Software & Updates (software-properties-gtk
) before you proceed.
Then run:
sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev libopenmpi-dev gfortran
sudo apt-get build-dep -y libfftw3-dev libfftw3-mpi-dev
Download and extract P3DFFT package:
cd ~/Downloads
wget https://github.com/sdsc/p3dfft/archive/v2.7.6.tar.gz
tar -xf v2.7.6.tar.gz
cd p3dfft-2.7.6/
As it was already written by @steeldriver:
The first thing to note is that the argument to
--with-fftw
must be the top level path to the FFTW3 header files and libraries. So
for example if the headers are in/usr/include
and the libraries are
under/usr/lib
(the default, when packagelibfftw3-dev
is
installed from the Ubuntu repository), the value should be given as
--with-fftw=/usr
The additional issue in this case is that the provided configure
script appears to be hard-wired to look in only thelib
andlib64
subdirectories:3315 if test -e $withfftw/lib/libfftw3.a ; then
3316 FFTW_INC="-I$withfftw/include"
3317
3318 FFTW_LIB="$withfftw/lib/libfftw3.a"
3319
3320 elif test -e $withfftw/lib64/libfftw3.a ; then
3321 FFTW_INC="-I$withfftw/include"
3322
3323 FFTW_LIB="$withfftw/lib64/libfftw3.a"
3324
3325 else
3326 as_fn_error $? "libfftw3.a was not found in given location!" "$LINENO" 5
3327 fi
The use of a
lib64
subdirectory is an old convention that pre-dates
Debian's Multiarch framework - the modern location for 64-bit
libraries would belib/x86_64-linux-gnu
So you need to patch the configure script. You can do it with commands below:
sed -i 's/$withfftw/include//usr/include/g' configure
sed -i 's/$withfftw/lib64//$withfftw//g' configure
sed -i 's/$withfftw/lib//$withfftw//g' configure
Then run new patched configure script with correct options:
./configure --enable-fftw --with-fftw=/usr/lib/x86_64-linux-gnu
Then run the compilation and installation:
make
sudo make install
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
As you do not specify your Ubuntu version I tested the method below on two supported LTS versions - Ubuntu 16.04 LTS (Xenial Xerus) and Ubuntu 18.04 LTS (Bionic Beaver).
Install FFTW-related developer packages and build-dependencies. Do not forget to enable source code repositories in Software & Updates (software-properties-gtk
) before you proceed.
Then run:
sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev libopenmpi-dev gfortran
sudo apt-get build-dep -y libfftw3-dev libfftw3-mpi-dev
Download and extract P3DFFT package:
cd ~/Downloads
wget https://github.com/sdsc/p3dfft/archive/v2.7.6.tar.gz
tar -xf v2.7.6.tar.gz
cd p3dfft-2.7.6/
As it was already written by @steeldriver:
The first thing to note is that the argument to
--with-fftw
must be the top level path to the FFTW3 header files and libraries. So
for example if the headers are in/usr/include
and the libraries are
under/usr/lib
(the default, when packagelibfftw3-dev
is
installed from the Ubuntu repository), the value should be given as
--with-fftw=/usr
The additional issue in this case is that the provided configure
script appears to be hard-wired to look in only thelib
andlib64
subdirectories:3315 if test -e $withfftw/lib/libfftw3.a ; then
3316 FFTW_INC="-I$withfftw/include"
3317
3318 FFTW_LIB="$withfftw/lib/libfftw3.a"
3319
3320 elif test -e $withfftw/lib64/libfftw3.a ; then
3321 FFTW_INC="-I$withfftw/include"
3322
3323 FFTW_LIB="$withfftw/lib64/libfftw3.a"
3324
3325 else
3326 as_fn_error $? "libfftw3.a was not found in given location!" "$LINENO" 5
3327 fi
The use of a
lib64
subdirectory is an old convention that pre-dates
Debian's Multiarch framework - the modern location for 64-bit
libraries would belib/x86_64-linux-gnu
So you need to patch the configure script. You can do it with commands below:
sed -i 's/$withfftw/include//usr/include/g' configure
sed -i 's/$withfftw/lib64//$withfftw//g' configure
sed -i 's/$withfftw/lib//$withfftw//g' configure
Then run new patched configure script with correct options:
./configure --enable-fftw --with-fftw=/usr/lib/x86_64-linux-gnu
Then run the compilation and installation:
make
sudo make install
add a comment |Â
up vote
1
down vote
As you do not specify your Ubuntu version I tested the method below on two supported LTS versions - Ubuntu 16.04 LTS (Xenial Xerus) and Ubuntu 18.04 LTS (Bionic Beaver).
Install FFTW-related developer packages and build-dependencies. Do not forget to enable source code repositories in Software & Updates (software-properties-gtk
) before you proceed.
Then run:
sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev libopenmpi-dev gfortran
sudo apt-get build-dep -y libfftw3-dev libfftw3-mpi-dev
Download and extract P3DFFT package:
cd ~/Downloads
wget https://github.com/sdsc/p3dfft/archive/v2.7.6.tar.gz
tar -xf v2.7.6.tar.gz
cd p3dfft-2.7.6/
As it was already written by @steeldriver:
The first thing to note is that the argument to
--with-fftw
must be the top level path to the FFTW3 header files and libraries. So
for example if the headers are in/usr/include
and the libraries are
under/usr/lib
(the default, when packagelibfftw3-dev
is
installed from the Ubuntu repository), the value should be given as
--with-fftw=/usr
The additional issue in this case is that the provided configure
script appears to be hard-wired to look in only thelib
andlib64
subdirectories:3315 if test -e $withfftw/lib/libfftw3.a ; then
3316 FFTW_INC="-I$withfftw/include"
3317
3318 FFTW_LIB="$withfftw/lib/libfftw3.a"
3319
3320 elif test -e $withfftw/lib64/libfftw3.a ; then
3321 FFTW_INC="-I$withfftw/include"
3322
3323 FFTW_LIB="$withfftw/lib64/libfftw3.a"
3324
3325 else
3326 as_fn_error $? "libfftw3.a was not found in given location!" "$LINENO" 5
3327 fi
The use of a
lib64
subdirectory is an old convention that pre-dates
Debian's Multiarch framework - the modern location for 64-bit
libraries would belib/x86_64-linux-gnu
So you need to patch the configure script. You can do it with commands below:
sed -i 's/$withfftw/include//usr/include/g' configure
sed -i 's/$withfftw/lib64//$withfftw//g' configure
sed -i 's/$withfftw/lib//$withfftw//g' configure
Then run new patched configure script with correct options:
./configure --enable-fftw --with-fftw=/usr/lib/x86_64-linux-gnu
Then run the compilation and installation:
make
sudo make install
add a comment |Â
up vote
1
down vote
up vote
1
down vote
As you do not specify your Ubuntu version I tested the method below on two supported LTS versions - Ubuntu 16.04 LTS (Xenial Xerus) and Ubuntu 18.04 LTS (Bionic Beaver).
Install FFTW-related developer packages and build-dependencies. Do not forget to enable source code repositories in Software & Updates (software-properties-gtk
) before you proceed.
Then run:
sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev libopenmpi-dev gfortran
sudo apt-get build-dep -y libfftw3-dev libfftw3-mpi-dev
Download and extract P3DFFT package:
cd ~/Downloads
wget https://github.com/sdsc/p3dfft/archive/v2.7.6.tar.gz
tar -xf v2.7.6.tar.gz
cd p3dfft-2.7.6/
As it was already written by @steeldriver:
The first thing to note is that the argument to
--with-fftw
must be the top level path to the FFTW3 header files and libraries. So
for example if the headers are in/usr/include
and the libraries are
under/usr/lib
(the default, when packagelibfftw3-dev
is
installed from the Ubuntu repository), the value should be given as
--with-fftw=/usr
The additional issue in this case is that the provided configure
script appears to be hard-wired to look in only thelib
andlib64
subdirectories:3315 if test -e $withfftw/lib/libfftw3.a ; then
3316 FFTW_INC="-I$withfftw/include"
3317
3318 FFTW_LIB="$withfftw/lib/libfftw3.a"
3319
3320 elif test -e $withfftw/lib64/libfftw3.a ; then
3321 FFTW_INC="-I$withfftw/include"
3322
3323 FFTW_LIB="$withfftw/lib64/libfftw3.a"
3324
3325 else
3326 as_fn_error $? "libfftw3.a was not found in given location!" "$LINENO" 5
3327 fi
The use of a
lib64
subdirectory is an old convention that pre-dates
Debian's Multiarch framework - the modern location for 64-bit
libraries would belib/x86_64-linux-gnu
So you need to patch the configure script. You can do it with commands below:
sed -i 's/$withfftw/include//usr/include/g' configure
sed -i 's/$withfftw/lib64//$withfftw//g' configure
sed -i 's/$withfftw/lib//$withfftw//g' configure
Then run new patched configure script with correct options:
./configure --enable-fftw --with-fftw=/usr/lib/x86_64-linux-gnu
Then run the compilation and installation:
make
sudo make install
As you do not specify your Ubuntu version I tested the method below on two supported LTS versions - Ubuntu 16.04 LTS (Xenial Xerus) and Ubuntu 18.04 LTS (Bionic Beaver).
Install FFTW-related developer packages and build-dependencies. Do not forget to enable source code repositories in Software & Updates (software-properties-gtk
) before you proceed.
Then run:
sudo apt-get install -y libfftw3-dev libfftw3-mpi-dev libopenmpi-dev gfortran
sudo apt-get build-dep -y libfftw3-dev libfftw3-mpi-dev
Download and extract P3DFFT package:
cd ~/Downloads
wget https://github.com/sdsc/p3dfft/archive/v2.7.6.tar.gz
tar -xf v2.7.6.tar.gz
cd p3dfft-2.7.6/
As it was already written by @steeldriver:
The first thing to note is that the argument to
--with-fftw
must be the top level path to the FFTW3 header files and libraries. So
for example if the headers are in/usr/include
and the libraries are
under/usr/lib
(the default, when packagelibfftw3-dev
is
installed from the Ubuntu repository), the value should be given as
--with-fftw=/usr
The additional issue in this case is that the provided configure
script appears to be hard-wired to look in only thelib
andlib64
subdirectories:3315 if test -e $withfftw/lib/libfftw3.a ; then
3316 FFTW_INC="-I$withfftw/include"
3317
3318 FFTW_LIB="$withfftw/lib/libfftw3.a"
3319
3320 elif test -e $withfftw/lib64/libfftw3.a ; then
3321 FFTW_INC="-I$withfftw/include"
3322
3323 FFTW_LIB="$withfftw/lib64/libfftw3.a"
3324
3325 else
3326 as_fn_error $? "libfftw3.a was not found in given location!" "$LINENO" 5
3327 fi
The use of a
lib64
subdirectory is an old convention that pre-dates
Debian's Multiarch framework - the modern location for 64-bit
libraries would belib/x86_64-linux-gnu
So you need to patch the configure script. You can do it with commands below:
sed -i 's/$withfftw/include//usr/include/g' configure
sed -i 's/$withfftw/lib64//$withfftw//g' configure
sed -i 's/$withfftw/lib//$withfftw//g' configure
Then run new patched configure script with correct options:
./configure --enable-fftw --with-fftw=/usr/lib/x86_64-linux-gnu
Then run the compilation and installation:
make
sudo make install
edited May 18 at 11:57
answered May 17 at 20:14
N0rbert
14.7k32869
14.7k32869
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036959%2finstalling-p3dfft%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Please run
./configure --help
to know the options--enable-fftw
and--with-fftw
.â Knud Larsen
May 16 at 14:18
... although there appears to be an additional wrinkle that the
./configure
script is hardwired to look in$with-fftw/lib64
rather than the multiarch-aware location$with-fftw/lib/x86_64-linux-gnu
for exampleâ steeldriver
May 16 at 15:20