TablePlus / TablePlus-Linux

TablePlus Linux issue tracker
https://tableplus.com
289 stars 30 forks source link

Tableplus is not launching on Ubuntu 22.04 #161

Open SuhaibMaraqa opened 1 year ago

SuhaibMaraqa commented 1 year ago

Please answer the questions below, it helps us to track the issue.

  1. Database version (Ex: PostgreSQL 10.0):

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

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

  4. The steps to reproduce this issue:

Noted: If the bug is related to data, please attach an example SQL data.

First Tableplus wasn't able to be installed because of the "zlib1g" dependency, I downgraded it with this command: sudo apt install zlib1g=1:1.2.11.dfsg-2ubuntu9

then installed Tableplus, but it's not launching.

SuhaibMaraqa commented 1 year ago

How to solve this problem please?

huyphams commented 1 year ago

I could not reproduce the issue as I just install a fresh Ubuntu 22 and install TablePlus without any issue. If you have the step to reproduce the issue, please let me know.

SuhaibMaraqa commented 1 year ago

first Tableplus was not able to install due to dependency issue, I downgraded "zlib1g" dependency with: sudo apt install zlib1g=1:1.2.11.dfsg-2ubuntu9

then it got installed but weren't able to launch to another dependency issue: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory

I installed the required file : libldap-2.4-2_2.4.49+dfsg-2ubuntu1.9_amd64.deb

and now it's launching but show:

Segmentation fault (core dumped)

huyphams commented 1 year ago

How do you get the new zlib as I downloaded and install Ubuntu from the website and I installed TablePlus just fine? Can you give me more info how to reproduce the issue please.

SuhaibMaraqa commented 1 year ago

I just installed Ubuntu from the website and followed the steps of downloading tableplus, when doing

sudo apt install tableplus

I get this error

The following packages have unmet dependencies: zlib1g-dev : Depends: zlib1g (= 1:1.2.11.dfsg-2ubuntu9) but 1:1.2.11.dfsg-2ubuntu9.1 is to be installed E: Unable to correct problems, you have held broken packages.

So I installed an earlier version with:

sudo apt install zlib1g=1:1.2.11.dfsg-2ubuntu9

huyphams commented 1 year ago

Did you run sudo apt update and sudo apt upgrade before installing TablePlus?

SuhaibMaraqa commented 1 year ago

Yes

mattsbennett commented 1 year ago

I'm having this problem on 22.04 as well. Here's the output I get after following all the installation steps:

mattsbennett@pop-os:~$ tableplus
tableplus: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory

Looks like 22.04 doesn't have this lib:

mattsbennett@pop-os:~$ ls /usr/lib/x86_64-linux-gnu/ | grep ldap
libldap-2.5.so.0
libldap-2.5.so.0.1.8
libsmbldap.so.2
libsmbldap.so.2.1.0
macdabby commented 1 year ago

@mattsbennett this is the dependency issue. you can resolve this for now with sudo apt install libldap-2.4-2 (there may be a different package name on your system)

macdabby commented 1 year ago

I am also having the segmentation fault error, but it does not say core dump. i am using debian testing (bookworm). I thought it might be wayland, so i tried switching to x11 and i get this:

$ Failed to load module "xapp-gtk3-module"
Segmentation fault

in either environment, i see the main window show momentarily before it goes away. is there any way to launch this with verbose logging to see if there is any other information about what's happening?

renteriadev commented 1 year ago

Hi! I have the same issue... TablePlus does not want to launch.. Ubuntu 22.04 I followed the installation and nothing. And also I did update and upgrade and the same thing. For example: I can see the icon (pressing window) click on it and nothing happens

J87NL commented 1 year ago

Same for me unfortunately, I installed TablePlus on Ubuntu 20.04 and the program starts and closes after a few seconds with error 'Segmentation fault' (and nothing else). If anyone has a solution for this I would really appreciate it!

dougleon16 commented 1 year ago

This works for me, i'm using elementary os | ubuntu 20.04 LTS and my issue was (tableplus: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory)

### the solution for me was

  1. in you terminal put this command nano /etc/apt/sources.list // for check your repositories
  2. check if you have the correct repository with your ubuntu actual version in my case its ubuntu 20.04LTS Captura realizada el 2022-12-20 17 53 17 as you can see i have this repository https://deb.tableplus.com/debian/20 with the number 20 that means it works for my ubuntu version (20.04 LTS)
  3. if you have another ubuntu version check the official page and follow instruccion regarding your ubuntu version

pd: if you have more than one repository on this terminal tab nano /etc/apt/sources.list just delete all the respositories and uninstall table plus then install again with you correct repository depending on your ubuntu version

if you have any question or trouble let me now!

renteriadev commented 1 year ago

This works for me, i'm using elementary os | ubuntu 20.04 LTS and my issue was (tableplus: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory)

### the solution for me was

  1. in you terminal put this command nano /etc/apt/sources.list // for check your repositories
  2. check if you have the correct repository with your ubuntu actual version in my case its ubuntu 20.04LTS Captura realizada el 2022-12-20 17 53 17 as you can see i have this repository https://deb.tableplus.com/debian/20 with the number 20 that means it works for my ubuntu version (20.04 LTS)
  3. if you have another ubuntu version check the official page and follow instruccion regarding your ubuntu version

pd: if you have more than one repository on this terminal tab nano /etc/apt/sources.list just delete all the respositories and uninstall table plus then install again with you correct repository depending on your ubuntu version

if you have any question or trouble let me now!

Hey!

i did what you mentioned here and nothing happened.. i do not know what else I could do with this.

macdabby commented 1 year ago

@renteriadev is there an error message? Try running it from the command line.

renteriadev commented 1 year ago

@renteriadev is there an error message? Try running it from the command line.

Nop.. for example: i removed table plus from source.list (i had version. 20 and 22) And when I installed it and execute, nothing happened.. the program never ran so i dont know what is the error itself. Im gonna do it again and see if I missed any message error and I will text you back. Thanks!

dougleon16 commented 1 year ago

@renteriadev is there an error message? Try running it from the command line.

Nop.. for example: i removed table plus from source.list (i had version. 20 and 22) And when I installed it and execute, nothing happened.. the program never ran so i dont know what is the error itself. Im gonna do it again and see if I missed any message error and I will text you back. Thanks!

what ubuntu version do you have ?

FrankDev-327 commented 1 year ago

@renteriadev is there an error message? Try running it from the command line.

Nop.. for example: i removed table plus from source.list (i had version. 20 and 22) And when I installed it and execute, nothing happened.. the program never ran so i dont know what is the error itself. Im gonna do it again and see if I missed any message error and I will text you back. Thanks!

what ubuntu version do you have ?

I have last one 22. Not sure if I need to update it or what. I really don't know

dougleon16 commented 1 year ago

@renteriadev is there an error message? Try running it from the command line.

Nop.. for example: i removed table plus from source.list (i had version. 20 and 22) And when I installed it and execute, nothing happened.. the program never ran so i dont know what is the error itself. Im gonna do it again and see if I missed any message error and I will text you back. Thanks!

what ubuntu version do you have ?

I have last one 22. Not sure if I need to update it or what. I really don't know

put this command nano etc/apt/sources.list and take a screenshot, just to make sure

nathansalter commented 1 year ago

Also having the same error since upgrading to 22.04:

$ tableplus 
tableplus: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory

Looks like the version auto-installed in 22.04 is 2.5:

$ sudo apt-cache search libldap
libldap-2.5-0 - OpenLDAP libraries
...

Could install version 2.4 manually, but concerned that this might cause other problems in the system.

macdabby commented 1 year ago

Since it's just a lib, i don't think there's any risk. It wont be loaded unless another app loads it. It doesn't replace a different version since it's just missing. I've had it installed for several months without issues.

Could install version 2.4 manually, but concerned that this might cause other problems in the system.

huyphams commented 1 year ago

TablePlus only supports x86, so anyone with Arm64 will not be able to run it. I'm playing around with app image. Hopefully I can build a arm and x86 version.

macdabby commented 1 year ago

That's good to know, but I am on 64bit intel. That should be x86 compatible, right? Also if it was not compatible I believe the OS would report a code error and we wouldn't see the connection window for a split second.

nathansalter commented 1 year ago

I fixed this issue for me by downloading LDAP 2.4 manually from this link: https://packages.ubuntu.com/focal/libldap-2.4-2 then using dpkg -i <download> to manually install. Oddly enough this didn't fix it, but then re-installing tableplus did resolve the issue.

felixRamowda commented 1 year ago

I get this error in the console:

tableplus: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by tableplus) tableplus: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.34' not found (required by tableplus) tableplus: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by tableplus) tableplus: /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so.0: no version information available (required by tableplus)

my version is `GLIBC_2.31'.

benounnas commented 9 months ago

This works for me, i'm using elementary os | ubuntu 20.04 LTS and my issue was (tableplus: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory)

### the solution for me was

1. in you terminal put this command
   ` nano /etc/apt/sources.list // for check your repositories`

2. check if you have the correct repository with your ubuntu actual version in my case its ubuntu 20.04LTS
   ![Captura realizada el 2022-12-20 17 53 17](https://user-images.githubusercontent.com/44105136/208781908-48aa8f64-328b-4fe9-90e5-e96c9f44bcdd.png)
   as you can see i have this repository  `  https://deb.tableplus.com/debian/20`   with the number 20 that means it works for my ubuntu version (20.04 LTS)

3. if you have another ubuntu version check the [official page](https://tableplus.com/blog/2019/10/tableplus-linux-installation.html) and follow instruccion regarding your ubuntu version

pd: if you have more than one repository on this terminal tab nano /etc/apt/sources.list just delete all the respositories and uninstall table plus then install again with you correct repository depending on your ubuntu version

if you have any question or trouble let me now!

it worked thanks

GeomaticaNet commented 6 months ago

any help?, im in ubuntu 22.04 and i have dependencies issues:

sudo apt install tableplus
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 libcairo2-dev : Depende: libfontconfig1-dev (>= 2.2.95)
                 Depende: libfreetype6-dev (>= 2.1.10)
 libgtk-3-dev : Depende: libfontconfig1-dev
 libharfbuzz-dev : Depende: libfreetype6-dev
 libpango1.0-dev : Depende: libfontconfig-dev (>= 2.13.0) pero no es instalable
                   Depende: libfreetype-dev (>= 2.1.7) pero no es instalable
 libpcre2-dev : Depende: libpcre2-8-0 (= 10.39-3ubuntu0.1) pero 10.40-1+ubuntu20.04.1+deb.sury.org+1 va a ser instalado
                Depende: libpcre2-16-0 (= 10.39-3ubuntu0.1) pero 10.40-1+ubuntu20.04.1+deb.sury.org+1 va a ser instalado
                Depende: libpcre2-32-0 (= 10.39-3ubuntu0.1) pero 10.40-1+ubuntu20.04.1+deb.sury.org+1 va a ser instalado
 libpcre3-dev : Depende: libpcre3 (= 2:8.39-13ubuntu0.22.04.1) pero 2:8.44-2+ubuntu20.04.1+deb.sury.org+1 va a ser instalado
 libxft-dev : Depende: libfontconfig1-dev
              Depende: libfreetype6-dev
 libxml2-dev : Depende: libxml2 (= 2.9.13+dfsg-1ubuntu0.3) pero 2.9.14+dfsg-0+ubuntu20.04.1+deb.sury.org+1 va a ser instalado
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
john-humanpixel commented 2 months ago

stress