0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-03-02 15:46:00 +00:00

37 lines
824 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -e
set -o pipefail
2023-01-10 12:43:31 +02:00
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [ -f "/etc/os-release" ]; then
. /etc/os-release
fi
2023-01-10 12:43:31 +02:00
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
apt install --yes \
bundler \
libpq-dev \
libsqlite3-dev \
nodejs \
protobuf-compiler
elif [ "$ID" = "fedora" ]; then
dnf install -y \
libpq-devel \
libsqlite3x-devel \
nodejs \
npm \
protobuf-compiler \
rubygem-bundler \
rubygem-sqlite3 \
ruby-devel
2023-01-10 12:43:31 +02:00
else
echo "Linux distribution $ID is not supported by this installer."
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install protobuf
else
2023-01-10 12:43:31 +02:00
echo "Your operating system is not supported by this installer."
fi