Hi,
I was able to get OMERO.server 5.4.10 working on Ubuntu 18.04 by compiling Ice3.6.4 from source; "working" being defined as able to start up all the components with "bin/omero admin start" with no errors being reported in the logs.
The trick was to build the Berkeley DB v18.1.25 (their current release) before compilation of Ice3.6.4 and install php7.0 (instead of the default php7.2); the default requested version of 5.3.28 could not be compiled. There are a few configuration hiccups that required to be ironed out. The main one is a missing macro that will fail Berkeley DB's compilation. Below is the script that I used to install the dependencies and all:
- Code: Select all
#!/bin/bash
# Make sure you run this as root!
# Install dependencies
apt update
apt install -y dpkg-dev libssl-dev libmcpp-dev libbz2-dev libexpat-dev libdb++-dev libdb-dev openjdk-8-jre-headless openjdk-8-jdk \
liblmdb-dev python-dev ruby ruby-dev software-properties-common mcpp python-pip virtualenv zlib1g-dev libmcpp-dev
add-apt-repository -y ppa:ondrej/php
apt update
apt-get install -y php7.0 . # php7.2 will cause compilation errors on ice
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
apt update
apt install -y nodejs
# Obtain BerekeleyDB and fix OpenSSL usage bug
wget https://fossies.org/linux/misc/db-18.1.25.tar.gz
tar xzvf db-18.1.25.tar.gz
cd db-18.1.25.tar.gz/
sed -i '2896i#if OPENSSL_VERSION_NUMBER < 0x10100000L' src/repmgr/repmgr_net.c
sed -i '2906i#endif' src/repmgr/repmgr_net.c
cd build_unix/
../dist/configure --enable-cxx --enable-java --prefix=/usr
make
make install
# Compile ice 3.6.4
git clone https://github.com/zeroc-ice/ice.git
cd ice/
git checkout v3.6.4
sed -e "s/-Werror//g" -i ./cpp/config/Make.rules.Linux # Suppress -Werror flag (this may have uninteded consequences!!)
make
make install
# Install OMERO dependencies
umask 022 # Make pip installs globally available
pip install tables virtualenv jinja2 pillow numpy
pip install "zeroc-ice>3.5,<3.7"
# FROM THIS POINT ONWARDS, FOLLOW THE INSTRUCTIONS FOR OMERO.SERVER 5.4.10 INSTALLATION STARTING FROM THE POSTGRES SECTION!!
Hope this helps!
Best,
Frank Gu