Issue Details (XML | Word | Printable)

Key: CORE-5445
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Gabor Boros
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Cannot install on Debian Stretch/Testing because version of LibTomMath library

Created: 10/Jan/17 12:07 PM   Updated: Yesterday 02:05 PM
Component/s: Installation
Affects Version/s: 3.0.2
Fix Version/s: 4.0 Beta 2

Environment: Debian Stretch/Testing 64bit

QA Status: Cannot be tested


 Description  « Hide
If try to install the actual snapshot got the next message:

"Please install required library 'libtommath' before firebird, after it repeat firebird install"

After installed libtommath1 package and try again got this:

"/opt/firebird/bin/gsec: error while loading shared libraries: libtommath.so.0: cannot open shared object file: No such file or directory
Fatal error running 'systemctl --quiet start firebird-superserver.service' - exiting"

The /usr/lib/x86_64-linux-gnu directory contain a libtommath.so.1.0.0
file and a libtommath.so.1 symlink (to libtommath.so.1.0.0) . After
create a symlink with name libtommath.so.0 to libtommath.so.1.0.0 can
install the snapshot build successfully.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
jeff stern added a comment - 17/Jul/17 03:38 PM - edited
I can confirm Gabor's January report.

On Debian Stretch with the Firebird-3.0.2.32703-0.amd64 tarball:

I start out with libtommath1 package missing (as is typical for Debian Stretch base install).

So, running the firebird install yields the same error Gabor reports:

===============================================================
$ sudo ./install.sh

Firebird 3.0.2.32703-0.amd64 Installation

Press Enter to start installation or ^C to abort
Please install required library 'libtommath' before firebird, after it repeat firebird install
$ _
===============================================================

So I install libtommath1 package (and there is no libtommath0 available in Debian Stretch repo):

===============================================================
$ sudo apt-get -y install libtommath1
===============================================================

and re-attempt FB installation:

===============================================================
$ sudo ./install.sh

Firebird 3.0.2.32703-0.amd64 Installation

Press Enter to start installation or ^C to abort
Extracting install data
Please enter new password for SYSDBA user: <password>
/opt/firebird/bin/gsec: error while loading shared libraries: libtommath.so.0: cannot open shared object file: No such file or directory

Fatal error running 'systemctl --quiet start firebird-superserver.service' - exiting
$ _
===============================================================

Same error Gabor gets.

And, also like Gabor, if I just make a symlink hack:

===============================================================
$ sudo ln -sf /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0
===============================================================

.. now the Installation completes successfully.

Luis Forra added a comment - 30/Nov/18 10:10 PM
Firebird-3.0.4.33054-0.amd64 have the same problem with Ubuntu 18.04.1 LTS
$ sudo ln -sf /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0 works

Alexander Peshkov added a comment - 03/Dec/18 09:11 AM
To be precise that's not FB problem - soname of that library was changed without any visible changes in API. Our primary goal always was to keep backward compatibility with OSes that existed when firebird was released in order to avoid problems when people perform point-release upgrade with existing OS. We will follow tommath rules and build FB4 with .1 soname, but for FB3 I prefer to keep backward compatibility.

Kepler Mihály added a comment - 25/Jun/19 02:05 PM
create symlink
/usr/lib/x86_64-linux-gnu/libtommath.so.0 -> /usr/lib/x86_64-linux-gnu/libtommath.so.1.0.0