配置错误安装fftw [英] Configure error installing fftw

查看:261
本文介绍了配置错误安装fftw的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是按照这里更新我的gcc。现在我正在尝试安装FFTW。所以我下载了这里。在我解压并导航到该目录后,我运行这个:

  ./ configure --enable-mpi --enable-threads  - -enable-openmp 

但是我得到以下错误:

 检查C编译器的OpenMP标志...未知
configure:error:不知道如何启用OpenMP

我知道OpenMP在我更新GCC之前无法使用,但现在如果我这样做:

  export PATH = / usr / local / gcc-6.1.0 / bin:$ PATH 
gcc-6.1.0 main.c -o main

所以我猜测问题是,当我尝试配置FFTW时,它使用默认的gcc,但我需要它来使用gcc-6.1.0。我该如何做到这一点?

解决方案

手册 CC 是环境变量,用于设置编译器为配置。

  ./ configure CC = gcc-6.1.0 --enable-mpi  - enable-threads --enable-openmp 

应该为那个配置。您也可以考虑更改gcc的符号链接


I just followed the instructions here to update my gcc. Now I am trying to install FFTW. So I downloaded the filed here. After I unzip and navigate to that directory I run this:

./configure  --enable-mpi --enable-threads --enable-openmp

But I get the following error:

checking for OpenMP flag of C compiler... unknown
configure: error: don't know how to enable OpenMP

I know OpenMP didn't work before I updated GCC, but it does now if I do this:

export PATH=/usr/local/gcc-6.1.0/bin:$PATH
gcc-6.1.0 main.c -o main

So I'm guessing the problem is that when I try to configure FFTW it is using the default gcc, but I need it to use gcc-6.1.0. How can I do this?

解决方案

From the manual, CC is the environment variable to set the compiler for configure.

./configure CC=gcc-6.1.0 --enable-mpi --enable-threads --enable-openmp

should set the version of gcc for that configure. You can also consider changing the symbolic link for gcc.

这篇关于配置错误安装fftw的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