Skip to content

Commit 5344668

Browse files
committed
update the install section
1 parent d045200 commit 5344668

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

QUICKSTART-C.md

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ Currently, RPC implementation is not available.
66

77
# Install
88

9+
## Install with package manager
910

10-
## Mac OS X with MacPorts
11+
### MacOS with MacPorts
1112

12-
On Mac OS X, you can install MessagePack for C using MacPorts.
13+
On MacOS, you can install MessagePack for C using MacPorts.
1314

1415
```
1516
$ sudo port install msgpack
@@ -23,48 +24,44 @@ You can also install via Homebrew.
2324
$ brew install msgpack
2425
```
2526

26-
## FreeBSD with Ports Collection
27+
### FreeBSD with Ports Collection
2728

28-
On FreeBSD, you can use Ports Collection. Install [net/msgpack|http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/msgpack/] package.
29+
On FreeBSD, you can use Ports Collection. Install [net/msgpack](http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/msgpack/) package.
2930

30-
## Gentoo Linux with Portage
31+
### Gentoo Linux with Portage
3132

32-
On Gentoo Linux, you can use emerge. Install [dev-libs/msgpack|http://gentoo-portage.com/dev-libs/msgpack] package.
33+
On Gentoo Linux, you can use emerge. Install [dev-libs/msgpack](http://gentoo-portage.com/dev-libs/msgpack) package.
3334

34-
## Other UNIX-like platform with ./configure
35+
### Windows with vcpkg
3536

36-
On the other UNIX-like platforms, download source package from [Releases|http://msgpack.org/releases/cpp/] and run `./configure && make && make install`.
37+
There are several package managers available, and vcpkg is typical.
3738

3839
```
39-
$ wget http://msgpack.org/releases/cpp/msgpack-1.3.0.tar.gz
40-
$ tar zxvf msgpack-1.3.0.tar.gz
41-
$ cd msgpack-1.3.0
42-
$ ./configure
43-
$ make
44-
$ sudo make install
40+
$ vcpkg install msgpack:x64-windows
4541
```
42+
## Install with source code
4643

47-
## Windows
44+
### Build with cmake
4845

49-
On Windows, download source package from [here|https://sourceforge.net/projects/msgpack/files/] and extract it.
50-
Then open `msgpack_vc8.vcproj` file and build it using batch build. It builds libraries on `lib/` folder and header files on `include/` folder.
51-
52-
You can build using command line as follows:
46+
You need to install cmake (2.8.12 or higher) first.
5347

5448
```
55-
> vcbuild msgpack_vc2008.vcproj
56-
> dir lib % DLL files are here
57-
> dir include % header files are here
49+
$ git clone https://github.com/msgpack/msgpack-c.git
50+
$ cd msgpack-c
51+
$ mkdir build
52+
$ cd build
53+
$ cmake ..
54+
$ cmake --build .
55+
$ cmake --build . --target install
5856
```
57+
### Build with autotools
5958

60-
## Install from git repository
61-
62-
You need to install gcc (4.1.0 or higher), autotools.
63-
59+
In versions 1.4.2 and below, you can use `autotools` to build on UNIX-like platforms.
6460
```
65-
$ git clone [email protected]:msgpack/msgpack.git
66-
$ cd msgpack/cpp
67-
$ ./bootstrap
61+
$ wget https://github.com/msgpack/msgpack-c/archive/cpp-1.3.0.tar.gz
62+
$ tar zxvf msgpack-1.3.0.tar.gz
63+
$ cd msgpack-1.3.0
64+
$ ./bootstrap # If the 'configure' script already exists, you can omit this step.
6865
$ ./configure
6966
$ make
7067
$ sudo make install

0 commit comments

Comments
 (0)