From 649db04a3d12bb17fc6d5e5abe4e5e204fc8d354 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Thu, 8 Apr 2021 07:17:54 -0700 Subject: [PATCH] Updated Development Environment Setup: Debian (markdown) --- Development-Environment-Setup:-Debian.md | 26 ++---------------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/Development-Environment-Setup:-Debian.md b/Development-Environment-Setup:-Debian.md index e990f89..c7e1258 100644 --- a/Development-Environment-Setup:-Debian.md +++ b/Development-Environment-Setup:-Debian.md @@ -1,25 +1,3 @@ -## Debian 10 Buster +## Debian setup -At the time of writing, the OFN runs on Ruby v2.1.9 which is very old depends on an old version of openssl. That old version of openssl is not available on newer Debian and Ubuntu versions. Here is how you get around it: - -```sh -# Install an old version of libssl. You may need to remove your current libssl first. -sudo apt-add-repository "deb http://security.ubuntu.com/ubuntu bionic-security main" -sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 -sudo apt update -sudo apt install libssl1.0-dev - -# Install Ruby. -git clone https://github.com/rbenv/rbenv.git ~/.rbenv --depth=1 -git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build --depth 1 -(cd ~/.rbenv && src/configure && make -C src) -echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc -echo 'eval "$(rbenv init -)"' >> ~/.bashrc -. ~/.bashrc -rbenv install 2.1.9 - -# Install gems. -cd openfoodnetwork -./script/install-bundler -bundle -``` \ No newline at end of file +OFN now runs on Ruby 2.5.8, so there's no longer any OpenSSL workaround needed (specific to Debian, that is). \ No newline at end of file