[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&
安装 protobuf 很水 慎入 主要做个备份
最新推荐文章于 2024-08-20 16:25:40 发布
本文详细记录了protobuf的安装过程,包括系统环境准备、下载安装包、配置环境变量等步骤,并列举了一些常见的安装问题及解决方案,供开发者参考。
摘要由CSDN通过智能技术生成