Merge pull request #123 from tbetbetbe/docs-update-installation-instructions

Updates the node and ruby examples to use the debian packages
pull/3109/head
Tim Emiola 10 years ago
commit 3dc0ba294c
  1. 14
      node/README.md
  2. 6
      node/package.json
  3. 20
      ruby/README.md
  4. 4
      ruby/grpc-demo.gemspec

@ -14,18 +14,22 @@ INSTALL
```sh ```sh
$ git clone https://github.com/grpc/grpc-common.git $ git clone https://github.com/grpc/grpc-common.git
``` ```
- Follow the instructions in [INSTALL](https://github.com/grpc/grpc/blob/master/INSTALL) to install the gRPC C core.
- Download the grpc debian packages from the [latest grpc release](https://github.com/grpc/grpc/releases) and install them.
- Later, it will possible to install them directly using `apt-get install`
```sh
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc_0.5.0_amd64.deb
$ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc-dev_0.5.0_amd64.deb
$ sudo dpkg -i libgrpc_0.5.0_amd64.deb libgrpc-dev_0.5.0_amd64.deb
```
- Install this package's dependencies - Install this package's dependencies
```sh ```sh
$ cd grpc-common/node $ cd grpc-common/node
$ npm install $ npm install
# If grpc is not found, you'll need to install it from the grpc repository
$ git clone https://github.com/grpc/grpc.git
$ npm install path/to/grpc/src/node
``` ```
TRY IT! TRY IT!
------- -------

@ -1,9 +1,9 @@
{ {
"name": "grpc-greeter", "name": "grpc-demo",
"version": "0.1.0", "version": "0.5.0",
"dependencies": { "dependencies": {
"async": "^0.9.0", "async": "^0.9.0",
"grpc": "~0.2.0", "grpc": "~0.5.0",
"minimist": "^1.1.0", "minimist": "^1.1.0",
"underscore": "^1.8.2" "underscore": "^1.8.2"
} }

@ -25,16 +25,20 @@ INSTALL
------- -------
- Clone this repository. - Clone this repository.
- Follow the instructions in [INSTALL](https://github.com/grpc/grpc/blob/master/INSTALL) to install the gRPC C core.
- *Temporary* - Download the grpc debian packages from the [latest grpc release](https://github.com/grpc/grpc/releases) and install them.
- Install the full gRPC distribution from source on your local machine - Later, it will possible to install them directly using `apt-get install`
- Build gRPC Ruby as described in [installing from source](https://github.com/grpc/grpc/blob/master/src/ruby/README.md#installing-from-source) ```sh
- update `path:` in [Gemfile](https://github.com/grpc/grpc-common/blob/master/ruby/Gemfile) to refer to src/ruby within the gRPC directory $ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc_0.5.0_amd64.deb
- N.B: these steps are necessary until the gRPC ruby gem is published $ wget https://github.com/grpc/grpc/releases/download/release-0_5_0/libgrpc-dev_0.5.0_amd64.deb
- Use bundler to install $ sudo dpkg -i libgrpc_0.5.0_amd64.deb libgrpc-dev_0.5.0_amd64.deb
```
- Use bundler to install the example package's dependencies
```sh ```sh
$ # from this directory $ # from this directory
$ gem install bundler && bundle install $ gem install bundler # if you don't already have bundler available
$ bundle install
``` ```
Try it! Try it!

@ -3,7 +3,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'grpc-demo' s.name = 'grpc-demo'
s.version = '0.1.0' s.version = '0.5.0'
s.authors = ['gRPC Authors'] s.authors = ['gRPC Authors']
s.email = 'temiola@google.com' s.email = 'temiola@google.com'
s.homepage = 'https://github.com/grpc/grpc-common' s.homepage = 'https://github.com/grpc/grpc-common'
@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.require_paths = ['lib'] s.require_paths = ['lib']
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.add_dependency 'grpc', '~> 0.0.1' s.add_dependency 'grpc', '~> 0.5.0'
s.add_development_dependency 'bundler', '~> 1.7' s.add_development_dependency 'bundler', '~> 1.7'
end end

Loading…
Cancel
Save