export MAVEN_HOME=/usr/local/maven/apache-maven-3.3.9
export PATH=$PATH:$MAVEN_HOME/bin
[root@name01 conf]# mvn --version
bash: mvn: command not found
[root@name01 conf]# source /etc/profile
[root@name01 conf]# mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /usr/local/maven/apache-maven-3.3.9
Java version: 1.8.0_20, vendor: Oracle Corporation
Java home: /usr/local/jdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.i686", arch: "i386", family: "unix"
[root@name01 conf]#
<pre name="code" class="sql">[root@name01 protobuf]# ls
protobuf-2.5.0 protobuf-2.5.0.tar.gz
[root@name01 protobuf]# cd protobuf-2.5.0
[root@name01 protobuf-2.5.0]# pwd
/usr/local/protobuf/protobuf-2.5.0
[root@name01 protobuf-2.5.0]#
[root@name01 protobuf-2.5.0]# ls
aclocal.m4 config.h.in CONTRIBUTORS.txt examples INSTALL.txt Makefile.am protobuf.pc.in vsprojects
autogen.sh config.sub COPYING.txt generate_descriptor_proto.sh java Makefile.in python
CHANGES.txt configure depcomp gtest ltmain.sh missing README.txt
config.guess configure.ac editors install-sh m4 protobuf-lite.pc.in src
[root@name01 protobuf-2.5.0]# ls -l
total 1212
-rw-r--r-- 1 109965 5000 36976 Feb 26 2013 aclocal.m4
-rwxr-xr-- 1 109965 5000 1519 Feb 26 2013 autogen.sh
-rw-r--r-- 1 109965 5000 25312 Feb 26 2013 CHANGES.txt
-rwxr-xr-- 1 109965 5000 44826 Feb 26 2013 config.guess
-rw-r--r-- 1 109965 5000 3709 Feb 26 2013 config.h.in
-rwxr-xr-- 1 109965 5000 35454 Feb 26 2013 config.sub
-rwxr-xr-- 1 109965 5000 599150 Feb 26 2013 configure
-rw-r--r-- 1 109965 5000 4829 Feb 26 2013 configure.ac
-rw-r--r-- 1 109965 5000 3527 Feb 26 2013 CONTRIBUTORS.txt
-rw-r--r-- 1 109965 5000 1732 Feb 26 2013 COPYING.txt
-rwxr-xr-- 1 109965 5000 20334 Feb 26 2013 depcomp
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 editors
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 examples
-rwxr-xr-- 1 109965 5000 1105 Feb 26 2013 generate_descriptor_proto.sh
drwxr-xr-x 15 109965 5000 4096 Feb 26 2013 gtest
-rwxr-xr-- 1 109965 5000 13998 Feb 26 2013 install-sh
-rw-r--r-- 1 109965 5000 9537 Feb 26 2013 INSTALL.txt
drwxr-xr-x 3 109965 5000 4096 Feb 26 2013 java
-rw-r--r-- 1 109965 5000 283680 Feb 26 2013 ltmain.sh
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 m4
-rw-r--r-- 1 109965 5000 15189 Feb 26 2013 Makefile.am
-rw-r--r-- 1 109965 5000 41742 Feb 26 2013 Makefile.in
-rwxr-xr-- 1 109965 5000 10346 Feb 26 2013 missing
-rw-r--r-- 1 109965 5000 408 Feb 26 2013 protobuf-lite.pc.in
-rw-r--r-- 1 109965 5000 429 Feb 26 2013 protobuf.pc.in
drwxr-xr-x 3 109965 5000 4096 Feb 26 2013 python
-rw-r--r-- 1 109965 5000 5312 Feb 26 2013 README.txt
drwxr-xr-x 4 109965 5000 4096 Feb 26 2013 src
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 vsprojects
[root@name01 protobuf-2.5.0]# ./configure
checking whether to enable maintainer-specific portions of Makefiles... yes
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... 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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/usr/local/protobuf/protobuf-2.5.0':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[root@name01 protobuf-2.5.0]# ls -l
total 1232
-rw-r--r-- 1 109965 5000 36976 Feb 26 2013 aclocal.m4
-rwxr-xr-- 1 109965 5000 1519 Feb 26 2013 autogen.sh
-rw-r--r-- 1 109965 5000 25312 Feb 26 2013 CHANGES.txt
-rwxr-xr-- 1 109965 5000 44826 Feb 26 2013 config.guess
-rw-r--r-- 1 109965 5000 3709 Feb 26 2013 config.h.in
-rw-r--r-- 1 root root 17433 Jun 12 19:44 config.log
-rwxr-xr-- 1 109965 5000 35454 Feb 26 2013 config.sub
-rwxr-xr-- 1 109965 5000 599150 Feb 26 2013 configure
-rw-r--r-- 1 109965 5000 4829 Feb 26 2013 configure.ac
-rw-r--r-- 1 109965 5000 3527 Feb 26 2013 CONTRIBUTORS.txt
-rw-r--r-- 1 109965 5000 1732 Feb 26 2013 COPYING.txt
-rwxr-xr-- 1 109965 5000 20334 Feb 26 2013 depcomp
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 editors
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 examples
-rwxr-xr-- 1 109965 5000 1105 Feb 26 2013 generate_descriptor_proto.sh
drwxr-xr-x 15 109965 5000 4096 Feb 26 2013 gtest
-rwxr-xr-- 1 109965 5000 13998 Feb 26 2013 install-sh
-rw-r--r-- 1 109965 5000 9537 Feb 26 2013 INSTALL.txt
drwxr-xr-x 3 109965 5000 4096 Feb 26 2013 java
-rw-r--r-- 1 109965 5000 283680 Feb 26 2013 ltmain.sh
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 m4
-rw-r--r-- 1 109965 5000 15189 Feb 26 2013 Makefile.am
-rw-r--r-- 1 109965 5000 41742 Feb 26 2013 Makefile.in
-rwxr-xr-- 1 109965 5000 10346 Feb 26 2013 missing
-rw-r--r-- 1 109965 5000 408 Feb 26 2013 protobuf-lite.pc.in
-rw-r--r-- 1 109965 5000 429 Feb 26 2013 protobuf.pc.in
drwxr-xr-x 3 109965 5000 4096 Feb 26 2013 python
-rw-r--r-- 1 109965 5000 5312 Feb 26 2013 README.txt
drwxr-xr-x 4 109965 5000 4096 Feb 26 2013 src
drwxr-xr-x 2 109965 5000 4096 Feb 26 2013 vsprojects
[root@name01 protobuf-2.5.0]# yum install glibc-headers
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
base | 3.7 kB 00:00
extras | 3.3 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package glibc-headers.i686 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.i686
---> Package glibc-headers.i686 0:2.12-1.192.el6 will be an update
--> Processing Dependency: glibc = 2.12-1.192.el6 for package: glibc-headers-2.12-1.192.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.107.el6 for package: glibc-common-2.12-1.107.el6.i686
---> Package glibc.i686 0:2.12-1.192.el6 will be an update
---> Package glibc-devel.i686 0:2.12-1.107.el6 will be updated
---> Package glibc-devel.i686 0:2.12-1.192.el6 will be an update
--> Running transaction check
---> Package glibc-common.i686 0:2.12-1.107.el6 will be updated
---> Package glibc-common.i686 0:2.12-1.192.el6 will be an update
--> Processing Dependency: tzdata >= 2015g-4 for package: glibc-common-2.12-1.192.el6.i686
--> Running transaction check
---> Package tzdata.noarch 0:2012j-1.el6 will be updated
---> Package tzdata.noarch 0:2016d-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Updating:
glibc-headers i686 2.12-1.192.el6 base 625 k
Updating for dependencies:
glibc i686 2.12-1.192.el6 base 4.4 M
glibc-common i686 2.12-1.192.el6 base 14 M
glibc-devel i686 2.12-1.192.el6 base 989 k
tzdata noarch 2016d-1.el6 updates 451 k
Transaction Summary
=============================================================================================================================================================
Upgrade 5 Package(s)
Total download size: 21 M
Is this ok [y/N]: Exiting on user Command
[root@name01 protobuf-2.5.0]# yum install gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i686 0:4.4.7-17.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-17.el6 for package: gcc-c++-4.4.7-17.el6.i686
--> Processing Dependency: libstdc++ = 4.4.7-17.el6 for package: gcc-c++-4.4.7-17.el6.i686
--> Processing Dependency: gcc = 4.4.7-17.el6 for package: gcc-c++-4.4.7-17.el6.i686
--> Running transaction check
---> Package gcc.i686 0:4.4.7-3.el6 will be updated
---> Package gcc.i686 0:4.4.7-17.el6 will be an update
--> Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
--> Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
--> Processing Dependency: libgcc >= 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.i686
---> Package libstdc++.i686 0:4.4.7-3.el6 will be updated
---> Package libstdc++.i686 0:4.4.7-17.el6 will be an update
---> Package libstdc++-devel.i686 0:4.4.7-17.el6 will be installed
--> Running transaction check
---> Package cpp.i686 0:4.4.7-3.el6 will be updated
---> Package cpp.i686 0:4.4.7-17.el6 will be an update
---> Package libgcc.i686 0:4.4.7-3.el6 will be updated
---> Package libgcc.i686 0:4.4.7-17.el6 will be an update
---> Package libgomp.i686 0:4.4.7-3.el6 will be updated
---> Package libgomp.i686 0:4.4.7-17.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
gcc-c++ i686 4.4.7-17.el6 base 4.3 M
Installing for dependencies:
libstdc++-devel i686 4.4.7-17.el6 base 1.6 M
Updating for dependencies:
cpp i686 4.4.7-17.el6 base 3.4 M
gcc i686 4.4.7-17.el6 base 8.2 M
libgcc i686 4.4.7-17.el6 base 114 k
libgomp i686 4.4.7-17.el6 base 136 k
libstdc++ i686 4.4.7-17.el6 base 302 k
Transaction Summary
=============================================================================================================================================================
Install 2 Package(s)
Upgrade 5 Package(s)
Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): cpp-4.4.7-17.el6.i686.rpm | 3.4 MB 00:12
(2/7): gcc-4.4.7-17.el6.i686.rpm | 8.2 MB 00:30
(3/7): gcc-c++-4.4.7-17.el6.i686.rpm | 4.3 MB 00:16
(4/7): libgcc-4.4.7-17.el6.i686.rpm | 114 kB 00:00
(5/7): libgomp-4.4.7-17.el6.i686.rpm | 136 kB 00:00
(6/7): libstdc++-4.4.7-17.el6.i686.rpm | 302 kB 00:01
(7/7): libstdc++-devel-4.4.7-17.el6.i686.rpm | 1.6 MB 00:05
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 274 kB/s | 18 MB 01:07
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-4.el6.centos.10.i686 (@anaconda-CentOS-201303020136.i386/6.4)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc-4.4.7-17.el6.i686 1/12
Updating : libstdc++-4.4.7-17.el6.i686 2/12
Installing : libstdc++-devel-4.4.7-17.el6.i686 3/12
Updating : libgomp-4.4.7-17.el6.i686 4/12
Updating : cpp-4.4.7-17.el6.i686 5/12
Updating : gcc-4.4.7-17.el6.i686 6/12
Installing : gcc-c++-4.4.7-17.el6.i686 7/12
Cleanup : gcc-4.4.7-3.el6.i686 8/12
Cleanup : libstdc++-4.4.7-3.el6.i686 9/12
Cleanup : libgcc-4.4.7-3.el6.i686 10/12
Cleanup : cpp-4.4.7-3.el6.i686 11/12
Cleanup : libgomp-4.4.7-3.el6.i686 12/12
Verifying : libstdc++-devel-4.4.7-17.el6.i686 1/12
Verifying : libgcc-4.4.7-17.el6.i686 2/12
Verifying : cpp-4.4.7-17.el6.i686 3/12
Verifying : libstdc++-4.4.7-17.el6.i686 4/12
Verifying : gcc-4.4.7-17.el6.i686 5/12
Verifying : libgomp-4.4.7-17.el6.i686 6/12
Verifying : gcc-c++-4.4.7-17.el6.i686 7/12
Verifying : libstdc++-4.4.7-3.el6.i686 8/12
Verifying : cpp-4.4.7-3.el6.i686 9/12
Verifying : libgcc-4.4.7-3.el6.i686 10/12
Verifying : gcc-4.4.7-3.el6.i686 11/12
Verifying : libgomp-4.4.7-3.el6.i686 12/12
Installed:
gcc-c++.i686 0:4.4.7-17.el6
Dependency Installed:
libstdc++-devel.i686 0:4.4.7-17.el6
Dependency Updated:
cpp.i686 0:4.4.7-17.el6 gcc.i686 0:4.4.7-17.el6 libgcc.i686 0:4.4.7-17.el6 libgomp.i686 0:4.4.7-17.el6 libstdc++.i686 0:4.4.7-17.el6
Complete!
[root@name01 protobuf-2.5.0]# yum install glibc-headers
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 28818.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 15 M RSS ( 30 MB VSZ)
Started: Sun Jun 12 19:51:30 2016 - 00:12 ago
State : Running, pid: 28818
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 23 M RSS ( 69 MB VSZ)
Started: Sun Jun 12 19:51:30 2016 - 00:14 ago
State : Sleeping, pid: 28818
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 23 M RSS ( 69 MB VSZ)
Started: Sun Jun 12 19:51:30 2016 - 00:16 ago
State : Sleeping, pid: 28818
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 23 M RSS ( 69 MB VSZ)
Started: Sun Jun 12 19:51:30 2016 - 00:18 ago
State : Sleeping, pid: 28818
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package glibc-headers.i686 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.i686
---> Package glibc-headers.i686 0:2.12-1.192.el6 will be an update
--> Processing Dependency: glibc = 2.12-1.192.el6 for package: glibc-headers-2.12-1.192.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.107.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.107.el6 for package: glibc-common-2.12-1.107.el6.i686
---> Package glibc.i686 0:2.12-1.192.el6 will be an update
---> Package glibc-devel.i686 0:2.12-1.107.el6 will be updated
---> Package glibc-devel.i686 0:2.12-1.192.el6 will be an update
--> Running transaction check
---> Package glibc-common.i686 0:2.12-1.107.el6 will be updated
---> Package glibc-common.i686 0:2.12-1.192.el6 will be an update
--> Processing Dependency: tzdata >= 2015g-4 for package: glibc-common-2.12-1.192.el6.i686
--> Running transaction check
---> Package tzdata.noarch 0:2012j-1.el6 will be updated
---> Package tzdata.noarch 0:2016d-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Updating:
glibc-headers i686 2.12-1.192.el6 base 625 k
Updating for dependencies:
glibc i686 2.12-1.192.el6 base 4.4 M
glibc-common i686 2.12-1.192.el6 base 14 M
glibc-devel i686 2.12-1.192.el6 base 989 k
tzdata noarch 2016d-1.el6 updates 451 k
Transaction Summary
=============================================================================================================================================================
Upgrade 5 Package(s)
Total download size: 21 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): glibc-2.12-1.192.el6.i686.rpm | 4.4 MB 00:15
(2/5): glibc-common-2.12-1.192.el6.i686.rpm | 14 MB 00:51
(3/5): glibc-devel-2.12-1.192.el6.i686.rpm | 989 kB 00:04
(4/5): glibc-headers-2.12-1.192.el6.i686.rpm | 625 kB 00:02
(5/5): tzdata-2016d-1.el6.noarch.rpm | 451 kB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 274 kB/s | 21 MB 01:16
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : tzdata-2016d-1.el6.noarch 1/10
Updating : glibc-common-2.12-1.192.el6.i686 2/10
Updating : glibc-2.12-1.192.el6.i686 3/10
Updating : glibc-headers-2.12-1.192.el6.i686 4/10
Updating : glibc-devel-2.12-1.192.el6.i686 5/10
Cleanup : glibc-devel-2.12-1.107.el6.i686 6/10
Cleanup : glibc-headers-2.12-1.107.el6.i686 7/10
Cleanup : glibc-common-2.12-1.107.el6.i686 8/10
Cleanup : glibc-2.12-1.107.el6.i686 9/10
Cleanup : tzdata-2012j-1.el6.noarch 10/10
Verifying : glibc-devel-2.12-1.192.el6.i686 1/10
Verifying : glibc-2.12-1.192.el6.i686 2/10
Verifying : glibc-common-2.12-1.192.el6.i686 3/10
Verifying : glibc-headers-2.12-1.192.el6.i686 4/10
Verifying : tzdata-2016d-1.el6.noarch 5/10
Verifying : glibc-devel-2.12-1.107.el6.i686 6/10
Verifying : tzdata-2012j-1.el6.noarch 7/10
Verifying : glibc-headers-2.12-1.107.el6.i686 8/10
Verifying : glibc-2.12-1.107.el6.i686 9/10
Verifying : glibc-common-2.12-1.107.el6.i686 10/10
Updated:
glibc-headers.i686 0:2.12-1.192.el6
Dependency Updated:
glibc.i686 0:2.12-1.192.el6 glibc-common.i686 0:2.12-1.192.el6 glibc-devel.i686 0:2.12-1.192.el6 tzdata.noarch 0:2016d-1.el6
Complete!
[root@name01 protobuf-2.5.0]#