Cabal requires C: Windows library to install

I am trying cabal install yesod on my windows machine. I have a relatively new installation of the Haskell platform. Cabal installation error, saying that I need the sqlite3 C library to install the "permanent" package that Yesod relies on.

 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 did not work. :( What can I do to give the C library the library it needs? (Sqlite3 in this case)

+8
haskell yesod sqlite3 cabal-install
source share
1 answer

So facepalm. I don't need a source, I don't need an exe. I need a DLL.

In the "precompiled files for Windows" section of the site mentioned in my question, I downloaded and extracted a zip file using sqlite3.def and sqlite.dll . Then i used

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

Installation completed successfully. Subsequently, I did cabal install yesod , which also completed successfully.

I believe that if I put the dll somewhere magically, then I would not have to use the --extra-lib-dirs= parameter.

+10
source share

All Articles