Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Debian Stretch/Testing because version of LibTomMath library [CORE5445] #5716

Closed
firebird-issue-importer opened this issue Jan 10, 2017 · 9 comments

Comments

@firebird-issue-importer

Submitted by: Gabor Boros (gaborboros)

Votes: 3

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.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 10, 2017

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 17, 2017

Commented by: jeff stern (jas)

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.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 1, 2018

Commented by: Luis Forra (luisforra)

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 3, 2018

Commented by: @AlexPeshkoff

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.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 6, 2019

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 4, 2019

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Cannot be tested

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 4, 2019

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 25, 2019

Commented by: Kepler Mihály (mkepler)

create symlink
/usr/lib/x86_64-linux-gnu/libtommath.so.0 -> /usr/lib/x86_64-linux-gnu/libtommath.so.1.0.0

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 18, 2019

Commented by: Myles Wakeham (mylesw)

Is there any combination that will work here for Ubuntu 16.04 64 bit? I have libtommath.so.0 installed from the standard Ubuntu repositories, but it appears to have installed in /usr/lib I can symlink to it from /usr/lib64 for this, but FB4 seems to only want to look for the .1 release. These older distros that are still supported still have the .0 versions active.

ldconfig -p | grep libtommath
libtommath.so.0 (libc6,x86-64) => /usr/lib/libtommath.so.0
http://libtommath.so (libc6,x86-64) => /usr/lib/libtommath.so

Interestingly, after attempting to install FB3 with this, it worked perfectly. But FB4 fails consistently.
Clearly this is a backwards compatibility with Ubuntu 16.04, but note that 16.04; is still a supported release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants