LoginSignup
10
10

More than 5 years have passed since last update.

Cygwinにいつも入れているものと設定メモ

Last updated at Posted at 2014-08-17

Cygwinの環境を作るときにいつもやっていることのメモ。(Win7 32bit)
※64bitだといろいろ面倒なことがあったような(なかったような)

※以前はcygwinのターミナルが使いにくかったので、putty+cygtermの環境を作っていたが現在はcygwinのターミナルで問題なし。

入れているもの

setup.exeで入れているもの(必要に応じて)

  • util-linux
  • subversion
  • git
  • mysql(client)
  • ssh
  • vim
  • make
  • gcc
  • wget
  • curl
  • tar
  • tmux
  • unzip

※util-linuxは「more」が欲しかったから

必要に応じてsetup.exeになければ探して入れているもの

tree

(最近はあるっぽい)

nkf

ソースをダウンロード。(http://sourceforge.jp/projects/nkf/)
$ make
$ make install

apt-cyg

$ wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
$ chmod +x apt-cyg
$ mv apt-cyg /usr/local/bin

PHP

$ apt-cyg install php -m ftp://ftp.cygwinports.org/pub/cygwinports
#$ apt-cyg -m ftp://ftp.iij.ad.jp/pub/cygwin/ update

Package php requires the following packages, installing:
libgcc1 libopenssl100 libpcre1 libxml2 zlib0
Package libgcc1 is already installed, skipping
Package libopenssl100 is already installed, skipping
Package libpcre1 is already installed, skipping
Working directory is /setup
Mirror is ftp://ftp.cygwinports.org/pub/cygwinports

Installing libxml2
Package libxml2 not found or ambiguous name, exiting
Package zlib0 is already installed, skipping
Warning: some required packages did not install, continuing
Running postinstall scripts
Package php installed

$ apt-cyg -m ftp://ftp.iij.ad.jp/pub/cygwin/ update
↑は他の上げたくないパッケージのバージョンが上がってしまいそうなので省略。
インストールに失敗したlibxml2はいつも通りのsetupからインストール

参考:CygwinにPHPをインストールする方法

その他設定

.vimrcの追記部分

" For cygwin xterm
set t_Co=256
hi Comment ctermfg=2
10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10