Update shell format in installation instructions.

pull/7437/head
Nick Presta 5 years ago committed by Adam Cozzette
parent 4059c61f27
commit 75553e9ec8
  1. 15
      src/README.md

@ -40,22 +40,21 @@ You can also get the source by "git clone" our git repository. Make sure you
have also cloned the submodules and generated the configure script (skip this have also cloned the submodules and generated the configure script (skip this
if you are using a release .tar.gz or .zip package): if you are using a release .tar.gz or .zip package):
```shell
git clone https://github.com/protocolbuffers/protobuf.git git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf cd protobuf
git submodule update --init --recursive git submodule update --init --recursive
./autogen.sh ./autogen.sh
```
To build and install the C++ Protocol Buffer runtime and the Protocol To build and install the C++ Protocol Buffer runtime and the Protocol
Buffer compiler (protoc) execute the following: Buffer compiler (protoc) execute the following:
```shell
./configure ./configure
make make
make check make check
sudo make install sudo make install
sudo ldconfig # refresh shared library cache. sudo ldconfig # refresh shared library cache.
```
If "make check" fails, you can still install, but it is likely that If "make check" fails, you can still install, but it is likely that
some features of this library will not work correctly on your system. some features of this library will not work correctly on your system.
Proceed at your own risk. Proceed at your own risk.
@ -123,15 +122,15 @@ of "protobuf" in these examples.
For a Mac system, Unix tools are not available by default. You will first need For a Mac system, Unix tools are not available by default. You will first need
to install Xcode from the Mac AppStore and then run the following command from to install Xcode from the Mac AppStore and then run the following command from
a terminal: a terminal:
```shell
sudo xcode-select --install sudo xcode-select --install
```shell
To install Unix tools, you can install "port" following the instructions at To install Unix tools, you can install "port" following the instructions at
https://www.macports.org . This will reside in /opt/local/bin/port for most https://www.macports.org . This will reside in /opt/local/bin/port for most
Mac installations. Mac installations.
```shell
sudo /opt/local/bin/port install autoconf automake libtool sudo /opt/local/bin/port install autoconf automake libtool
```
Then follow the Unix instructions above. Then follow the Unix instructions above.
**Note for cross-compiling** **Note for cross-compiling**

Loading…
Cancel
Save