Skip to content

Commit 824814b

Browse files
glbrnttMrMage
authored andcommitted
Update Linux build documentation (#346)
1 parent c3a03f1 commit 824814b

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

LINUX.md

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,20 @@ Start a docker instance with the following command:
2020
# install download tools
2121
apt-get install -y git wget
2222
# install a few useful utilities
23-
apt-get install -y vim sudo
24-
# install grpc build dependencies
25-
apt-get install -y build-essential autoconf libtool
23+
apt-get install -y vim sudo unzip
2624
# install swift dependencies
2725
apt-get install -y clang libicu-dev libedit-dev python-dev libxml2-dev
2826
# install networking dependencies
29-
apt-get install -y libcurl4-openssl-dev
27+
apt-get install -y libcurl4-openssl-dev libssl-dev libnghttp2-dev
3028

3129
## Install Swift
3230

3331
# go to /root
34-
cd
32+
cd /root
3533
# download and unpack swift
36-
wget https://swift.org/builds/swift-3.0.2-release/ubuntu1604/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu16.04.tar.gz
37-
tar xzf swift-3.0.2-RELEASE-ubuntu16.04.tar.gz
38-
ln -s swift-3.0.2-RELEASE-ubuntu16.04 swift
34+
wget https://swift.org/builds/swift-4.2.1-release/ubuntu1604/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu16.04.tar.gz
35+
tar xzf swift-4.2.1-RELEASE-ubuntu16.04.tar.gz
36+
ln -s swift-4.2.1-RELEASE-ubuntu16.04 swift
3937

4038
## Add Swift to your path
4139

@@ -50,20 +48,11 @@ Start a docker instance with the following command:
5048
git config --global user.email <your email address>
5149
git config --global user.name "<your name>"
5250

53-
## Fetch and build grpc
51+
## Get and build Swift gRPC
5452

55-
git clone https://github.com/grpc/grpc-swift
56-
cd grpc-swift/third_party
57-
git clone https://github.com/grpc/grpc.git
58-
cd grpc
59-
git submodule update --init
60-
make
61-
make install
62-
63-
## Build the Echo sample
64-
65-
cd
66-
cd grpc-swift/Examples/Echo/PackageManager
53+
cd /root
54+
git clone https://github.com/grpc/grpc-swift.git
55+
cd grpc-swift
6756
make
6857

6958
## Run the test client and server
@@ -78,11 +67,11 @@ Start a docker instance with the following command:
7867

7968
## To test the plugin
8069

81-
# build and install protoc
82-
cd
83-
cd grpc-swift/third_party/grpc/third_party/protobuf
84-
make install
70+
# download and install protoc
71+
cd /root
72+
wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
73+
unzip protoc-3.5.1-linux-x86_64.zip -d /usr
74+
8575
# build and test the plugin
86-
cd
87-
cd grpc-swift/Plugin
88-
make test
76+
cd /root/grpc-swift
77+
make test-plugin

0 commit comments

Comments
 (0)