10

I've been trying to install mysql on my cygwin. There isn't a package for this on the repo, so I figured I'll compile one, but I can't figure out what package I need to use, nor which options should I send to ./configure

any tips?

AriehGlazer
  • 2,220
  • 8
  • 26
  • 29
  • 2
    Out of curiosity: why do you want to do that? There are native packages for Windows –  Jan 26 '11 at 16:20
  • 2
    I would recommend using xampp http://www.apachefriends.org/en/xampp.html which has everything you need in one little package. – RDL Jan 26 '11 at 16:28
  • I'm running my ruby from my cygwin, due to some gem having issues with win environment. The mysql gem requires that I have mysql on my machine (cygwin in this case) – AriehGlazer Jan 27 '11 at 07:07
  • @a_horse_with_no_name is there a way to install those same native packages in cygwin path? For example (This is assumed code) 'ln -s /cygdrive/c/msql/msql.exe mysql – Gabriel Fair Jul 22 '12 at 20:33
  • I think I answered my own question.: http://stackoverflow.com/q/329866/635160 – Gabriel Fair Jul 22 '12 at 20:38

4 Answers4

15

Use apt-cyg, you just need the command:

apt-cyg install mysql

http://code.google.com/p/apt-cyg/

Emerson
  • 935
  • 4
  • 13
  • 27
6

The Cygwin Ports project has mysql packages. See http://sourceware.org/cygwinports.

ak2
  • 6,629
  • 31
  • 27
0

Fistly ,try to download https://github.com/transcode-open/apt-cyg ,and then execute the following command 'apt-cyg install mysql' . It's worked!

winterli
  • 68
  • 6
0

Doesn't matter much which version you need to use. Just download the generic linux source from here. Edit: URL is out of date. Download generic linux source here.

I know there used to be a readline bug in cygwin but you should be able to get past that with this in your configure:

./configure --without-readline CFLAGS=-O2

Might be worth it to try without the flags first, just make sure you run make distclean if you try multiple configures.

Otherwise here's are the commands to get you going:

tar xzvf mysql-5.5.8.tar.gz
cd mysql-5.0.57
./configure
make
make install

You should be good to go from there.

Jonathan
  • 949
  • 1
  • 11
  • 13
wajiw
  • 12,239
  • 17
  • 54
  • 73
  • 1
    I have looked at this package. it has no configure file, and trying to use the configure.cmake file did not work – AriehGlazer Jan 27 '11 at 07:08
  • 1
    Ok. found instruction in the file. Should have use "cmake ." (after downloading the package). Now we'll see if this sticks – AriehGlazer Jan 27 '11 at 07:16
  • 1
    How did you get past the error: conflicting types for 'dtoa'? I am getting this error trying to compile 5.5.8 or 5.5.20. http://bugs.mysql.com/bug.php?id=62627 – PaulM Feb 22 '12 at 13:21