Page 2 of 2

Re: Remote Client Installation

PostPosted: Fri Aug 17, 2018 4:19 pm
by jmoore
Whew. Thanks for letting me know, Etienne. I had gotten to the same point of a passing test in Ubuntu 16.04 but wasn't sure if I was just missing something. My changes are in https://gist.github.com/joshmoore/44143b063ef20e67960381428659de3c.

Have a good weekend.
~Josh

Re: Remote Client Installation

PostPosted: Wed Feb 13, 2019 4:26 pm
by andersla
Did you solve this issue?
I get same error on Ubuntu 18.04. On my Ubuntu 16.04 it works fine!

Re: Remote Client Installation

PostPosted: Wed Feb 13, 2019 4:47 pm
by etienne.dumoulin
We are still using Ubuntu 16.04.

Re: Remote Client Installation

PostPosted: Thu Feb 14, 2019 11:22 am
by mtbc
We are still largely back on Ubuntu 16.04 at OME too I'm afraid. We've started looking at 18.04 - we are going to have to support it, of course - but we have not yet figured a satisfactory installation walkthrough so we'll need a bit more time on this. Any clues that anybody else uncovers in the meantime, do mention here!

Regards,
Mark

Re: Remote Client Installation

PostPosted: Thu Feb 14, 2019 3:48 pm
by jburel
I am curious about the installation of Ice on Ubuntu 18.04, did you install Ice from source?
Ice 3.7 is the only supported version and OMERO currently does not run with Ice 3.7.

Cheers

Jmarie

Re: Remote Client Installation

PostPosted: Fri Feb 15, 2019 3:49 pm
by frankgu968
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

Re: Remote Client Installation

PostPosted: Mon Feb 18, 2019 9:04 am
by jburel
Hi Frank

Thanks for the information
We were about to start working on preparing Ice 3.6 for Ubuntu 18.04.
That is very useful.
Is it okay if we integrate some of your steps in our documentation?

Thanks in advance

Jmarie

Re: Remote Client Installation

PostPosted: Tue Feb 19, 2019 6:02 pm
by frankgu968
By all means! Hit me up if there's anything unclear :)

Frank Gu