Ton*_*ous 6 linux gcc gnu thrift msys
我正在尝试构建和安装Apache Thrift编译器和库
我必须键入此命令,如说明所示,
./configure && make
但出现此错误:
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
Run Code Online (Sandbox Code Playgroud)
当我在命令提示符下键入
gcc --version我得到这个
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.
它找到gcc编译器。但是,当我从msys2Shell 运行它时
bash: gcc: command not found
环境变量中的路径正确。 C:\MinGW\bin
但是找不到gcc
提前致谢!
gcc编译器的路径不在中PATH。
您可以在运行make之前添加它。
export PATH=${PATH}:/c/MinGW/bin
./configure && make
Run Code Online (Sandbox Code Playgroud)
祝好运。
| 归档时间: |
|
| 查看次数: |
9324 次 |
| 最近记录: |