7 Star 37 Fork 8

Gitee 极速下载/emqx-neuron

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/emqx/neuron
克隆/下载
install_dependencies.sh 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
moruoxian 提交于 2025-02-27 17:02 +08:00 . add install_dependencies.sh
#!/bin/bash
# Install openssl
echo "Installing openssl..."
sudo apt-get install libssl-dev openssl -y
# Install zlog
echo "Installing zlog..."
git clone -b 1.2.15 https://github.com/HardySimpson/zlog.git
cd zlog
make && sudo make install
cd ..
# Install jansson
echo "Installing jansson..."
git clone https://github.com/neugates/jansson.git
cd jansson && mkdir build && cd build
cmake -DJANSSON_BUILD_DOCS=OFF -DJANSSON_EXAMPLES=OFF .. && make && sudo make install
cd ../..
# Install mbedtls
echo "Installing mbedtls..."
git clone -b v2.16.12 https://github.com/Mbed-TLS/mbedtls.git
cd mbedtls && mkdir build && cd build
cmake -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DENABLE_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. && make && sudo make install
cd ../..
# Install NanoSDK
echo "Installing NanoSDK..."
git clone -b neuron https://github.com/neugates/NanoSDK.git
cd NanoSDK && mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=OFF -DNNG_TESTS=OFF -DNNG_ENABLE_SQLITE=ON -DNNG_ENABLE_TLS=ON .. && make && sudo make install
cd ../..
# Install jwt
echo "Installing jwt..."
git clone -b v1.13.1 https://github.com/benmcollins/libjwt.git
cd libjwt && mkdir build && cd build
cmake -DENABLE_PIC=ON -DBUILD_SHARED_LIBS=OFF .. && make && sudo make install
cd ../..
# Install googletest
echo "Installing googletest..."
git clone -b release-1.11.0 https://github.com/google/googletest.git
cd googletest && mkdir build && cd build
cmake .. && make && sudo make install
cd ../..
# Install sqlite
echo "Installing sqlite..."
curl -o sqlite3.tar.gz https://www.sqlite.org/2022/sqlite-autoconf-3390000.tar.gz
mkdir sqlite3
tar xzf sqlite3.tar.gz --strip-components=1 -C sqlite3
cd sqlite3
./configure CFLAGS=-fPIC && make && sudo make install
cd ..
# Install protobuf
echo "Installing protobuf..."
wget --no-check-certificate --content-disposition https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protobuf-cpp-3.20.1.tar.gz
tar -xzvf protobuf-cpp-3.20.1.tar.gz
cd protobuf-3.20.1
./configure --enable-shared=no CFLAGS=-fPIC CXXFLAGS=-fPIC
make && sudo make install
cd ..
# Install protobuf-c
echo "Installing protobuf-c..."
git clone -b v1.4.0 https://github.com/protobuf-c/protobuf-c.git
cd protobuf-c
./autogen.sh
./configure --disable-protoc --enable-shared=no CFLAGS=-fPIC CXXFLAGS=-fPIC
make && sudo make install
cd ..
# Install libxml2
echo "Installing libxml2..."
git clone -b v2.9.14 https://github.com/GNOME/libxml2.git
cd libxml2
./autogen.sh
./configure --enable-shared=no CFLAGS=-fPIC CXXFLAGS=-fPIC
make && sudo make install
cd ..
echo "All dependencies installed successfully."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/emqx-neuron.git
git@gitee.com:mirrors/emqx-neuron.git
mirrors
emqx-neuron
emqx-neuron
main

搜索帮助