hdbc-mysql
hdbc-mysql copied to clipboard
Searching for mysql_config executable in setup fails on windows
I suspect because it has the .pl extension when installed on windows and it cannot be found by findExecutable
in here http://www.haskell.org/ghc/docs/6.8.3/html/libraries/Cabal/src/Distribution-Compat-Directory.html
also note that unless cygwin or some other posix/unix emulation layer is installed, .pl files cannot be executed directly. You have the run the command perl mysql_config.pl
Perl is included with the Haskell platform on windows, but the perl executable is not in the PATH.
also the perl included with the Haskell platform cannot run the mysql_config.pl failing with Can't locate File/Basename.pm in @INC (@INC contains: .) at mysql_config.pl line 39. BEGIN failed--compilation aborted at mysql_config.pl line 39.
Maybe there is another way to get the information?
@ghost I've worked around this by installing http://strawberryperl.com/ and changing Setup.hs
to include call to perl instead, see https://gist.github.com/darthdeus/15669f75acd02fbbd476
more in bos/mysql#3
I'v just describe workaround without perl in the open issue post hdbc-mysql on Windows
#14 needs to get fixed alongside this.
had the same problem on Linux CentOS 7, mysql_config is in the package MariaDB-devel (possible also MySql*devel) so i just installed it with yum install mariadb-devel and it worked fine i suppose under Windows there exist also a MySQL or MariaDB development package