haskell-ja > Archives > 2012/11/27

2012/11/27 05:28:33 UTCseizans
#
persistent を使って MySQL に接続しようとしていたのですが、
#
mysql パッケージのインストールのタイミングでこけてしまい、インストールできません。
#
cabal-dev install mysql
Resolving dependencies...
[1 of 1] Compiling Main             ( /tmp/mysql-0.1.1.4-6999/mysql-0.1.1.4/Setup.lhs, /tmp/mysql-0.1.1.4-6999/mysql-0.1.1.4/dist/setup/Main.o )
Linking /tmp/mysql-0.1.1.4-6999/mysql-0.1.1.4/dist/setup/setup ...
Configuring mysql-0.1.1.4...
setup: The program mysql_config is required but it could not be found
cabal: Error: some packages failed to install:
mysql-0.1.1.4 failed during the configure step. The exception was:
ExitFailure 1
#
解決方法など何かご存知の方いらしたら教えていただけると幸いです。
2012/11/27 05:42:36 UTCmaoe
#
mysql_configが無いと言われていますね。Ubuntuならlibmysqlclient-devをインストールすれば直りそう。
2012/11/27 06:18:16 UTCseizans
#
ありがとうございます!
#
できました! mysql_config でググれば見つけられたようです。すいません。ありがとうございます。