hdbc-mysql icon indicating copy to clipboard operation
hdbc-mysql copied to clipboard

Searching for mysql_config executable in setup fails on windows

Open ghost opened this issue 13 years ago • 5 comments

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.

ghost avatar Oct 29 '11 21:10 ghost

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 avatar Oct 29 '11 22:10 ghost

@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

darthdeus avatar Feb 08 '15 00:02 darthdeus

I'v just describe workaround without perl in the open issue post hdbc-mysql on Windows

KroshkaRu avatar May 13 '15 09:05 KroshkaRu

#14 needs to get fixed alongside this.

ryantm avatar Aug 25 '16 17:08 ryantm

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

damien-mattei avatar Jun 29 '18 14:06 damien-mattei