mingw相关
http://www.mingw.org
mingw是GNU
msys是一系列GNU utilities
uname -a
C:\Windows\System32\cmd.exe /C C:\MinGW\msys\1.0\msys.bat
LS_COLORS='no=00:fi=00:di=015;37;44:ln=015;36:pi=40;33:so=015;35:do=015;35:bd=40;33;01:cd=40;33;01:or=015;05;37;41:mi=015;05;37;41:ex=015;32:*.cmd=015;32:*.exe=015;32:*.com=015;32:*.btm=015;32:*.bat=015;32:*.sh=015;32:*.csh=015;32:*.tar=015;31:*.tgz=015;31:*.arj=015;31:*.taz=015;31:*.lzh=015;31:*.zip=015;31:*.z=015;31:*.Z=015;31:*.gz=015;31:*.bz2=015;31:*.bz=015;31:*.tbz2=015;31:*.tz=015;31:*.deb=015;31:*.rpm=015;31:*.rar=015;31:*.ace=015;31:*.zoo=015;31:*.cpio=015;31:*.7z=015;31:*.rz=015;31:*.jpg=015;35:*.jpeg=015;35:*.gif=015;35:*.bmp=015;35:*.ppm=015;35:*.tga=015;35:*.xbm=015;35:*.xpm=015;35:*.tif=015;35:*.tiff=015;35:*.png=015;35:*.mng=015;35:*.xcf=015;35:*.pcx=015;35:*.mpg=015;35:*.mpeg=015;35:*.m2v=015;35:*.avi=015;35:*.mkv=015;35:*.ogm=015;35:*.mp4=015;35:*.m4v=015;35:*.mp4v=015;35:*.mov=015;35:*.qt=015;35:*.wmv=015;35:*.asf=015;35:*.rm=015;35:*.rmvb=015;35:*.flc=015;35:*.fli=015;35:*.gl=015;35:*.dl=015;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=015;32:*.wav=015;32:*.mid=015;32:*.midi=015;32:*.au=015;32:*.ogg=015;32:*.flac=015;32:*.aac=015;32:';export LS_COLORSalias ls="ls --color=tty --show-control-chars"
set output-meta onset convert-meta off
mingw-get install gcc-g++mingw-get install msys-dvlprmingw-get install msys-wget
./configure --prefix=/mingw
./configure --prefix=/mingw & make & make install
wget http://production.cf.rubygems.org/rubygems/rubygems-x.x.xx.tgztar zxvf rubygems-x.x.xx.tgzruby setup.rb
/** The public API declaration. */ -#ifdef _WIN32+#if defined(__MINGW32__)+# define YAML_DECLARE(type) type+#elif defined(_WIN32) # if defined(YAML_DECLARE_STATIC) # define YAML_DECLARE(type) type # elif defined(YAML_DECLARE_EXPORT)
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gztar zxvf yaml-0.1.4.tar.gz patch -p0 < 0001-Proper-mingw-YAML_DECLARE-definition.patch./configure --prefix=/mingw & make & make install~/ruby-1.9.3-p0/ext/psych$ ruby extconf.rbmake clean & make & make install
wget http://zlib.net/zlib-1.2.5.tar.gztar zxvf zlib-1.2.5.tar.gzmake -f win32/Makefile.gcc BINARY_PATH=/mingw/bin INCLUDE_PATH=/mingw/include LIBRARY_PATH=/mingw/lib install~/ruby-1.9.3-p0/ext/zlib$ ruby extconf.rbmake & make install
mingw-get install msys-perlwget http://openssl.org/source/openssl-1.0.0x.tar.gztar zxvf openssl-1.0.0x.tar.gz./config --prefix=/mingwmake & make install~/ruby-1.9.3-p0/ext/openssl$ ruby extconf.rbmake & make install
wget http://cdnetworks-kr-2.dl.sourceforge.net/project/pdcurses/pdcurses/3.4/PDCurses-3.4.tar.gzcd PDCurses-3.4/win32/make -f gccwin32.mak DLL=Ycp pdcurses.dll /mingw/bin/.cp pdcurses.a /mingw/lib/libcurses.acd ..cp *.h /mingw/include/.
wget ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz./configure --prefix=/mingw --with-cursesmake & make install~/ruby-1.9.3-p0/ext/readline$ ruby extconf.rbmake & make install
wget http://prdownloads.sourceforge.net/tcl/tcl8.5.11-src.tar.gz打2个patch https://github.com/oneclick/rubyinstaller/tree/master/resources/patches/tclcd win & ./configure --prefix=/mingw & make & make installwget http://prdownloads.sourceforge.net/tcl/tk8.5.11-src.tar.gz打2个patch https://github.com/oneclick/rubyinstaller/tree/master/resources/patches/tkcd win & ./configure --prefix=/mingw & make & make install~/ruby-1.9.3-p0/ext/tk$ ruby extconf.rbmake clean & make & make install
gem i eventmachine -v 0.12.10 --platform=mswin32
wget http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gztar zxvf libtool-2.4.2.tar.gz./configure --prefix=/mingw & make & make install
wget http://sqlite.org/sqlite-autoconf-3070900.tar.gztar zxvf sqlite-autoconf-3070900.tar.gz./configure --prefix=/mingw & make & make install
cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=/mingwmake install