![Raspberry Pi 3への最新バージョンのMongoDBのインストール[閉じる]](https://linux33.com/image/130667/Raspberry%20Pi%203%E3%81%B8%E3%81%AE%E6%9C%80%E6%96%B0%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%81%AEMongoDB%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%5B%E9%96%89%E3%81%98%E3%82%8B%5D.png)
私のrpi 3に最新バージョンのMongoDBをインストールしたいのですが、apt-get install
バージョンは2.4です。
最新バージョンをインストールする方法は?
答え1
64ビットオペレーティングシステムが必要なので、まずSDカードにコピーしてください。
その後、インストールすることができます(3.2)リポジトリから
apt show mongodb-server 2>/dev/null | grep Version
Version: 1:3.2.11-2+deb9u1
またはインストール(3.6)ソースから。
apt install git python-pip
mkdir /opt/mongodb
cd /opt/mongodb
wget http://prdownloads.sourceforge.net/scons/scons-3.0.1.tar.gz
tar -xzf scons-3.0.1.tar.gz
cd scons-3.0.1
python setup.py install
cd ../
git clone --depth 1 https://github.com/mongodb/mongo.git --branch v3.6
cd mongo
pip install -r buildscripts/requirements.txt
scons-3.0.1 core MONGO_VERSION=3.6.0-$(git rev-parse --short HEAD)
scons-3.0.1 install