LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2019, 05:38 AM   #1
droid.c3p0
Member
 
Registered: Sep 2016
Posts: 40

Rep: Reputation: Disabled
How to install a library


Code:
apt-file search libmysqlclient.so
libmariadb-dev-compat: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
libmariadbclient-dev-compat: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
How to install the library libmysqlclient.so
or the library libmysqlclient.so.18
 
Old 10-08-2019, 05:55 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,071

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
Quote:
Originally Posted by droid.c3p0 View Post
Code:
apt-file search libmysqlclient.so
libmariadb-dev-compat: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
libmariadbclient-dev-compat: /usr/lib/x86_64-linux-gnu/libmysqlclient.so
How to install the library libmysqlclient.so
or the library libmysqlclient.so.18
It would help if you actually told us which Linux distribution you're using, and what you are trying to do that involves this library needing to be installed. Since you post the apt-file command, it suggests you're using Debian based packages (.deb packages), and therefore likely a Debian based distribution.

The "general answer" to your question would be to find out which package contains this library, and install it (the mysql package perhaps?). One of those files is a symlink pointing to the same library rather than two different libraries (probably libmysqlclient.so is the symlink in this case).
 
Old 10-08-2019, 06:12 AM   #3
droid.c3p0
Member
 
Registered: Sep 2016
Posts: 40

Original Poster
Rep: Reputation: Disabled
I am using MX Linux - 18.
I am trying to write a simple programm with Code Typhon IDE, using a component of type TMySQL56Connection. When I try to connect to MySQL database on the hosting, I have message from Code Typhon Compiler: 'Can not load default MySQL library ("libmysqlclient.so.18" or "libmysqlclient.so"). Check your installation.'
I think, that I need to install above library(es).
 
Old 10-08-2019, 06:36 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,071

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
While not an MX Linux user myself, from my searches, it seems you may need to enable the "MX Community Main" and/or "Test Repo". I did find a package for MX Linux in the "Test Repo" here (libmysqlclient18_5.6.30-1mx150+1_amd64.deb) - I haven't looked in the other online repo listed here though.

Try enabling the appropriate repo in one of your sources.list files, then you can use your package manager to install it.
 
1 members found this post helpful.
Old 10-08-2019, 07:31 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,267

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
Install libmysqlclient.so.18 : # apt install libmysqlclient18
https://packages.debian.org/jessie/libmysqlclient18
.... if it's still available for MX.
I.e. libmysqlclient18 is the old mysql-5.5.

And libmysqlclient.so : # apt install libmysqlclient-dev
Warning : You will probably get a later version.

Alternatively you can download the old packages and rebuild to
compat-libmysqlclient18_5.5.62_amd64.deb, compat-libmysqlclient-dev_5.5.62_amd64.deb

-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm trying to install a library required by nvidia TensorRt. The name of the library is python3-libnvinfer beefshepherd Linux - Software 9 08-22-2019 01:43 AM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
adding a bulit in library to my library lg3 Linux - Software 1 10-17-2004 08:19 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration