Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for mysql_config executable in setup fails on windows #5

Open
ghost opened this issue Oct 29, 2011 · 5 comments
Open

Searching for mysql_config executable in setup fails on windows #5

ghost opened this issue Oct 29, 2011 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2011

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
Copy link
Author

ghost commented Oct 29, 2011

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?

@darthdeus
Copy link

@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 paul-rouse/mysql#3

@KroshkaRu
Copy link

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

@ryantm
Copy link
Owner

ryantm commented Aug 25, 2016

#14 needs to get fixed alongside this.

@damien-mattei
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants