TablePlus-Linux icon indicating copy to clipboard operation
TablePlus-Linux copied to clipboard

TablePlus doesn't start on Manjaro

Open skatkov opened this issue 4 years ago • 33 comments

  1. Database version (Ex: PostgreSQL 10.0): Pg 13

  2. TablePlus version (the number on the welcome or about screen, Ex: build 81): 0.1.84

  3. Linux distro (Ex: Ubuntu 18.04): Manjaro

  4. The steps to reproduce this issue: Try to start an app

Result

Nothing is shown. Here is an error I've found: tableplus: /usr/lib/libldap_r-2.4.so.2: no version information available (required by tableplus)

skatkov avatar Jul 27 '21 08:07 skatkov

Hi, I'm on Manjaro too, you can download it from the AUR https://aur.archlinux.org/packages/tableplus/ and install it with makepkg -si. It works on my machine.

theonaciri avatar Aug 10 '21 08:08 theonaciri

I've been having the same issue on Arch. After booting my PC I can usually start Tableplus once. However, if I close it and attempt to run a new instance from the app icon it does not open. After attempting to run it I can see processes present (one for each time I tried to start it from the app icon).

$ ps ax | grep tableplus
  80184 ?        SLl    0:00 /usr/local/bin/tableplus
  80378 ?        SLl    0:00 /usr/local/bin/tableplus
  80390 pts/1    S+     0:00 grep --color=auto tableplus

Even if I kill these "zombie" processes (killall -9 tableplus) am still unable to launch the app from the app icon. However, I can run it from the command line (and get the UI) with the same error/warning @theonaciri mentioned.

$ tableplus 
tableplus: /usr/lib/libldap_r-2.4.so.2: no version information available (required by tableplus)

PHLAK avatar Aug 18 '21 18:08 PHLAK

May be related to #116

PHLAK avatar Aug 18 '21 18:08 PHLAK

Same here

gorbak25 avatar Sep 10 '21 16:09 gorbak25

Since the last update, Tableplus doesn't work on Manjaro. This error is the same that @theonaciri and @phlax. 

I've got an update today and it is exactly the same thing.

[olivier@thorielle ~]$ tableplus
tableplus: /usr/lib/libldap_r-2.4.so.2: no version information available (required by tableplus)
Erreur de segmentation (core dumped)
[olivier@thorielle ~]$ pacman  -Qi libldap
Nom                      : libldap
Version                  : 2.4.59-2
Description              : Lightweight Directory Access Protocol (LDAP) client libraries
Architecture             : x86_64
URL                      : https://www.openldap.org/
Licences                 : custom
Groupes                  : --
Fournit                  : --
Dépend de                : libsasl  e2fsprogs
Dépendances opt.         : --
Requis par               : gconf  krb5  lib32-libldap  nfsidmap  postgresql-libs  smbclient  sudo
Optionnel pour           : apr-util  gnupg
Est en conflit avec      : --
Remplace                 : --
Taille installée         : 934,93 KiB
Paqueteur                : Antonio Rojas <[email protected]>
Compilé le               : dim. 18 juil. 2021 22:59:35
Installé le              : ven. 30 juil. 2021 23:07:45
Motif d’installation     : Installé comme dépendance d’un autre paquet
Script d’installation    : Non
Validé par               : Signature
[olivier@thorielle ~]$ pacman -Qi tableplus
Nom                      : tableplus
Version                  : 0.1.176-1
Description              : Modern, native, and friendly GUI tool for relational databases (Alpha)
Architecture             : x86_64
URL                      : https://tableplus.com/
Licences                 : custom
Groupes                  : --
Fournit                  : --
Dépend de                : gtksourceview3  libgee  gnome-keyring
Dépendances opt.         : --
Requis par               : --
Optionnel pour           : --
Est en conflit avec      : --
Remplace                 : --
Taille installée         : 44,34 MiB
Paqueteur                : Unknown Packager
Compilé le               : mer. 06 oct. 2021 15:41:30
Installé le              : mer. 06 oct. 2021 15:41:45
Motif d’installation     : Explicitement installé
Script d’installation    : Non
Validé par               : --

I hope that will help you for resolving this annoying issue. Especially that Tableplus was working really great until now.

NB When the first time, I've got this error, you can see that the libldap version was the same. [olivier@thorielle ~]$ tableplus tableplus: /usr/lib/libldap_r-2.4.so.2: no version information available (required by tableplus) Erreur de segmentation (core dumped)

olielvewen avatar Oct 06 '21 14:10 olielvewen

Hi, the problem is not about libldap, but glib. Tableplus only works with glib < 2.70.

Please refer to this easy solution : https://github.com/TablePlus/TablePlus-Linux/issues/130#issuecomment-939521002

theonaciri avatar Oct 11 '21 13:10 theonaciri

@davincible

Did you manage to run in on Manjaro? After the latest AUR update I'm getting:

tableplus: error while loading shared libraries: libldap-2.5.so.0: cannot open shared object file: No such file or directory

wiktorglowacki avatar Dec 30 '21 19:12 wiktorglowacki

@wiktorglowacki unfortunately not

Davincible avatar Dec 30 '21 20:12 Davincible

@wiktorglowacki  Me too, unfortunately not even with the last update there are few days ago.

olielvewen avatar Dec 30 '21 20:12 olielvewen

I'm on a fresh install of Manjaro, still can't run TablePlus unfortunately.

Error: tableplus: error while loading shared libraries: libldap-2.5.so.0: cannot open shared object file: No such file or directory

skatkov avatar Dec 30 '21 21:12 skatkov

no workaround?

