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 6562515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:43:06+00:00 2026-05-25T13:43:06+00:00

I am trying to cabal install yesod on my Windows machine. I have a

  • 0

I am trying to cabal install yesod on my Windows machine. I have a relatively fresh install of the Haskell Platform. The cabal install failed, reporting that I need the sqlite3 C library in order to install “persistent”, a package which Yesod relies upon.

cabal: Missing dependency on a foreign library:
* Missing C library: sqlite3

So I went to http://www.sqlite.org/download.html and grabbed both the C source and the precompiled binary. I tried using both, to no avail:

cabal install persistent --extra-lib-dirs=C:\Path\To\C\Source\Files
cabal install persistent --extra-lib-dirs=C:\Path\To\Binary

In both cases, I got the same result: it didn’t work. 🙁 What can I do to give cabal the C library it needs? (sqlite3 in this case)

  • 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-25T13:43:07+00:00Added an answer on May 25, 2026 at 1:43 pm

    So, facepalm. I didn’t need the source, I didn’t need the exe. I needed the dll.

    Under the “precompiled binaries for Windows” section of the website mentioned in my question, I downloaded and extracted the zip file with sqlite3.def and sqlite.dll. Then I used

    cabal install persistent --extra-lib-dirs=C:\Path\To\DllAndDef
    

    The installation appears to have completed successfully. Afterwards, I did a cabal install yesod, which also appears to have completed successfully.

    I suppose if I had put the dll somewhere magical, then I wouldn’t have had to use the --extra-lib-dirs= option.

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

Sidebar

Related Questions

I'm trying to install the GD library for Haskell on Windows with cabal, but
I'm trying to get Cabal to install the haskell-src-meta package, and I'm having difficulty
I've been trying to install BNF converter from cabal, however there is a problem
I'm trying to install quickcheck 2 via cabal on Ubuntu 10.04. No matter what
I'm trying to install hspec, but I'm getting this: $ cabal install hspec Resolving
Here's the message I get when trying to install in via cabal-install: $ cabal
I am trying to follow the examples from here http://www.haskell.org/cabal/users-guide/#test-suites When I run cabal
I am trying cabal install glib-0.12.3 under my Ubuntu 11.10 using cabal-install 0.10.2. However,
I was trying to install cabal-dev in my mac. After cloing, I tried to
I was trying to install haskeline, it's my first time installing using cabal, and

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.