Skip to content

Commit

Permalink
Install (#145)
Browse files Browse the repository at this point in the history
* add non-root install

* rm unused file

* add

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* update install

* Update README.md

* Update README.md

* add non-root install

* Update README.md

* Update README.md

* Update README.md

* Update DISCLAIMER-WIP

* Update DISCLAIMER-WIP

* Update LICENSE

* Update LICENSE

* add license

---------

Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2024
1 parent 1b5b5e3 commit 9bdc678
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build --cxxopt='-std=c++17' --copt=-O3 --jobs=40
build --action_env=PYTHON_BIN_PATH="/usr/bin/python3.10"
#build --action_env=PYTHON_BIN_PATH="/usr/bin/python3.10"
#build --action_env=PYTHON_LIB_PATH="/usr/include/python3.10"

1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ header:
- 'licenses'
- '**/*.md'
- 'LICENSE'
- 'DISCLAIMER-WIP'
- 'NOTICE'
- '.*'
- '.**/**'
Expand Down
26 changes: 5 additions & 21 deletions DISCLAIMER-WIP
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,9 @@ For example, releases may have incomplete or un-reviewed licensing conditions.
What follows is a list of known issues the project is currently aware of
(note that this list, by definition, is likely to be incomplete):

1. The source code is distributed under the Apache License, Version 2.0.
However, building ResilientDB requires using some transitive libraries:
* Under BSD-3-Clause License:
glog-0.5.0, leveldb-1.23, gtest-1.13.0, and gflag-2.2.2
If you are planning to incorporate this work into your product/project, please
be aware that you will need to conduct a thorough licensing review to determine
the overall implications of including this work. For the current status of this
project through the Apache Incubator visit:
https://incubator.apache.org/projects/annotator.html

* Under MIT licenses:
eEVM (https://github.com/microsoft/eEVM)

* hereby disclaims copyright to the source code:
protobuf-3.10.0 (https://github.com/protocolbuffers/protobuf),
snappy-1.1.9 (https://github.com/google/snappy),
zlib-1.2.11 (https://github.com/madler/zlib),
pybind-2.11.1 (https://github.com/pybind/pybind11_bazel),
nlohmann_json-3.9.1 (https://github.com/nlohmann/json),
CrowCpp-1.0-5 (https://github.com/CrowCpp/Crow),
Asio-1-26-0 (https://github.com/chriskohlhoff/asio),
Prometheus-cpp-1.0.1 (https://github.com/jupp0r/prometheus-cpp),
Cryptopp-8-7-0 (https://github.com/weidai11/cryptopp)

If you are planning to incorporate this work into your product/project,
please be aware that you will need to conduct a thorough licensing review
to determine the overall implications of including this work.
44 changes: 44 additions & 0 deletions INSTALL/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

# Prerequire
python3.10

pip

```
sudo apt update
sudo apt-get install python3.10-dev -y
sudo apt-get install python3-dev -y
sudo apt-get install python3-pip -y
```

# Install Protobuf
```
cd protobuf
./install_protobuf.sh
```

# Install Bazel
```
cd bazel
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-darwin-amd64
chmod +x bazelisk-darwin-amd64
mkdir -p bin
mv bazelisk-darwin-amd64 bin/bazel
bin/bazel --version
echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
. ~/.bashrc
```
or
```
cd bazel
./install_bazel.sh
echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
. ~/.bashrc
```


test bazel
```
bazel --version
```
27 changes: 27 additions & 0 deletions INSTALL/bazel/install_bazel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

wget wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-linux-amd64
chmod +x bazelisk-linux-amd64
mkdir -p bin
mv bazelisk-linux-amd64 bin/bazel

bin/bazel --version
echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
. ~/.bashrc
20 changes: 20 additions & 0 deletions INSTALL/protobuf/install_protobuf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

pip install protobuf
28 changes: 18 additions & 10 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ Apache-2.0 licenses
The following components are provided under the Apache-2.0 License. See project link for details.
The text of each license is the standard Apache 2.0 license.

* bazelbuild (https://github.com/bazelbuild/)
* rules_boost (https://github.com/nelhage/rules_boost)
* absl (https://github.com/abseil/abseil-cpp)

================================================================
Expand All @@ -225,6 +223,9 @@ The following components are provided under the MIT License. See project link fo
The text of each license is also included in licenses/LICENSE-[project].txt

* eEVM-118a9355d023748318a318bc07fc79063f015a94 (https://github.com/microsoft/eEVM)
* nlohmann_json-3.9.1 (https://github.com/nlohmann/json)
* Prometheus-cpp (https://github.com/jupp0r/prometheus-cpp)


================================================================
BSD-3-Clause licenses
Expand All @@ -237,6 +238,20 @@ The text of each license is also included in licenses/LICENSE-[project].txt.
* leveldb-1.23 (https://github.com/google/leveldb)
* gtest-1.13.0 (https://github.com/google/googletest)
* gflag-2.2.2 (https://github.com/gflags/gflags)
* protobuf-3.10.0 (https://github.com/protocolbuffers/protobuf)
* snappy-1.1.9 (https://github.com/google/snappy)
* pybind-2.11.1 (https://github.com/pybind/pybind11_bazel)
* CrowCpp-1.0-5 (https://github.com/CrowCpp/Crow)


================================================================
Boost Software License 1.0
================================================================
The following components are placed in the Boost Software License.
See project link for details: http://www.boost.org/users/license.html

* Cryptopp-8-7-0 (https://github.com/weidai11/cryptopp)


================================================================
Public Domain
Expand All @@ -245,13 +260,6 @@ The following components are placed in the public domain.
The author hereby disclaims copyright to this source code.
See project link for details.

* protobuf-3.10.0 (https://github.com/protocolbuffers/protobuf)
* snappy-1.1.9 (https://github.com/google/snappy)
* zlib-1.2.11 (https://github.com/madler/zlib)
* pybind-2.11.1 (https://github.com/pybind/pybind11_bazel)
* nlohmann_json-3.9.1 (https://github.com/nlohmann/json)
* CrowCpp-1.0-5 (https://github.com/CrowCpp/Crow)
* Asio-1-26-0 (https://github.com/chriskohlhoff/asio)
* Prometheus-cpp (https://github.com/jupp0r/prometheus-cpp)
* Cryptopp-8-7-0 (https://github.com/weidai11/cryptopp)
@ civetweb-1.15 (https://github.com/civetweb/civetweb)
* civetweb-1.15 (https://github.com/civetweb/civetweb)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Install dependencies:

./INSTALL.sh

For non-root users, see [INSTALL/README.md](https://github.com/apache/incubator-resilientdb/blob/install/INSTALL/README.md)

Run ResilientDB (Providing a Key-Value Service):

Expand Down

0 comments on commit 9bdc678

Please sign in to comment.