libreadline.so.5: cannot open shared object file: No such file or directory
See original GitHub issueSystem information:
- Operating system (distribution) and version : Ubuntu 20.04.1 LTS
- DBeaver version : 7.2.2.202010041557
Connection specification:
- Database name and version : MySQL 8
- Driver name : MySQL
- Do you use tunnels or proxies (SSH, SOCKS, etc)? : No
Describe the problem you’re observing:
While trying to Restore database (import) new database .sql file (from production database) into my local database, I received this error:-
/snap/dbeaver-ce/80/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Same thing happen if I tried to use Execute script (Execute script with native client).
Steps to reproduce, if exist:
- Right click on database, Go to Tools, then click Restore database.
- Database import window shows up, input database .sql file.
- Click Start button.
- Task error window shows up with errors.
Include any warning/errors/backtraces from the logs
- Error logs in Database import window:-
Task 'MySQL restore' started at Thu Oct 15 12:25:22 MYT 2020
/snap/dbeaver-ce/80/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Task 'MySQL restore' finished at Thu Oct 15 12:25:22 MYT 2020
2020-10-15 12:25:22.553 - IO error: Process failed (exit code = 127). See error log.
2020-10-15 12:25:22.554 - java.io.IOException: Process failed (exit code = 127). See error log.
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.validateErrorCode(AbstractNativeToolHandler.java:208)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.executeProcess(AbstractNativeToolHandler.java:188)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.doExecute(AbstractNativeToolHandler.java:248)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler.lambda$0(AbstractNativeToolHandler.java:54)
at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
- Error log (Broken pipe):-
a) Exception stack trace:-
java.io.IOException: Broken pipe
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
at org.jkiss.dbeaver.tasks.nativetool.AbstractNativeToolHandler$BinaryFileTransformerJob.run(AbstractNativeToolHandler.java:426)
b) Session data:-
eclipse.buildId=unknown
java.version=1.8.0_265
java.vendor=Private Build
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
python - Error while loading shared libraries: libreadline.so.5
8). to fix this, first you should check the library directory ( /usr/lib ) if a version version of the file is exist...
Read more >error while loading shared libraries: libreadline.so.7: cannot ...
so.7: cannot open shared object file: No such file or directory Error. Exiting. The install_dependencies.sh is:
Read more >libreadline.so.5: No such file or directory - Super User
error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory.
Read more >[SOLVED]GDB Server for Linux - libreadline.so.5 error
JLinkExe: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory.
Read more >Error while loading shared libraries: libreadline.so.5:-django
The required file is not in directory. usually this happened because the update which replaced the certain version of the file and with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Still an issue with pop_OS and Version 21.1.0.202105300349
This was the problem with snap confinement. The latest package 22.0.5 should have resolved the issue