配置:错误:在$ PATH中找不到可接受的C编译器 [英] configure: error: no acceptable C compiler found in $PATH
问题描述
我正在尝试构建和安装Apache Thrift编译器和库
我必须输入此命令才能显示说明
./ configure&& make
但是我得到这个错误:
检查gcc ... no
检查cc ... no
检查cl.exe ... no
configure:error:in`/PATH/TO/thrift-0.9.3':
configure :错误:在$ PATH中找不到可接受的C编译器
当我输入我的命令提示符
gcc --version
我得到这个
gcc(GCC)5.3.0
Copyright(C)2015 Free Software Foundation,Inc.
这是免费软件;请参阅复制条件的来源。没有任何b $ b保修;甚至不适用于适销性或针对特定用途的适用性。
它找到gcc编译器。然而,当我从我的 msys2
Shell运行它时
bash:gcc:command not找到
环境变量中的路径是正确的。 C:\MinGW\bin
然而它无法找到gcc
在此先感谢!
PATH中
。
您可以在运行make之前添加它。 / p>
export PATH = $ {PATH}:/ c / MinGW / bin
./configure&& make
Goodluck。
I am trying to Build and Install the Apache Thrift compiler and libraries
I had to type this command is shown in instructions
./configure && make
But I get this error:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/PATH/TO/thrift-0.9.3':
configure: error: no acceptable C compiler found in $PATH
When I type in my command prompt
gcc --version
I get this
gcc (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It finds the gcc compiler. However, when I run it from my msys2
Shell
bash: gcc: command not found
The path in Environment variables is correct. C:\MinGW\bin
Yet it canno't find gcc
Thanks in advance!
The path to your gcc
compiler is not in the PATH
.
You may add it before you run make.
export PATH=${PATH}:/c/MinGW/bin
./configure && make
Goodluck.
这篇关于配置:错误:在$ PATH中找不到可接受的C编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!