Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:12:30+00:00 2026-05-30T11:12:30+00:00

I want to connect to MySQL from SBCL using CLSQL. I loaded CLSQL using

  • 0

I want to connect to MySQL from SBCL using CLSQL. I loaded CLSQL using quicklisp (ql:quickload ‘clsql). However, when calling (clsql:connect ‘(…) :database-type :mysql), it said:

Couldn’t load foreign libraries “libmysqlclient”, “libmysql”. (searched CLSQL-SYS:FOREIGN-LIBRARY-SEARCH-PATHS).

I’m on CentOS, and basically what I want to do is

  1. Install mysql client development headers with yum, so UFFI can find it (which I failed to do)
  2. after installing, be able to connect to local MySQL server (I think after 1. is done, it could be working automatically).

I’m currently using:

  • CentOS 5.7 Final (32 bit)
  • SBCL 1.0.55
  • Quicklisp beta
  • yum repositories: base, epel, extras, updates

I didn’t just ask about how to install MySQL development headers on CentOS, because that would solve only part of my problem, I would still need to know what’s missing from my machine. I also didn’t try to build libmysqlclient/libmysql from source, because I don’t know whether clsql would be able then to find it or not. I think not.

I’m really sorry if my question somehow misses the point, but extensive googling didn’t yield any results. If anyone told me they couldn’t install mysql client development headers on CentOS, I would laugh at them and tell them to use yum search, but I couldn’t find it neither with yum neither online.

I know the solution for ubuntu (and debian), because there is a cl-sql package and I can easily find mysql headers there too, but I need it on CentOS.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:12:31+00:00Added an answer on May 30, 2026 at 11:12 am

    Somehow, when you try something long enough, it will get done 😉

    Here’s what I did if anyone needs an answer and stumbles upon this question:

    (ql:quickload 'clsql)
    
    ;tell clsql where to search for mysql libs
    (push #P"/usr/lib/mysql" CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS*)
    
    ;add mysql libs to clsql library path [apparent from code :]
    (clsql:push-library-path "/usr/lib/mysql/")
    
    ;directly tell uffi to load mysqlclient shared library
    (uffi:load-foreign-library "/usr/lib/mysql/libmysqlclient.so")
    

    Of course, you can replace “/usr/lib/mysql” with a different path for mysql libraries, if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to connect to mysql database from my asp page.So for that as
I want to connect to a MySQL database from a c++ program. I've installed
I want to connect from home using SQL Server 2005 to another PC. I
I just want to know how to back up data From MYSQL database and
http://motionsharing.com/site/download/acefad55f1e81e456d71a7448b278915 Cannot connect to MySQl database from Eclipse DataSource Explorer. I tune appropriate driver
I can connect to MySQL database from my WinForms app fine. The question is
Briefly, I want to connect remote MYSQL firewalled database to my C# program I
I want to connect mysql database locally with android emulator. I used http GET
I'm getting values from mysql database, I want to organize it with each row
I want to connect to DB using the iSeries Client Access driver. I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.