Connection to database
Hi guys, I was trying to get a connection MySql Haskell and I followed this steps: 1. install cabal-install install libghc-haskelldb-hdbc-dev (headers del haskell y hdbc) install libmysqlclient-dev (headers del mysqlclient) 2. git clone git://github.com/bos/hdbc-mysql.git 3. julita@yulys:~/hdbc-mysql$ ls ChangeLog Database README.markdown Test.hs COPYING HDBC-mysql.cabal Setup.lhs testsrc julita@yulys:~/hdbc-mysql$ runhaskell Test.hs but I got this error message: Database/HDBC/MySQL.hs:65:8: Could not find module `Database.HDBC.MySQL.RTS': Use -v to see a list of the files searched for. * I tried to do something about the Setup.lhs, but I could not do anything at all. If somebody can help me, I will appreciate it. Best regards, Julita
On Mon, Apr 16, 2012 at 18:14, yrazes <yrazes@gmail.com> wrote:
3. julita@yulys:~/hdbc-mysql$ ls ChangeLog Database README.markdown Test.hs COPYING HDBC-mysql.cabal Setup.lhs testsrc julita@yulys:~/hdbc-mysql$ runhaskell Test.hs
but I got this error message:
Database/HDBC/MySQL.hs:65:8: Could not find module `Database.HDBC.MySQL.RTS': Use -v to see a list of the files searched for.
* I tried to do something about the Setup.lhs, but I could not do anything at all.
Did you happen to look at the README, or is that our job? -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
Hi Brandon: I did read the README.markdown. I run the Test.hs that is set by default and the Test.hs (my Test), with the command I got in README: julita@yulys:~/hdbc-mysql$ ghc -idist/build -L/opt/local/lib/mysql5/mysql -lmysqlclient --make Test I got the same error message related to "Could not find module `Database.HDBC.MySQL.RTS':" I "googled" it, but I can not find something about the header or dev I need to run this successfully. (myTest): __________________________________________________________________________- import Control.Monad import Database.HDBC import Database.HDBC.MySQL main = do conn <- connectMySQL defaultMySQLConnectInfo { mysqlHost = "127.0.0.1", mysqlUser = "root", mysqlPassword = "123456" } rows <- quickQuery' conn "show databases" [] forM_ rows $ \row -> putStrLn $ show row __________________________________________________________________________- On Mon, Apr 16, 2012 at 8:27 PM, Brandon Allbery <allbery.b@gmail.com>wrote:
On Mon, Apr 16, 2012 at 18:14, yrazes <yrazes@gmail.com> wrote:
3. julita@yulys:~/hdbc-mysql$ ls ChangeLog Database README.markdown Test.hs COPYING HDBC-mysql.cabal Setup.lhs testsrc julita@yulys:~/hdbc-mysql$ runhaskell Test.hs
but I got this error message:
Database/HDBC/MySQL.hs:65:8: Could not find module `Database.HDBC.MySQL.RTS': Use -v to see a list of the files searched for.
* I tried to do something about the Setup.lhs, but I could not do anything at all.
Did you happen to look at the README, or is that our job?
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (2)
-
Brandon Allbery -
yrazes