CBRAIN On Rocky Linux - aces/cbrain GitHub Wiki
These notes were taken during the installation of CBRAIN on Rocky Linux.
Ruby and various pre-requesite (mysql, libsodium...) need to be installed on Portal host (a.k.a: phost) and on Bourreau host (a.k.a: bhost).
dnf install -y perl libffi-devel readline-devel ruby sqlite-devel libsodium libsodium-devel mysql mysql-devel
dnf group install -y "Development Tools"
# Install openssl 1.1.1w
mkdir $HOME/.local
cd /tmp
curl -o openssl-1.1.1w.tar.gz https://openssl.org/source/old/1.1.1/openssl-1.1.1w.tar.gz
tar -xzvf openssl-1.1.1w.tar.gz
cd /tmp/openssl-1.1.1w
./config --prefix=$HOME/.local/openssl-1.1.1w
make
make install_sw; make install_ssldirs
# Fix libaries path and ssl certifcate
cd $HOME/.local/openssl-1.1.1w
ln -s lib lib64
cd lib
ln -s libcrypto.so.1.1 libcrypto.so.10
ln -s libssl.so.1.1 libssl.so.10
cd $HOME/.local/openssl-1.1.1w/ssl
ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem cert.pem
# Export env
export LD_LIBRARY_PATH="$HOME/.local/openssl-1.1.1w/lib"
export PATH="$HOME/.local/openssl-1.1.1w/bin:${PATH}"
gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
echo 'source $HOME/.rvm/scripts/rvm' >> $HOME/.bash_profile
source $HOME/.bash_profile
rvm install 2.7 --with-openssl-dir=$HOME/.local/openssl-1.1.1w
rvm use 2.7.2
rvm install 2.7-head --with-openssl-dir=$HOME/.local/openssl-1.1.1w
rvm use 2.7-head --default
Then, follow the instruction to install CBRAIN itself on BrainPortal and Bourreau, and install the plugins.
To configure the Database, please follow this instruction. Then, follow the instruction to setup the BrainPortal.
For the Bourreau installation please refer to Bourreau Setup.