configure: error: no acceptable C compiler found in $PATH 問題解決
[root@localhost ~]# cd msmtp-1.4.20
[root@localhost msmtp-1.4.20]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/msmtp-1.4.20':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
今天在安裝msmtp的時候遇到了這個問題,解決辦法如下:
安裝GCC軟體套件
[root@localhost ~]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror01.idc.hinet.net
* extras: mirror01.idc.hinet.net
* updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.i386 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: glibc-headers = 2.5-58.el5_6.3 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Running transaction check
---> Package glibc-headers.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package kernel-headers.i386 0:2.6.18-238.9.1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc i386 4.1.2-50.el5 base 5.2 M
Installing for dependencies:
cpp i386 4.1.2-50.el5 base 2.7 M
glibc-devel i386 2.5-58.el5_6.3 updates 2.0 M
glibc-headers i386 2.5-58.el5_6.3 updates 603 k
kernel-headers i386 2.6.18-238.9.1.el5 updates 1.1 M
Transaction Summary
================================================================================
Install 5 Package(s)
Upgrade 0 Package(s)
Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): glibc-headers-2.5-58.el5_6.3.i386.rpm | 603 kB 00:00
(2/5): kernel-headers-2.6.18-238.9.1.el5.i386.rpm | 1.1 MB 00:00
(3/5): glibc-devel-2.5-58.el5_6.3.i386.rpm | 2.0 MB 00:00
(4/5): cpp-4.1.2-50.el5.i386.rpm | 2.7 MB 00:00
(5/5): gcc-4.1.2-50.el5.i386.rpm | 5.2 MB 00:00
--------------------------------------------------------------------------------
Total 5.1 MB/s | 12 MB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-headers 1/5
Installing : cpp 2/5
Installing : glibc-headers 3/5
Installing : glibc-devel 4/5
Installing : gcc 5/5
Installed:
gcc.i386 0:4.1.2-50.el5
Dependency Installed:
cpp.i386 0:4.1.2-50.el5 glibc-devel.i386 0:2.5-58.el5_6.3
glibc-headers.i386 0:2.5-58.el5_6.3 kernel-headers.i386 0:2.6.18-238.9.1.el5
Complete!
[root@localhost ~]# cd msmtp-1.4.20
[root@localhost msmtp-1.4.20]# ./configure
成功了!!
http://blog.csdn.net/duguduchong/article/details/8699774
相關文章
- PHP 5.4 編譯 configure: error: libXpm.(a|so) not found.PHP編譯Error
- CertPathValidatorException: Trust anchor for certification path not found解決方法ExceptionRust
- 解決bash: mysql: command not found的問題MySql
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- cgo: C compiler "gcc" not found 報錯安裝gccGoCompileGC
- pyenv docter檢測出configure: error: OpenSSL is not installed.解決方案Error
- error: #error This file requires compiler and library support for the ISO C++ 2011 standard.ErrorUICompileC++
- springboot專案解決 No beans of 'UserDao' type found 問題Spring BootBean
- react-native install 報錯 No git binary found in $PATH解決方法ReactGit
- 解決vue3 頁面重新整理控制檯報[Vue Router warn]: No match found for location with path“xxxxx” 警告問題Vue
- 解決SpringBoot頁面localhost 404問題,即Whitelabel Error Page問題Spring BootlocalhostError
- npm ERR! Error: CERT_UNTRUSTED的問題解決NPMErrorRust
- mysql登入遇到ERROR 1045問題解決方法MySqlError
- 解決Parameter '__frch_item_0' not found. Available parameters 問題AI
- springBoot+mvc專案:unexpected error(type=Not Acceptable,stauts=-406)Spring BootMVCError
- C語言解決排序問題C語言排序
- VScode git無法使用,Error: command 'git.push' not found 原始碼管理無法使用的問題及解決方法VSCodeGitError原始碼
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- mysql的ERROR 1231 (42000)問題原因及解決方法MySqlError
- Laravel 6 ignition 解決 Class 'xxx' not found 載入緩慢問題Laravel
- 解決PHP 7.4安裝xdebug出現configure: error: rtnetlink.h is required, please...PHPErrorUI
- 【問題解決】remote: parse error: Invalid numeric literal at line 1, column 20,解決思路REMError
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- Error: error:0308010C:digital envelope routines::unsupported 解決方案ErrorGit
- HBuilder解決:Error: error:0308010C:digital envelope routines::unsupportedUIErrorGit
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- git丟棄本地改動檔案時提示“error: path “file_path“ is unmerged”的解決方案GitError
- 藍橋杯搭建環境解決Kile 的Error: A9932E: MISSING DEVICE (R003: SECURITY KEY NOT FOUND) Target not created問題Errordev
- 專案出現 The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path 解決方法JavaServletHTTPUI
- glibc解決“libc.so.6: version GLIBC_2.14 not found”報錯問題
- 解決windows下WslRegisterDistribution failed with error: 0x80070050的問題WindowsAIError
- configure: error: libcurl >= 7.28.0 library and headers are required with suErrorHeaderUI
- 編譯ffmpeg遇到ERROR: x265 not found using pkg-config解決方法編譯Error
- COMPILER simplified C programminCompile
- 小程式錯誤:Component is not found in path
- go path 存在的問題Go
- 解決Cannot find module '@angular/compiler-cli'AngularCompile
- 解決程式中Error creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP