@@ -135,7 +135,6 @@ these dependencies.
135135- [ openSUSE (Leap)] ( #opensuse-leap )
136136- [ Ubuntu (18.04 - Bionic Beaver)] ( #ubuntu-1804---bionic-beaver )
137137- [ Ubuntu (16.04 - Xenial Xerus)] ( #ubuntu-1604---xenial-xerus )
138- - [ Ubuntu (14.04 - Trusty Tahr)] ( #ubuntu-1404---trusty-tahr )
139138- [ Debian (10 Buster)] ( #debian-10---buster )
140139- [ Debian (9 Stretch)] ( #debian-9---stretch )
141140- [ CentOS 7] ( #centos-7 )
@@ -584,144 +583,6 @@ sudo cmake --build . --target install
584583```
585584
586585
587- ### Ubuntu (14.04 - Trusty Tahr)
588-
589- Install the minimal development tools.
590- We use the ` ubuntu-toolchain-r ` PPA to get a modern version of CMake:
591-
592- ``` bash
593- sudo apt update && sudo apt install -y software-properties-common
594- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
595- sudo apt update && \
596- sudo apt install -y automake cmake3 git gcc g++ libtool make pkg-config \
597- tar wget zlib1g-dev
598- ```
599-
600- #### OpenSSL
601-
602- Ubuntu:14.04 ships with a very old version of OpenSSL, this version is not
603- supported by gRPC. We need to compile and install OpenSSL-1.0.2 from source.
604-
605- ``` bash
606- cd $HOME /Downloads
607- wget -q https://www.openssl.org/source/openssl-1.0.2n.tar.gz
608- tar xf openssl-1.0.2n.tar.gz
609- cd $HOME /Downloads/openssl-1.0.2n
610- ./config --shared
611- make -j ${NCPU:- 4}
612- sudo make install
613- ```
614-
615- Note that by default OpenSSL installs itself in ` /usr/local/ssl ` . Installing
616- on a more conventional location, such as ` /usr/local ` or ` /usr ` , can break
617- many programs in your system. OpenSSL 1.0.2 is actually incompatible with
618- with OpenSSL 1.0.0 which is the version expected by the programs already
619- installed by Ubuntu 14.04.
620-
621- In any case, as the library installs itself in this non-standard location, we
622- also need to configure CMake and other build program to find this version of
623- OpenSSL:
624-
625- ``` bash
626- export OPENSSL_ROOT_DIR=/usr/local/ssl
627- export PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig
628- ```
629-
630- #### Protobuf
631-
632- We need to install a version of Protobuf that is recent enough to support the
633- Google Cloud Platform proto files:
634-
635- ``` bash
636- cd $HOME /Downloads
637- wget -q https://github.com/google/protobuf/archive/v3.9.1.tar.gz && \
638- tar -xf v3.9.1.tar.gz && \
639- cd protobuf-3.9.1/cmake && \
640- cmake \
641- -DCMAKE_BUILD_TYPE=Release \
642- -DBUILD_SHARED_LIBS=yes \
643- -Dprotobuf_BUILD_TESTS=OFF \
644- -H. -Bcmake-out && \
645- cmake --build cmake-out -- -j ${NCPU:- 4} && \
646- sudo cmake --build cmake-out --target install -- -j ${NCPU:- 4} && \
647- sudo ldconfig
648- ```
649-
650- #### c-ares
651-
652- Recent versions of gRPC require c-ares >= 1.11, while Ubuntu 14.04
653- distributes c-ares-1.10. Manually install a newer version:
654-
655- ``` bash
656- cd $HOME /Downloads
657- wget -q https://github.com/c-ares/c-ares/archive/cares-1_14_0.tar.gz && \
658- tar -xf cares-1_14_0.tar.gz && \
659- cd c-ares-cares-1_14_0 && \
660- ./buildconf && ./configure && make -j ${NCPU:- 4} && \
661- sudo make install && \
662- sudo ldconfig
663- ```
664-
665- #### gRPC
666-
667- We also need a version of gRPC that is recent enough to support the Google
668- Cloud Platform proto files. We can install gRPC from source using:
669-
670- ``` bash
671- cd $HOME /Downloads
672- wget -q https://github.com/grpc/grpc/archive/v1.23.1.tar.gz && \
673- tar -xf v1.23.1.tar.gz && \
674- cd grpc-1.23.1 && \
675- make -j ${NCPU:- 4} && \
676- sudo make install && \
677- sudo ldconfig
678- ```
679-
680- #### googleapis
681-
682- We need a recent version of the Google Cloud Platform proto C++ libraries:
683-
684- ``` bash
685- cd $HOME /Downloads
686- wget -q https://github.com/googleapis/cpp-cmakefiles/archive/v0.1.5.tar.gz && \
687- tar -xf v0.1.5.tar.gz && \
688- cd cpp-cmakefiles-0.1.5 && \
689- cmake -DBUILD_SHARED_LIBS=YES -H. -Bcmake-out && \
690- cmake --build cmake-out -- -j ${NCPU:- 4} && \
691- sudo cmake --build cmake-out --target install -- -j ${NCPU:- 4} && \
692- sudo ldconfig
693- ```
694-
695- #### googletest
696-
697- We need a recent version of GoogleTest to compile the unit and integration
698- tests.
699-
700- ``` bash
701- cd $HOME /Downloads
702- wget -q https://github.com/google/googletest/archive/release-1.10.0.tar.gz && \
703- tar -xf release-1.10.0.tar.gz && \
704- cd googletest-release-1.10.0 && \
705- cmake -DCMAKE_BUILD_TYPE=" Release" -DBUILD_SHARED_LIBS=yes -H. -Bcmake-out && \
706- cmake --build cmake-out -- -j ${NCPU:- 4} && \
707- sudo cmake --build cmake-out --target install -- -j ${NCPU:- 4} && \
708- sudo ldconfig
709- ```
710-
711- #### Compile and install the main project
712-
713- We can now compile, test, and install ` google-cloud-cpp-common ` .
714-
715- ``` bash
716- cd $HOME /project
717- cmake -H. -Bcmake-out
718- cmake --build cmake-out -- -j " ${NCPU:- 4} "
719- cd $HOME /project/cmake-out
720- ctest -LE integration-tests --output-on-failure
721- sudo cmake --build . --target install
722- ```
723-
724-
725586### Debian (10 - Buster)
726587
727588Install the minimal development tools, libcurl, and OpenSSL:
0 commit comments