ServersMan@VPSさん

結構前から放置気味のServersMan@VPSクンさんをそろそろ弄り始める。
EntryのDebianパッケージを選ぶとgccもインストールされていない。
さぁ!Python3.2コンパイルするぞとなると困った困った。

セオリー通りにやると...

apt-get install gcc
Failed to fetch (ry

/etc/apt/servers.listを書き換えてやらないとだめなんだけど面倒くさがり屋にはきついです。
ぐぐって調べていたらDebian JP Project - ミラーサイトについてに面白いものをみつけましたん。

データ転送速度が高いかもしれないサーバ (近くのミラーサイト) を自動的に探すには

こういうのを待っていた。aptitudeはもちろんインストールされてないからそこから。

# apt-get install aptitude
# aptitude install apt-spy
# apt-spy -s jp -d stable
SERVER: ftp2.jp.debian.org
Benchmarking FTP...
Downloaded 6107575 bytes in 1.31 seconds
Download speed: 4543.63 kB/sec
Writing new sources.list file: /etc/apt/sources.list.d/apt-spy.list

この時点では/etc/apt/sources.listに反映されてないので
/etc/apt/sources.list.d/apt-spy.listをコピー。

deb ftp://ftp2.jp.debian.org/debian/ stable main #contrib non-free
deb-src ftp://ftp2.jp.debian.org/debian/ stable main #contrib non-free
deb http://security.debian.org/ stable/updates main

# aptitude update
# apt-get install gcc

Python3.2をmakeしたらこんな文字列が。後々必要になったら入れよう。

Python build finished, but the necessary bits to build these modules were not found:
_curses _curses_panel _dbm
_gdbm _sqlite3 _ssl
_tkinter bz2 readline
zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name.