Skip to content

Commit

Permalink
update installation instructions, review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Aug 19, 2015
1 parent a79a896 commit 5329e4b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
17 changes: 9 additions & 8 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,38 @@ wiki pages:

On Linux (Debian):

Note: you will need to add the Debian 'unstable' distribution to your source
Note: you will need to add the Debian 'unstable' distribution to your sources
file first.

Add the following line to your `/etc/apt/sources.list` file:

deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb http://ftp.us.debian.org/debian unstable main contrib non-free

Install the gRPC library
$ sudo apt-get install libgrpc-dev
Install the gRPC library:

$ [sudo] apt-get install libgrpc-dev

OR

$ git clone https://github.com/grpc/grpc.git
$ cd grpc
$ git submodule update --init
$ make
$ sudo make install
$ [sudo] make install

You don't need anything else than GNU Make, gcc and autotools. Under a Debian
or Ubuntu system, this should boil down to the following packages:

$ apt-get install build-essential autoconf libtool
$ [sudo] apt-get install build-essential autoconf libtool

Building the python wrapper requires the following:

$ apt-get install python-all-dev python-virtualenv
$ [sudo] apt-get install python-all-dev python-virtualenv

If you want to install in a different directory than the default /usr/lib, you can
override it on the command line:

$ make install prefix=/opt
$ [sudo] make install prefix=/opt


*******************************
Expand Down
4 changes: 2 additions & 2 deletions src/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Alpha : Ready for early adopters

**Linux (Debian):**

Add [debian unstable][] (sid) to your `sources.list` file. Example:
Add [Debian unstable][] to your `sources.list` file. Example:

```sh
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | \
Expand Down Expand Up @@ -107,4 +107,4 @@ An object with factory methods for creating credential objects for servers.

[homebrew]:http://brew.sh
[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
[debian unstable]:https://www.debian.org/releases/sid/
[Debian unstable]:https://www.debian.org/releases/sid/
4 changes: 2 additions & 2 deletions src/php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $ sudo php -d detect_unicode=0 go-pear.phar

**Linux (Debian):**

Add [debian unstable][] (sid) to your `sources.list` file. Example:
Add [Debian unstable][] to your `sources.list` file. Example:

```sh
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | \
Expand Down Expand Up @@ -172,4 +172,4 @@ $ ./bin/run_gen_code_test.sh
[homebrew]:http://brew.sh
[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
[Node]:https://github.com/grpc/grpc/tree/master/src/node/examples
[debian unstable]:https://www.debian.org/releases/sid/
[Debian unstable]:https://www.debian.org/releases/sid/
14 changes: 7 additions & 7 deletions src/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ INSTALLATION

**Linux (Debian):**

Add [debian unstable][] (sid) to your `sources.list` file. Example:
Add [Debian unstable][] to your `sources.list` file. Example:

```sh
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | \
Expand All @@ -30,6 +30,11 @@ sudo apt-get update
sudo apt-get install libgrpc-dev
```

Install the gRPC Python module
```sh
sudo pip install grpcio
```

**Mac OS X**

Install [homebrew][]. Run the following command to install gRPC Python.
Expand All @@ -45,11 +50,6 @@ Please read our online documentation for a [Quick Start][] and a [detailed examp
BUILDING FROM SOURCE
---------------------
- Clone this repository
- Build the gRPC core from the root of the
[gRPC Git repository](https://github.com/grpc/grpc)
```
$ make shared_c static_c
```

- Use build_python.sh to build the Python code and install it into a virtual environment
```
Expand Down Expand Up @@ -81,4 +81,4 @@ $ ../../tools/distrib/python/submit.py
[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
[Quick Start]:http://www.grpc.io/docs/tutorials/basic/python.html
[detailed example]:http://www.grpc.io/docs/installation/python.html
[debian unstable]:https://www.debian.org/releases/sid/
[Debian unstable]:https://www.debian.org/releases/sid/
4 changes: 2 additions & 2 deletions src/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ INSTALLATION

**Linux (Debian):**

Add [debian unstable][] (sid) to your `sources.list` file. Example:
Add [Debian unstable][] to your `sources.list` file. Example:

```sh
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" | \
Expand Down Expand Up @@ -93,4 +93,4 @@ Directory structure is the layout for [ruby extensions][]
[ruby extensions]:http://guides.rubygems.org/gems-with-extensions/
[rubydoc]: http://www.rubydoc.info/gems/grpc
[grpc.io]: http://www.grpc.io/docs/installation/ruby.html
[debian unstable]:https://www.debian.org/releases/sid/
[Debian unstable]:https://www.debian.org/releases/sid/

0 comments on commit 5329e4b

Please sign in to comment.