Skip to content

Instantly share code, notes, and snippets.

@rjial
Created December 21, 2019 15:51
Show Gist options
  • Save rjial/42b85b277a7ec48d538bbf6a870251e7 to your computer and use it in GitHub Desktop.
Save rjial/42b85b277a7ec48d538bbf6a870251e7 to your computer and use it in GitHub Desktop.
Compile Vim (Python3 + Python + Perl + Ruby + Iconv + Lua support) On Cygwin

Compile Vim (Python3 + Python + Perl + Ruby + Iconv + Lua support) On Cygwin

Install Dependencies

apt-cyg install make automake gcc-core gcc-g++ ruby-devel lua-devel tcl-devel libncurses-devel libiconv-devel cscope python2 python2-devel python2-pip python36 python36-devel python36-pip python36-clang perl ruby

Configure

CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --with-features=huge \
            --enable-multibyte \
            --disable-nls \
            --enable-rubyinterp=yes \
            --enable-pythoninterp=yes \
            --with-python-config-dir=/usr/lib/python2.7/config \
            --enable-python3interp \
            --with-python3-config-dir=$(python3-config --configdir) \
            --enable-perlinterp \
            --enable-luainterp \
            --enable-gui=gtk2 --enable-cscope --prefix=/usr
            
make && make install

References

https://stackoverflow.com/questions/11683018/check-header-file-of-iconv-h https://gist.github.com/kairyu/ef9decdd3c35d3e5e318c735b755f279

*Lemme know if you have problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment