You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Unix/Linux we distribute the SDK as source code. The release tarballs
46
54
contain a simple build script that should work on most Unix/Linux systems. The
47
-
build system is currently autotools.
55
+
build system is currently CMake.
56
+
57
+
To install CMake on Ubuntu use apt-get and install the following:
48
58
49
-
To install autotools on Ubuntu use apt-get and install the following:
59
+
$ sudo apt-get install cmake
50
60
51
-
$ sudo apt-get install build-essential
52
-
$ sudo apt-get install autoconf
53
-
$ sudo apt-get install libtool
54
-
55
-
To install autotools on CentOS use yum and install the following:
56
-
$ sudo yum install autoconf
57
-
$ sudo yum install libtool
61
+
To install CMake on CentOS use yum and install the following:
62
+
$ sudo yum install cmake
58
63
59
64
The SDK depends upon several open source libraries, so you'll need to ensure
60
65
that you've installed the development header packages for each of them. For
@@ -69,15 +74,15 @@ On Ubuntu you can install them with apt-get:
69
74
70
75
$ sudo apt-get install libxml2-dev
71
76
$ sudo apt-get install libcurl4-openssl-dev
72
-
$ sudo apt-get install libglib2.0-dev
73
-
77
+
$ sudo apt-get install libglib2.0-dev
78
+
74
79
On CentOS you can install them with yum:
75
80
76
81
$ sudo yum install libxml2-devel
77
82
$ sudo yum install libcurl-devel
78
-
$ sudo yum install glib2-devel
79
-
80
-
For testing you will need the boost unit test library as well.
83
+
$ sudo yum install glib2-devel
84
+
85
+
For testing you will need the boost unit test library as well.
81
86
82
87
On Ubuntu this can be installed with:
83
88
@@ -86,7 +91,7 @@ On Ubuntu this can be installed with:
86
91
On CentOS this can be installed with:
87
92
88
93
$ sudo yum install boost-test
89
-
94
+
90
95
Release Tarball
91
96
---------------
92
97
@@ -96,8 +101,7 @@ terminal window.
96
101
$ cd directory/containing/release/tarball
97
102
$ tar zxf ds3_c_sdk-{version}.tgz
98
103
$ cd ds3_c_sdk-{version}
99
-
$ autoreconf --install
100
-
$ ./configure
104
+
$ cmake .
101
105
$ make
102
106
$ su
103
107
# make install
@@ -113,21 +117,16 @@ The `make install` command installs the following files on your system:
113
117
{prefix}/lib/libds3.so.0.0.0
114
118
{prefix}/include/ds3.h
115
119
116
-
The `./configure` command sets `{prefix}` to `/usr/local` by default. You can
117
-
change this by running `./configure --prefix=/your/desired/prefix` instead of
118
-
`./configure`.
119
-
120
120
GIT Clone
121
121
---------
122
122
123
123
To build the SDK from a git clone you must have a relatively recent version of
124
-
GNU autoutils installed. While the release tarball does contain the build
125
-
scripts that autoutils generates, the git repository does not.
124
+
GNU CMake installed. While the release tarball does contain the build
125
+
scripts that CMake generates, the git repository does not.
126
126
127
-
Assuming you have autotools installed, you can execute `autoreconf --install`
128
-
and then follow the same instructions as the tarball release.
127
+
Assuming you have CMake installed, you can follow the same instructions as the tarball release.
129
128
130
-
Usage
129
+
pkg-config Usage
131
130
-----
132
131
133
132
The SDK provides a pkg-config definition, so you can determine the proper
@@ -149,7 +148,7 @@ To build the sample, use the following commands:
149
148
$ cd sample
150
149
$ make deps # Builds the SDK and installs it into directory/containing/source/tree**/install**
151
150
$ make
152
-
151
+
153
152
To run it, first ensure that DS3_ACCESS_KEY, DS3_SECRET_KEY, DS3_ENDPOINT (and optionally http:proxy) are set in environment variables to match the target device. For the simulator, see [Installation Instructions] (https://developer.spectralogic.com/sim-install/)
154
153
155
154
$ make run-put-bulk # create "books" bucket and put files into it
@@ -231,12 +230,12 @@ The next demonstrates how to create a new bucket:
0 commit comments