安装 protobuf 很水 慎入 主要做个备份

[root@localhost yuming]# wget https://protobuf.googlecode.com/files/protobuf-2.4.1.zip
[root@localhost yuming]# unzip protobuf-2.4.1.zip 
[root@localhost yuming]# cd protobuf-2.4.1/
[root@localhost protobuf-2.4.1]# ./configure

[root@localhost protobuf-2.4.1]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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... /usr/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 `/home/yuming/protobuf-2.4.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


[yuming@localhost ~]$ sudo yum install gcc-c++.x86_64
[sudo] password for yuming: 
Loaded plugins: langpacks, refresh-packagekit
adobe-linux-x86_64                                                       |  951 B  00:00:00     
ftp://192.168.0.254/pub/cdh/4/repodata/repomd.xml: [Errno 12] Timeout on ftp://192.168.0.254/pub/cdh/4/repodata/repomd.xml: (28, 'Connection timed out after 30033 milliseconds')
Trying other mirror.
ftp://192.168.0.254/pub/cdh/4/repodata/repomd.xml: [Errno 12] Timeout on ftp://192.168.0.254/pub/cdh/4/repodata/repomd.xml: (28, 'Connection timed out after 30033 milliseconds')
Trying other mirror.
这也能干扰,太不智能了
[root@localhost yum.repos.d]# mv cloudera-cdh4.repo cloudera-cdh4.repo.bak
[root@localhost yum.repos.d]# ls
adobe-linux-x86_64.repo  fedora.repo          fedora-updates-testing.repo
cloudera-cdh4.repo.bak   fedora-updates.repo  google-chrome.repo





Installed:
  gcc-c++.x86_64 0:4.8.1-1.fc19                                                                 


Dependency Installed:
  cpp.x86_64 0:4.8.1-1.fc19                        gcc.x86_64 0:4.8.1-1.fc19                    
  glibc-devel.x86_64 0:2.17-11.fc19                glibc-headers.x86_64 0:2.17-11.fc19          
  kernel-headers.x86_64 0:3.9.9-302.fc19           libmpc.x86_64 0:1.0.1-1.fc19                 
  libstdc++-devel.x86_64 0:4.8.1-1.fc19       

[yuming@localhost ~]$ cc
cc: fatal error: no input files
compilation terminated.
[yuming@localhost ~]$ gcc
gcc: fatal error: no input files
compilation terminated.
[yuming@localhost ~]$ g++
g++: fatal error: no input files
compilation terminated.


[root@localhost protobuf-2.4.1]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking C++ compiler flags...... use default: -O2  -g -DNDEBUG
checking whether __SUNPRO_CC is declared... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g&
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值