安裝tcl報錯:configure:1765: error: no acceptable C compiler found in $PATH

問題:

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1385: checking whether to use symlinks for manpages
configure:1394: result: no
configure:1397: checking whether to compress the manpages
configure:1412: result: no
configure:1426: checking whether to add a package name suffix for the manpages
configure:1439: result: no
configure:1501: checking for gcc
configure:1530: result: no
configure:1581: checking for cc
configure:1610: result: no
configure:1623: checking for cc
configure:1669: result: no
configure:1722: checking for cl
configure:1751: result: no
configure:1765: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 

 

==============解決辦法==========

# yum install gcc
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
redhat7                                                                                                                               | 3.0 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libgomp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgcc >= 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
---> Package libgcc.x86_64 0:4.8.5-16.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-39.el7 will be an update
---> Package libgomp.x86_64 0:4.8.5-16.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-39.el7 will be an update
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-196.el7 will be updated
--> Processing Dependency: glibc = 2.17-196.el7 for package: glibc-common-2.17-196.el7.x86_64
---> Package glibc.x86_64 0:2.17-292.el7 will be an update
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-196.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-292.el7 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-1062.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                  Arch                             Version                                   Repository                         Size
=============================================================================================================================================================
Installing:
 gcc                                      x86_64                           4.8.5-39.el7                              redhat7                            16 M
Installing for dependencies:
 cpp                                      x86_64                           4.8.5-39.el7                              redhat7                           6.0 M
 glibc-devel                              x86_64                           2.17-292.el7                              redhat7                           1.1 M
 glibc-headers                            x86_64                           2.17-292.el7                              redhat7                           687 k
 kernel-headers                           x86_64                           3.10.0-1062.el7                           redhat7                           8.7 M
 libmpc                                   x86_64                           1.0.1-3.el7                               redhat7                            51 k
 mpfr                                     x86_64                           3.1.1-4.el7                               redhat7                           203 k
Updating for dependencies:
 glibc                                    x86_64                           2.17-292.el7                              redhat7                           3.6 M
 glibc-common                             x86_64                           2.17-292.el7                              redhat7                            11 M
 libgcc                                   x86_64                           4.8.5-39.el7                              redhat7                           102 k
 libgomp                                  x86_64                           4.8.5-39.el7                              redhat7                           158 k

Transaction Summary
=============================================================================================================================================================
Install  1 Package  (+6 Dependent packages)
Upgrade             ( 4 Dependent packages)

Total download size: 48 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/11): cpp-4.8.5-39.el7.x86_64.rpm                                                                                                   | 6.0 MB  00:00:00     
(2/11): glibc-2.17-292.el7.x86_64.rpm                                                                                                 | 3.6 MB  00:00:00     
(3/11): gcc-4.8.5-39.el7.x86_64.rpm                                                                                                   |  16 MB  00:00:00     
(4/11): glibc-devel-2.17-292.el7.x86_64.rpm                                                                                           | 1.1 MB  00:00:00     
(5/11): glibc-headers-2.17-292.el7.x86_64.rpm                                                                                         | 687 kB  00:00:00     
(6/11): glibc-common-2.17-292.el7.x86_64.rpm                                                                                          |  11 MB  00:00:00     
(7/11): libgcc-4.8.5-39.el7.x86_64.rpm                                                                                                | 102 kB  00:00:00     
(8/11): libgomp-4.8.5-39.el7.x86_64.rpm                                                                                               | 158 kB  00:00:00     
(9/11): libmpc-1.0.1-3.el7.x86_64.rpm                                                                                                 |  51 kB  00:00:00     
(10/11): mpfr-3.1.1-4.el7.x86_64.rpm                                                                                                  | 203 kB  00:00:00     
(11/11): kernel-headers-3.10.0-1062.el7.x86_64.rpm                                                                                    | 8.7 MB  00:00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                         33 MB/s |  48 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-39.el7.x86_64                                                                                                               1/15 
  Updating   : glibc-common-2.17-292.el7.x86_64                                                                                                         2/15 
  Updating   : glibc-2.17-292.el7.x86_64                                                                                                                3/15 
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
  Installing : mpfr-3.1.1-4.el7.x86_64                                                                                                                  4/15 
  Installing : libmpc-1.0.1-3.el7.x86_64                                                                                                                5/15 
  Installing : cpp-4.8.5-39.el7.x86_64                                                                                                                  6/15 
  Updating   : libgomp-4.8.5-39.el7.x86_64                                                                                                              7/15 
  Installing : kernel-headers-3.10.0-1062.el7.x86_64                                                                                                    8/15 
  Installing : glibc-headers-2.17-292.el7.x86_64                                                                                                        9/15 
  Installing : glibc-devel-2.17-292.el7.x86_64                                                                                                         10/15 
  Installing : gcc-4.8.5-39.el7.x86_64                                                                                                                 11/15 
  Cleanup    : libgomp-4.8.5-16.el7.x86_64                                                                                                             12/15 
  Cleanup    : glibc-common-2.17-196.el7.x86_64                                                                                                        13/15 
  Cleanup    : glibc-2.17-196.el7.x86_64                                                                                                               14/15 
  Cleanup    : libgcc-4.8.5-16.el7.x86_64                                                                                                              15/15 
  Verifying  : glibc-devel-2.17-292.el7.x86_64                                                                                                          1/15 
  Verifying  : glibc-2.17-292.el7.x86_64                                                                                                                2/15 
  Verifying  : mpfr-3.1.1-4.el7.x86_64                                                                                                                  3/15 
  Verifying  : libgcc-4.8.5-39.el7.x86_64                                                                                                               4/15 
  Verifying  : libgomp-4.8.5-39.el7.x86_64                                                                                                              5/15 
  Verifying  : kernel-headers-3.10.0-1062.el7.x86_64                                                                                                    6/15 
  Verifying  : cpp-4.8.5-39.el7.x86_64                                                                                                                  7/15 
  Verifying  : gcc-4.8.5-39.el7.x86_64                                                                                                                  8/15 
  Verifying  : glibc-common-2.17-292.el7.x86_64                                                                                                         9/15 
  Verifying  : glibc-headers-2.17-292.el7.x86_64                                                                                                       10/15 
  Verifying  : libmpc-1.0.1-3.el7.x86_64                                                                                                               11/15 
  Verifying  : libgcc-4.8.5-16.el7.x86_64                                                                                                              12/15 
  Verifying  : glibc-common-2.17-196.el7.x86_64                                                                                                        13/15 
  Verifying  : libgomp-4.8.5-16.el7.x86_64                                                                                                             14/15 
  Verifying  : glibc-2.17-196.el7.x86_64                                                                                                               15/15 

Installed:
  gcc.x86_64 0:4.8.5-39.el7                                                                                                                                  

Dependency Installed:
  cpp.x86_64 0:4.8.5-39.el7       glibc-devel.x86_64 0:2.17-292.el7     glibc-headers.x86_64 0:2.17-292.el7     kernel-headers.x86_64 0:3.10.0-1062.el7    
  libmpc.x86_64 0:1.0.1-3.el7     mpfr.x86_64 0:3.1.1-4.el7            

Dependency Updated:
  glibc.x86_64 0:2.17-292.el7         glibc-common.x86_64 0:2.17-292.el7         libgcc.x86_64 0:4.8.5-39.el7         libgomp.x86_64 0:4.8.5-39.el7        

Complete!

===========================

安裝tcl一切順利:

# ./configure
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dirent.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking if the compiler understands -pipe... yes
checking for pthread_mutex_init in -lpthread... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_atfork... yes
checking for building with threads... yes
checking for sin... no
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... shared
checking for tclsh... No tclsh found on PATH
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... Linux-3.10.0-693.el7.x86_64
checking for dlopen in -ldl... yes
checking for ar... ar
checking for cast to union support... yes
checking for build with symbols... no
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... using long
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for mkstemp... yes
checking for opendir... yes
checking for strtol... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking for getnameinfo... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking for struct addrinfo... yes
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_storage... yes
checking for getpwuid_r... yes
checking for getpwuid_r with 5 args... yes
checking for getpwnam_r... yes
checking for getpwnam_r with 5 args... yes
checking for getgrgid_r... yes
checking for getgrgid_r with 5 args... yes
checking for getgrnam_r... yes
checking for getgrnam_r with 5 args... yes
checking whether gethostbyname_r is declared... yes
checking for gethostbyname_r... yes
checking for gethostbyname_r with 6 args... yes
checking whether gethostbyaddr_r is declared... yes
checking for gethostbyaddr_r... yes
checking for gethostbyaddr_r with 7 args... no
checking for gethostbyaddr_r with 8 args... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking for fd_set in sys/types... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for mktime... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_blksize... yes
checking for blkcnt_t... yes
checking for fstatfs... yes
checking for working memcmp... yes
checking for memmove... yes
checking for strstr... yes
checking proper strstr implementation... ok
checking for strtoul... yes
checking proper strtoul implementation... ok
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for chflags... no
checking for mkstemps... yes
checking isnan... yes
checking for fts... yes
checking for sys/ioctl.h... (cached) yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking system version... (cached) Linux-3.10.0-693.el7.x86_64
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking whether to use dll unloading... yes
checking for timezone data... /usr/share/zoneinfo
checking whether to enable DTrace support... no
checking whether the cpuid instruction is usable... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dltest/Makefile
config.status: creating tclConfig.sh
config.status: creating tcl.pc

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章