tkcmada / stdenv_cygwin

This project manages cygwin packages for stdenv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to commit cygwin tar ball

  • run "make_zip.bat" so that cygwin64.zip.xxx(xxx is 001, 002, ...) will be made.
  • commit and push them

How to download cygwin64.zip.XXX and unarchive it?

copy /b cygwin64.zip.* cygwin64.zip

How modules are installed ?

This project manages cygwin modules. Cygwin modules are installed by following ways.

  • A. via installer(deprecated. don't use it.)
  • B. via apt-cyg
  • C. via easy_install
  • D. via pip
  • E. via wget and install manually

How to install modules

  • run setup_x86.bat to install cygwin modules(installed modules are described in setup_x86.bat)

  • apt-cyg(Please skip all apt-cyg part as apt-cyg is not actively maintained. so use setup_x86.bat for installing further modules)

# install apt-cyg
git config --global core.autocrlf false
#this site is closed. git clone https://github.com/transcode-open/apt-cyg.git
git clone https://github.com/kou1okada/apt-cyg.git
install -m 755 apt-cyg/apt-cyg /usr/bin/
apt-cyg --version
rm -rf apt-cyg

apt-cyg -X -m ftp://ftp.iij.ad.jp/pub/cygwin/ update
apt-cyg -X install gnupg
#apt-cyg install python python-devel python-crypto python-paramiko python-setuptools
apt-cyg install python3 python3-devel python3-crypto python3-paramiko python3-setuptools
apt-cyg install make gcc-core gcc-g++
apt-cyg install libyaml-devel libffi-devel openssl-devel
# this is for pip install mysql-python
apt-cyg install libmysqlclient-devel
apt-cyg install mysql
apt-cyg install perl
cd /usr/bin
rm python python2
cp -p python2.7.exe python
cp -p python2.7.exe python2
rm python3 python3.6
cp -p python3.6m.exe python3
cp -p python3.6m.exe python3.6
  • pip3(for python3)
python3 get-pip.py
pip3 --version

#if you see "address space needed" error , run rebaseall -v on ash.exe
pip3 install boto3
pip3 install mysqlclient
#mysql-python does not support python3 so use mysqlclient instead.(ConfigParser is not found error)

pip3 install pyvmomi
pip3 install awscli
pip3 install cffi
# NOTE : ansible install takes very long time(about 30mins)
pip3 install ansible

# NOTE : it's bat idea to install jupyter in cygwin. just use Anaconda. 
# if you see "gcc: error: spawn: No such file or directory" install gcc-g++ not gcc-c++ !
#pip3 install numpy
#pip3 install chainer
#pip3 install jupyter
  • pip(for python)
python --version
#should be python 2.x
python get-pip.py

pip --version
#pip 10.0.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)

pip3 --version
#pip 10.0.1 from /usr/lib/python3.6/site-packages/pip (python 3.6)

#pip and pip3 are diferrent python version.

pip install boto
  • jq(downloaded)
    cd win32
    wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win32.exe
    chmod +x *.exe
    
  • terraform(downloaded) with aws plugin in cygwin64/terraform-sample-aws/.terraform and vsphere plugin in cygwin64/terraform-sample-vsphere/.terraform
  • packer(downloaded)
  • connect(downloaded)

About

This project manages cygwin packages for stdenv


Languages

Language:Python 30.1%Language:C 28.2%Language:C++ 25.6%Language:Perl 6.0%Language:Scheme 3.5%Language:HTML 2.8%Language:Roff 1.3%Language:Perl 6 0.9%Language:Objective-C 0.6%Language:Shell 0.3%Language:PowerShell 0.2%Language:Pascal 0.1%Language:Makefile 0.1%Language:Prolog 0.0%Language:CSS 0.0%Language:SystemVerilog 0.0%Language:GAP 0.0%Language:Awk 0.0%Language:Smalltalk 0.0%Language:M4 0.0%Language:JavaScript 0.0%Language:PostScript 0.0%Language:Emacs Lisp 0.0%Language:Vim Script 0.0%Language:Fortran 0.0%Language:Batchfile 0.0%Language:HCL 0.0%Language:DIGITAL Command Language 0.0%Language:sed 0.0%Language:TeX 0.0%Language:C# 0.0%