PabloSzx avatar Feb 17 '22 19:02 PabloSzx

Still no workaround?

FilipeAdao96 avatar Mar 12 '22 19:03 FilipeAdao96

@FilipeAdao96 Not at all :/ There was an update today but it did not help.

@huyphams any chance to get that fixed?

wiktorglowacki avatar Mar 13 '22 09:03 wiktorglowacki

Same here, tried it a month ago and now with this new version, but libldap error is still here.

I wish there was flatpak or appimage version to overcome this dependency problem :(

eboye avatar Mar 24 '22 04:03 eboye

The libldap has nothing to do with this error. It is just a warning. Please use the correct repo and you will be able to open the app on Manjaro.

There are 3 repos, I think the one which is built for Ubuntu 20 (or 21) will work on Manjaro.

huyphams avatar Mar 24 '22 04:03 huyphams

Libldap is a PostgreSQL authentication extension and it is a dynamic library. You only need this lib when you connect to a PostgreSQL instance with an LDAP authenticator. TablePlus does not support this anyway but it is a part of the driver so there is no way to exclude it. So it is just a warning and it will not affect the app.

huyphams avatar Mar 24 '22 04:03 huyphams

On Ubuntu 20.04, I don't have that file but the app still working Screen Shot 2022-03-24 at 11 59 33 AM

huyphams avatar Mar 24 '22 05:03 huyphams

@huyphams It would be great if you can point us to the repo that will work on Manjaro. I'm registered user on OSX but I would really love to have TablePlus back working on Manjaro.

wiktorglowacki avatar Mar 24 '22 06:03 wiktorglowacki

I think I found the root cause, there are many other missing libs (due to different loading paths). Let me see if I can bundle those libs into the app or static link them.

huyphams avatar Mar 24 '22 08:03 huyphams

If you know all the deps needed it would be great if you could list them here or somewhere. I've successfully made few appimages in the past using this tool, but since I don't know the exact config I should be making, as it's not open source project, I lack some info.

https://github.com/simoniz0r/deb2appimage

eboye avatar Mar 25 '22 00:03 eboye

I'm having this issue on Gentoo as well. I even specifically installed OpenLDAP 2.4 and still having issues

~ $ ls -l /usr/lib64/ | grep ldap
lrwxrwxrwx   1 root   root         21 Apr 18 18:10 libldap-2.4.so.2 -> libldap-2.4.so.2.11.6
-rwxr-xr-x   1 root   root     326488 Apr 18 18:10 libldap-2.4.so.2.11.6
-rw-r--r--   1 root   root     631318 Apr 18 18:10 libldap.a
-rw-r--r--   1 root   root        971 Apr 18 18:10 libldap.la
lrwxrwxrwx   1 root   root         23 Apr 18 18:10 libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.11.6
-rwxr-xr-x   1 root   root     347544 Apr 18 18:10 libldap_r-2.4.so.2.11.6
-rw-r--r--   1 root   root     676176 Apr 18 18:10 libldap_r.a
-rw-r--r--   1 root   root        985 Apr 18 18:10 libldap_r.la
lrwxrwxrwx   1 root   root         23 Apr 18 18:10 libldap_r.so -> libldap_r-2.4.so.2.11.6
lrwxrwxrwx   1 root   root         21 Apr 18 18:10 libldap.so -> libldap-2.4.so.2.11.6
tableplus: /usr/lib64/libldap_r-2.4.so.2: no version information available (required by tableplus)

hparadiz avatar Apr 19 '22 19:04 hparadiz

Hi, all the problem has been fixed by using this script from the latest comment in https://aur.archlinux.org/packages/tableplus

git clone https://aur.archlinux.org/tableplus.git
cd tableplus
wget https://gist.githubusercontent.com/hpsu/49f2162bd9ded9c97e0c201065345189/raw/8ff143c6432c485824196a36c5a329afcbd52089/tableplus-dependencies.patch
git apply tableplus-dependencies.patch
makepkg -si

blue7wings avatar May 09 '22 00:05 blue7wings

@blue7wings running commands as you provided doesn't fix it for me on Manjaro

Davincible avatar May 09 '22 10:05 Davincible

@Davincible I've managed to get it working with @blue7wings recommendations, just required a restart :)

skatkov avatar May 10 '22 08:05 skatkov

@skatkov I still get tableplus: error while loading shared libraries: libldap-2.5.so.0: cannot open shared object file: No such file or directory

EDIT: ohhhh wait after just looking at the patch file I realized the desktop file exec command got edited, I was starting it up from CLI. .desktop file works :)

Davincible avatar May 10 '22 09:05 Davincible

Looks like the patch provided by @blue7wings works well (Manjaro) (only through Desktop icon as mentioned by @Davincible )

image

alariva avatar May 11 '22 18:05 alariva

@alariva @Davincible Works well from CLI with command:

/usr/bin/env LD_PRELOAD=/opt/tableplus/lib/libldap-2.5.so.0.1.1:/opt/tableplus/lib/liblber-2.5.so.0.1.1:/opt/tableplus/lib/libsasl2.so.2.0.25:/opt/tableplus/lib/libgio-2.0.so.0.6800.4 /usr/local/bin/tableplus

wiktorglowacki avatar May 11 '22 18:05 wiktorglowacki

@wiktorglowacki you'r right thanks for the hint!

image

alariva avatar May 11 '22 18:05 alariva

@blue7wings thanks. It works for me

MyFRA avatar Jun 03 '22 02:06 MyFRA

@blue7wings works for me. Thanks

umegbewe avatar Jun 08 '22 16:06 umegbewe