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
相關文章
- AIX 6.1安裝apache報no acceptable C compiler foundAIApacheCompile
- configure: error: C++ compiler cannot create executablesErrorC++Compile
- Error:A problem was found with the configuration of task ':app:packageDebug' 問題解決ErrorAPPPackage
- 解決direct path read 與 direct path write問題
- CertPathValidatorException: Trust anchor for certification path not found解決方法ExceptionRust
- linux下安裝安裝pcre-8.32 configure: error: You need a C++ compiler for C++ supportLinuxErrorC++Compile
- 解決bash: mysql: command not found的問題MySql
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- configure error:系統時間問題!(轉)Error
- cgo: C compiler "gcc" not found 報錯安裝gccGoCompileGC
- 關於java.lang.Error: Probable fatal error:No fonts found問題JavaError
- 解決python MySQLdb import Error問題PythonMySqlImportError
- Error in GetCurrentDir(): 13 問題分析與解決Error
- springboot專案解決 No beans of 'UserDao' type found 問題Spring BootBean
- mysqld: File './binlog.~rec~' not found 問題解決處理MySql
- syntax error near unexpected token `問題的解決Error
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- C語言解決排序問題C語言排序
- Java問題解決:The project cannot be built until build path errors are resolvedJavaProjectUIError
- 解決Parameter '__frch_item_0' not found. Available parameters 問題AI
- not found the actionForm name in action configureORM
- react-native install 報錯 No git binary found in $PATH解決方法ReactGit
- 解決「問題」,不要解決問題
- Java問題解決:Java compiler level does not match the version of the installed Java project facet.JavaCompileProject
- install emc powerpath on redhat linux and 'Found duplicate PV' 問題解決RedhatLinux
- pyenv docter檢測出configure: error: OpenSSL is not installed.解決方案Error
- npm ERR! Error: CERT_UNTRUSTED的問題解決NPMErrorRust
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- Andorid“emulator: ERROR: unknown virtual device name”問題解決Errordev
- error: #error This file requires compiler and library support for the ISO C++ 2011 standard.ErrorUICompileC++
- 用C語言解決迷宮問題C語言
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- 專案出現 The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path 解決方法JavaServletHTTPUI
- VScode git無法使用,Error: command 'git.push' not found 原始碼管理無法使用的問題及解決方法VSCodeGitError原始碼
- 解決Spark讀取Hive分割槽表出現Input path does not exist的問題SparkHive
- Laravel 6 ignition 解決 Class 'xxx' not found 載入緩慢問題Laravel
- 解決問題
- openstack上建立vm例項後,狀態為ERROR問題解決Error