forked from mar-file-system/GUFI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
184 lines (130 loc) · 6.66 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
This file is part of GUFI, which is part of MarFS, which is released
under the BSD license.
Copyright (c) 2017, Los Alamos National Security (LANS), LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----
NOTE:
-----
GUFI uses the C-Thread-Pool library. The original version, written by
Johan Hanssen Seferidis, is found at
https://github.com/Pithikos/C-Thread-Pool/blob/master/LICENSE, and is
released under the MIT License. LANS, LLC added functionality to the
original work. The original work, plus LANS, LLC added functionality is
found at https://github.com/jti-lanl/C-Thread-Pool, also under the MIT
License. The MIT License can be found at
https://opensource.org/licenses/MIT.
From Los Alamos National Security, LLC:
LA-CC-15-039
Copyright (c) 2017, Los Alamos National Security, LLC All rights reserved.
Copyright 2017. Los Alamos National Security, LLC. This software was produced
under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
Laboratory (LANL), which is operated by Los Alamos National Security, LLC for
the U.S. Department of Energy. The U.S. Government has rights to use,
reproduce, and distribute this software. NEITHER THE GOVERNMENT NOR LOS
ALAMOS NATIONAL SECURITY, LLC MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR
ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. If software is
modified to produce derivative works, such modified software should be
clearly marked, so as not to confuse it with the version available from
LANL.
THIS SOFTWARE IS PROVIDED BY LOS ALAMOS NATIONAL SECURITY, LLC AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL LOS ALAMOS NATIONAL SECURITY, LLC OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGE.
Installation instructions for the Grand Unified File-Index (GUFI).
Please pardon the dust! We have ongoing efforts that are developing on
Ubuntu Xenial, OpenSUSE 12.3, OSX, CentOS (7.5), and Fedora.
Meanwhile, we have not yet completed our automated regression-testing.
Please let us know, if you have trouble. (Details would
be appreciated; what OS you were using, what you tried, what went wrong.)
Thanks!
(0) Initial set-up and installation
# install build tools
A C compiler with C99 support
[optional] A C++ compiler with C++11 support (g++ 4.9.3, clang++-3.9, or newer)
CMake 3.0+
Make
pkg-config
truncate (with the '-s' option available)
# install packages (see platform-specific caveats, below)
install xattr, sqlite3 (3.13+), pcre (1)
[optional] install mysql
[optional] install fuse (osxfuse on OSX)
[optional] install db2
# packages that are downloaded by CMake:
sqlite3-pcre
C-Thread-Pool
GoogleTest
# clone GUFI
git clone https://github.com/mar-file-system/GUFI.git
cd GUFI
(1) ========== CentOS 7.5
(1.1) submodule googletest build fails for cmake < 3.0
CMake Error at /usr/share/cmake/Modules/WriteBasicConfigVersionFile.cmake:39 (message):
No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakePackageConfigHelpers.cmake:152 (write_basic_config_version_file)
googletest/CMakeLists.txt:96 (write_basic_package_version_file)
See: https://github.com/google/googletest/issues/1786
--- FIX:
[as root]
yum install epel-release
yum remove cmake
yum install cmake3
ln -s /usr/bin/cmake3 /usr/bin/cmake
(1.2) our build of test/googletest fails
-- WORK-AROUND
disable the C++ compiler when calling cmake ('CXX=false cmake')
(1.3) compile fails for sqlite3 3.7.17 (CentOS 7.5), works for sqlite3 3.14.2 (Fedora)
-- FIX:
Upgrade to newer version. There is no newer version available through yum repos, so do this:
download sqlite-autoconf-xxxxx.tar.gz [https://www.sqlite.org/download.html]
tar -xzf sqlite-autoconf-XXXXXXX.tar.gz
cd sqlite-autoconf-xxxxx
./configure --prefix=$SQLITE_INSTALL_PREFIX
make
make install
export PKG_CONFIG_PATH=$SQLITE_INSTALL_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
This will allow the 'pkg-config' commands in the makefile to find this newer version.
If CMake continues to find the old sqlite installtion, delete the previously generated CMake files, such as CMakeCache.txt.
(3) ========== Building and installing with CMake
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<PATH> ..
make
make install
(3.1) Special configurations options
Set the environment variable CXX=false to disable building C++ code
Set the CMake variable CMAKE_BUILD_TYPE=Debug to build with warnings turned on
Set the CMake variable PARAMIKO=ON to download and use paramiko through gufi_client
Set the CMake variable GIT_DL_METHOD=https or ssh in case downloading with one does not work
(4) ========== Building and installing with make
If cmake is not available, the tarball found at
https://github.com/mar-file-system/GUFI/raw/tarball/gufi.tar.gz
can be built by running `make` in the extraction directory.