メモリ状況の確認用にデータベースを作成してみた。
とりあえず置く場所がないので、ここにおいて置く。
https://docs.google.com/leaf?id=0B1MgkgXdknGtOGI4OTQzNDItMjU1Ny00ZTY3LWIzNDEtMjMzY2YxNzRiMDc0&hl=en_US
そのうちちゃんとした場所に移動したい。
2011年11月22日火曜日
2011年11月10日木曜日
pythonでhelloworld
pythonでhelloworld(oneliner)
[aadimstx@localhost local]$ python -c "print 'hello world'" hello world
ラベル:
helloworld,
oneliner,
python
DL用スクリプト
DLするときに既にダウンロードされているモノに関してはignoreするスクリプト。
wgetを使っているため、それにパスが通ってないとエラーする。
wgetを使っているため、それにパスが通ってないとエラーする。
#! /usr/bin/env python #-*- coding: utf-8 -*- import os import optparse import subprocess def main(): parser = optparse.OptionParser() opts, args = parser.parse_args() args = list(set(args)) if len(args) < 1: parser.error('parameter empty.') cur = os.path.dirname(__file__) os.chdir(cur) with open(os.path.join(cur, 'url.list'), 'a+t') as urllist: alreadies = urllist.readlines() alreadies = map(lambda l: l.strip(), alreadies) not_yet = filter(lambda l: l not in alreadies, args) ignore = filter(lambda l: l in alreadies, args) for ign in ignore: print 'ignore: {0}'.format(ign) url_child = {} for url in not_yet: child = subprocess.Popen(['wget', url]) url_child[url] = child with open(os.path.join(cur, 'url.list'), 'a+t') as urllist: for url, child in url_child.iteritems(): rc = child.wait() if rc == 0: urllist.write(url + os.linesep) else: sys.stderr.write('error: {0} ({1})'.format(url, rc)) if __name__ == '__main__': main()
2011年11月8日火曜日
python-2.7.2をローカルにインストール
まずはファイルのダウンロード
http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.xz
xzを解凍する。
自分の環境にはxzが入っていないため、前に作っておいたバイナリを使用。
作成されたディレクトリに入ってconfigureを実行
そこそこうまく行ってしまった。
ビルドできなかったのは、
いつもは、
これは入っているライブラリのバージョンの違いで失敗する。
正しいバージョンを入れればok。
このバージョンの組み合わせも宿題。
とりあえずinstallしてしまう。
LD_LIBRARY_PATHの使い方に関しては、ちょっと問題ありかも。
http://nhh.mo-blog.jp/ttt/2007/12/unixos_ld_libra_63dd.html
環境をいろいろ操作したいけどroot権限がない場合などのローカルな環境構築方法は他にもあるのかもしれない。
http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.xz
xzを解凍する。
自分の環境にはxzが入っていないため、前に作っておいたバイナリを使用。
[user@localhost src]$ ~/ar/opt/ar/posix/i686/usr/bin/xzcat -d ../var/mirror/python-2.7.2/Python-2.7.2.tar.xz | tar xv
作成されたディレクトリに入ってconfigureを実行
[user@localhost src]$ cd Python-2.7.2/ [user@localhost Python-2.7.2]$ ./configure --prefix=$LOCAL --exec-prefix=$LOCAL --enable-shared 〜省略〜 [user@localhost src]$ cd Python-2.7.2/ [user@localhost Python-2.7.2]$ ./configure --prefix=$LOCAL --exec-prefix=$LOCAL --enable-shared; make 〜省略〜 -i686-2.7/readline.so building 'crypt' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cryptmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cryptmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cryptmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lcrypt -lpython2.7 -o build/lib.linux-i686-2.7/crypt.so building '_csv' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_csv.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_csv.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_csv.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_csv.so building '_socket' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/socketmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/socketmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/socketmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_socket.so building '_ssl' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ssl.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ssl.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ssl.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lssl -lcrypto -lpython2.7 -o build/lib.linux-i686-2.7/_ssl.so building '_hashlib' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_hashopenssl.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_hashopenssl.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_hashopenssl.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lssl -lcrypto -lpython2.7 -o build/lib.linux-i686-2.7/_hashlib.so building '_bsddb' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_bsddb.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_bsddb.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_bsddb.o -L/usr/lib -L/home/aadimstx/local/lib -L/usr/local/lib -L. -Wl,-R/usr/lib -ldb-4.3 -lpython2.7 -o build/lib.linux-i686-2.7/_bsddb.so building '_sqlite3' extension creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cache.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cache.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/connection.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/connection.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cursor.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cursor.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/microprotocols.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/microprotocols.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/module.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/module.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/prepare_protocol.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/prepare_protocol.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/row.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/row.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/statement.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/statement.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME="sqlite3" -DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/util.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/util.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cache.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/connection.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/cursor.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/microprotocols.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/module.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/prepare_protocol.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/row.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/statement.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_sqlite/util.o -L/usr/lib -L/home/aadimstx/local/lib -L/usr/local/lib -L. -Wl,-R/usr/lib -lsqlite3 -lpython2.7 -o build/lib.linux-i686-2.7/_sqlite3.so building 'dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_NDBM_H -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/dbmmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/dbmmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/dbmmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lgdbm -lpython2.7 -o build/lib.linux-i686-2.7/dbm.so building 'gdbm' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/gdbmmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/gdbmmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/gdbmmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lgdbm -lpython2.7 -o build/lib.linux-i686-2.7/gdbm.so building 'termios' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/termios.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/termios.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/termios.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/termios.so building 'resource' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/resource.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/resource.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/resource.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/resource.so building 'nis' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/nismodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/nismodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/nismodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lnsl -lpython2.7 -o build/lib.linux-i686-2.7/nis.so building '_curses' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_cursesmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_cursesmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_cursesmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lncursesw -lpython2.7 -o build/lib.linux-i686-2.7/_curses.so building '_curses_panel' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_curses_panel.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_curses_panel.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_curses_panel.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpanelw -lncursesw -lpython2.7 -o build/lib.linux-i686-2.7/_curses_panel.so building 'zlib' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/zlibmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/zlibmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/zlibmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-i686-2.7/zlib.so building 'binascii' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/binascii.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/binascii.o -DUSE_ZLIB_CRC32 gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/binascii.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-i686-2.7/binascii.so building 'bz2' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/bz2module.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/bz2module.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/bz2module.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lbz2 -lpython2.7 -o build/lib.linux-i686-2.7/bz2.so building 'pyexpat' extension creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/aadimstx/local/var/build/Python-2.7.2/./Modules/expat -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/pyexpat.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/pyexpat.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/aadimstx/local/var/build/Python-2.7.2/./Modules/expat -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlparse.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlparse.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/aadimstx/local/var/build/Python-2.7.2/./Modules/expat -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlrole.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlrole.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/aadimstx/local/var/build/Python-2.7.2/./Modules/expat -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmltok.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmltok.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/pyexpat.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlparse.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmlrole.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/expat/xmltok.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/pyexpat.so building '_elementtree' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/aadimstx/local/var/build/Python-2.7.2/./Modules/expat -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_elementtree.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_elementtree.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_elementtree.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_elementtree.so building '_multibytecodec' extension creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/multibytecodec.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/multibytecodec.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/multibytecodec.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_multibytecodec.so building '_codecs_kr' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_kr.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_kr.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_kr.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_kr.so building '_codecs_jp' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_jp.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_jp.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_jp.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_jp.so building '_codecs_cn' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_cn.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_cn.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_cn.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_cn.so building '_codecs_tw' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_tw.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_tw.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_tw.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_tw.so building '_codecs_hk' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_hk.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_hk.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_hk.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_hk.so building '_codecs_iso2022' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_iso2022.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_iso2022.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/cjkcodecs/_codecs_iso2022.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_codecs_iso2022.so building 'dl' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/dlmodule.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/dlmodule.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/dlmodule.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/dl.so building '_multiprocessing' extension creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/multiprocessing.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/multiprocessing.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/socket_connection.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/socket_connection.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/semaphore.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/semaphore.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/multiprocessing.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/socket_connection.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_multiprocessing/semaphore.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_multiprocessing.so building 'linuxaudiodev' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/linuxaudiodev.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/linuxaudiodev.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/linuxaudiodev.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/linuxaudiodev.so building 'ossaudiodev' extension gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/ossaudiodev.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/ossaudiodev.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/ossaudiodev.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/ossaudiodev.so creating build/temp.linux-i686-2.7/libffi checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc -pthread checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -pthread accepts -g... yes checking for gcc -pthread option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc -pthread... gcc3 checking dependency style of gcc -pthread... gcc3 checking whether gcc -pthread and cc understand -c and -o together... yes checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc -pthread... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 98304 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc -pthread object... ok checking how to run the C preprocessor... gcc -pthread -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc -pthread supports -fno-rtti -fno-exceptions... no checking for gcc -pthread option to produce PIC... -fPIC -DPIC checking if gcc -pthread PIC flag -fPIC -DPIC works... yes checking if gcc -pthread static flag -static works... yes checking if gcc -pthread supports -c -o file.o... yes checking if gcc -pthread supports -c -o file.o... (cached) yes checking whether the gcc -pthread linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether to enable maintainer-specific portions of Makefiles... no checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mmap... yes checking for sys/mman.h... (cached) yes checking for mmap... (cached) yes checking whether read-only mmap of a plain file works... yes checking whether mmap from /dev/zero works... yes checking for MAP_ANON(YMOUS)... yes checking whether mmap with MAP_ANON(YMOUS) works... yes checking for ANSI C header files... (cached) yes checking for memcpy... yes checking for working alloca.h... yes checking for alloca... yes checking size of double... 8 checking size of long double... 12 checking whether byte ordering is bigendian... no checking assembler .cfi pseudo-op support... yes checking assembler supports pc related relocs... yes checking whether .eh_frame section should be read-only... yes checking for __attribute__((visibility("hidden")))... yes configure: creating ./config.status config.status: creating include/Makefile config.status: creating include/ffi.h config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating man/Makefile config.status: creating libffi.pc config.status: creating fficonfig.py config.status: creating fficonfig.h config.status: linking /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/ffitarget.h to include/ffitarget.h config.status: linking /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/include/ffi_common.h to include/ffi_common.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing include commands config.status: executing src commands building '_ctypes' extension creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src creating build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86 gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/_ctypes.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/_ctypes.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callbacks.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callbacks.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callproc.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callproc.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/stgdict.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/stgdict.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/cfield.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/cfield.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/prep_cif.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/closures.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/closures.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.o /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c: In function ‘mmap_resize’: /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:3193: 警告: implicit declaration of function ‘mremap’ /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c: In function ‘sys_trim’: /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.c:3612: 警告: ポインタと整数との比較を行なっています gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/ffi.c -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/ffi.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-i686-2.7/libffi/include -Ibuild/temp.linux-i686-2.7/libffi -I/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src -I. -IInclude -I./Include -I/usr/local/include -I/home/aadimstx/local/var/build/Python-2.7.2/Include -I/home/aadimstx/local/var/build/Python-2.7.2 -c /home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/sysv.S -o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/sysv.o gcc -pthread -shared build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/_ctypes.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callbacks.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/callproc.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/stgdict.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/cfield.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/prep_cif.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/closures.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/dlmalloc.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-i686-2.7/home/aadimstx/local/var/build/Python-2.7.2/Modules/_ctypes/libffi/src/x86/sysv.o -L/home/aadimstx/local/lib -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-i686-2.7/_ctypes.so Python build finished, but the necessary bits to build these modules were not found: _tkinter bsddb185 sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. running build_scripts creating build/scripts-2.7 copying and adjusting /home/aadimstx/local/var/build/Python-2.7.2/Tools/scripts/pydoc -> build/scripts-2.7 copying and adjusting /home/aadimstx/local/var/build/Python-2.7.2/Tools/scripts/idle -> build/scripts-2.7 copying and adjusting /home/aadimstx/local/var/build/Python-2.7.2/Tools/scripts/2to3 -> build/scripts-2.7 copying and adjusting /home/aadimstx/local/var/build/Python-2.7.2/Lib/smtpd.py -> build/scripts-2.7 changing mode of build/scripts-2.7/pydoc from 664 to 775 changing mode of build/scripts-2.7/idle from 664 to 775 changing mode of build/scripts-2.7/2to3 from 664 to 775 changing mode of build/scripts-2.7/smtpd.py from 664 to 775 /usr/bin/install -c -m 644 ./Tools/gdb/libpython.py python-gdb.py [aadimstx@localhost ~]$
そこそこうまく行ってしまった。
ビルドできなかったのは、
- _tkinter
- bsddb185
- sunaudiodev
いつもは、
- readline
- bzip2
これは入っているライブラリのバージョンの違いで失敗する。
正しいバージョンを入れればok。
このバージョンの組み合わせも宿題。
とりあえずinstallしてしまう。
[aadimstx@localhost Python-2.7.2]$ make install 〜省略〜 Compiling /home/aadimstx/local/lib/python2.7/test/threaded_import_hangers.py ... Compiling /home/aadimstx/local/lib/python2.7/test/time_hashlib.py ... Listing /home/aadimstx/local/lib/python2.7/test/tracedmodules ... Compiling /home/aadimstx/local/lib/python2.7/test/tracedmodules/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/test/tracedmodules/testmod.py ... Compiling /home/aadimstx/local/lib/python2.7/test/warning_tests.py ... Compiling /home/aadimstx/local/lib/python2.7/test/win_console_handler.py ... Listing /home/aadimstx/local/lib/python2.7/test/xmltestdata ... Compiling /home/aadimstx/local/lib/python2.7/test/xmltests.py ... Compiling /home/aadimstx/local/lib/python2.7/textwrap.py ... Compiling /home/aadimstx/local/lib/python2.7/this.py ... Compiling /home/aadimstx/local/lib/python2.7/threading.py ... Compiling /home/aadimstx/local/lib/python2.7/timeit.py ... Compiling /home/aadimstx/local/lib/python2.7/toaiff.py ... Compiling /home/aadimstx/local/lib/python2.7/token.py ... Compiling /home/aadimstx/local/lib/python2.7/tokenize.py ... Compiling /home/aadimstx/local/lib/python2.7/trace.py ... Compiling /home/aadimstx/local/lib/python2.7/traceback.py ... Compiling /home/aadimstx/local/lib/python2.7/tty.py ... Compiling /home/aadimstx/local/lib/python2.7/types.py ... Listing /home/aadimstx/local/lib/python2.7/unittest ... Compiling /home/aadimstx/local/lib/python2.7/unittest/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/__main__.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/case.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/loader.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/main.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/result.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/runner.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/signals.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/suite.py ... Listing /home/aadimstx/local/lib/python2.7/unittest/test ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/dummy.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/support.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_assertions.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_break.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_case.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_discovery.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_functiontestcase.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_loader.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_program.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_result.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_runner.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_setups.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_skipping.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/test/test_suite.py ... Compiling /home/aadimstx/local/lib/python2.7/unittest/util.py ... Compiling /home/aadimstx/local/lib/python2.7/urllib.py ... Compiling /home/aadimstx/local/lib/python2.7/urllib2.py ... Compiling /home/aadimstx/local/lib/python2.7/urlparse.py ... Compiling /home/aadimstx/local/lib/python2.7/user.py ... Compiling /home/aadimstx/local/lib/python2.7/uu.py ... Compiling /home/aadimstx/local/lib/python2.7/uuid.py ... Compiling /home/aadimstx/local/lib/python2.7/warnings.py ... Compiling /home/aadimstx/local/lib/python2.7/wave.py ... Compiling /home/aadimstx/local/lib/python2.7/weakref.py ... Compiling /home/aadimstx/local/lib/python2.7/webbrowser.py ... Compiling /home/aadimstx/local/lib/python2.7/whichdb.py ... Listing /home/aadimstx/local/lib/python2.7/wsgiref ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/handlers.py ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/headers.py ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/simple_server.py ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/util.py ... Compiling /home/aadimstx/local/lib/python2.7/wsgiref/validate.py ... Compiling /home/aadimstx/local/lib/python2.7/xdrlib.py ... Listing /home/aadimstx/local/lib/python2.7/xml ... Compiling /home/aadimstx/local/lib/python2.7/xml/__init__.py ... Listing /home/aadimstx/local/lib/python2.7/xml/dom ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/NodeFilter.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/domreg.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/expatbuilder.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/minicompat.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/minidom.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/pulldom.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/dom/xmlbuilder.py ... Listing /home/aadimstx/local/lib/python2.7/xml/etree ... Compiling /home/aadimstx/local/lib/python2.7/xml/etree/ElementInclude.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/etree/ElementPath.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/etree/ElementTree.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/etree/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/etree/cElementTree.py ... Listing /home/aadimstx/local/lib/python2.7/xml/parsers ... Compiling /home/aadimstx/local/lib/python2.7/xml/parsers/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/parsers/expat.py ... Listing /home/aadimstx/local/lib/python2.7/xml/sax ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/__init__.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/_exceptions.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/expatreader.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/handler.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/saxutils.py ... Compiling /home/aadimstx/local/lib/python2.7/xml/sax/xmlreader.py ... Compiling /home/aadimstx/local/lib/python2.7/xmllib.py ... Compiling /home/aadimstx/local/lib/python2.7/xmlrpclib.py ... Compiling /home/aadimstx/local/lib/python2.7/zipfile.py ... PYTHONPATH=/home/aadimstx/local/lib/python2.7 LD_LIBRARY_PATH=/home/aadimstx/local/var/build/Python-2.7.2: \ ./python -Wi -t /home/aadimstx/local/lib/python2.7/compileall.py \ -d /home/aadimstx/local/lib/python2.7/site-packages -f \ -x badsyntax /home/aadimstx/local/lib/python2.7/site-packages Listing /home/aadimstx/local/lib/python2.7/site-packages ... PYTHONPATH=/home/aadimstx/local/lib/python2.7 LD_LIBRARY_PATH=/home/aadimstx/local/var/build/Python-2.7.2: \ ./python -Wi -t -O /home/aadimstx/local/lib/python2.7/compileall.py \ -d /home/aadimstx/local/lib/python2.7/site-packages -f \ -x badsyntax /home/aadimstx/local/lib/python2.7/site-packages Listing /home/aadimstx/local/lib/python2.7/site-packages ... PYTHONPATH=/home/aadimstx/local/lib/python2.7 LD_LIBRARY_PATH=/home/aadimstx/local/var/build/Python-2.7.2: \ ./python -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()" Creating directory /home/aadimstx/local/include Creating directory /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/Python-ast.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/Python.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/abstract.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/asdl.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/ast.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/bitset.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/boolobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/bufferobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/bytearrayobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/bytes_methods.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/bytesobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/cStringIO.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/cellobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/ceval.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/classobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/cobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/code.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/codecs.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/compile.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/complexobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/datetime.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/descrobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/dictobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/dtoa.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/enumobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/errcode.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/eval.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/fileobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/floatobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/frameobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/funcobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/genobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/graminit.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/grammar.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/import.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/intobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/intrcheck.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/iterobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/listobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/longintrepr.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/longobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/marshal.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/memoryobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/metagrammar.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/methodobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/modsupport.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/moduleobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/node.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/object.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/objimpl.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/opcode.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/osdefs.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/parsetok.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/patchlevel.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pgen.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pgenheaders.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/py_curses.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyarena.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pycapsule.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyctype.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pydebug.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyerrors.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyexpat.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyfpe.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pygetopt.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pymacconfig.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pymactoolbox.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pymath.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pymem.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pyport.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pystate.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pystrcmp.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pystrtod.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pythonrun.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/pythread.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/rangeobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/setobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/sliceobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/stringobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/structmember.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/structseq.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/symtable.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/sysmodule.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/timefuncs.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/token.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/traceback.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/tupleobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/ucnhash.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/unicodeobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/warnings.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 ./Include/weakrefobject.h /home/aadimstx/local/include/python2.7 /usr/bin/install -c -m 644 pyconfig.h /home/aadimstx/local/include/python2.7/pyconfig.h # Substitution happens here, as the completely-expanded BINDIR # is not available in configure sed -e "s,@EXENAME@,/home/aadimstx/local/bin/python2.7," < ./Misc/python-config.in >python-config Creating directory /home/aadimstx/local/lib/python2.7/config Creating directory /home/aadimstx/local/lib/pkgconfig /usr/bin/install -c -m 644 Modules/config.c /home/aadimstx/local/lib/python2.7/config/config.c /usr/bin/install -c -m 644 Modules/python.o /home/aadimstx/local/lib/python2.7/config/python.o /usr/bin/install -c -m 644 ./Modules/config.c.in /home/aadimstx/local/lib/python2.7/config/config.c.in /usr/bin/install -c -m 644 Makefile /home/aadimstx/local/lib/python2.7/config/Makefile /usr/bin/install -c -m 644 Modules/Setup /home/aadimstx/local/lib/python2.7/config/Setup /usr/bin/install -c -m 644 Modules/Setup.local /home/aadimstx/local/lib/python2.7/config/Setup.local /usr/bin/install -c -m 644 Modules/Setup.config /home/aadimstx/local/lib/python2.7/config/Setup.config /usr/bin/install -c -m 644 Misc/python.pc /home/aadimstx/local/lib/pkgconfig/python-2.7.pc /usr/bin/install -c ./Modules/makesetup /home/aadimstx/local/lib/python2.7/config/makesetup /usr/bin/install -c ./install-sh /home/aadimstx/local/lib/python2.7/config/install-sh /usr/bin/install -c python-config /home/aadimstx/local/bin/python2.7-config rm python-config LD_LIBRARY_PATH=/home/aadimstx/local/var/build/Python-2.7.2: ./python -E ./setup.py install \ --prefix=/home/aadimstx/local \ --install-scripts=/home/aadimstx/local/bin \ --install-platlib=/home/aadimstx/local/lib/python2.7/lib-dynload \ --root=/ running install running build running build_ext building dbm using gdbm INFO: Can't locate Tcl/Tk libs and/or headers Python build finished, but the necessary bits to build these modules were not found: _tkinter bsddb185 sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. running build_scripts running install_lib creating /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/termios.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_struct.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/spwd.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_sqlite3.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_hashlib.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_socket.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/syslog.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/strop.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/math.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/operator.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_elementtree.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/linuxaudiodev.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_hotshot.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_functools.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/crypt.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_json.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_bisect.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_tw.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_ssl.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_jp.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_random.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/time.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/pyexpat.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/readline.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/parser.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_testcapi.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_curses_panel.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_ctypes.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/fcntl.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_multibytecodec.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_heapq.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/array.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_csv.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/mmap.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_cn.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/zlib.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/cStringIO.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_bsddb.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_io.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_lsprof.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/future_builtins.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_collections.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/binascii.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/nis.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/imageop.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/ossaudiodev.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/dbm.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/datetime.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_kr.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_multiprocessing.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_locale.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/unicodedata.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/select.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_iso2022.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/itertools.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/gdbm.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_codecs_hk.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/resource.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/dl.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/cmath.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/bz2.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/grp.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_ctypes_test.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/audioop.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/_curses.so -> /home/aadimstx/local/lib/python2.7/lib-dynload copying build/lib.linux-i686-2.7/cPickle.so -> /home/aadimstx/local/lib/python2.7/lib-dynload changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/termios.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_struct.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/spwd.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_sqlite3.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_hashlib.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_socket.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/syslog.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/strop.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/math.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/operator.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_elementtree.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/linuxaudiodev.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_hotshot.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_functools.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/crypt.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_json.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_bisect.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_tw.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_ssl.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_jp.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_random.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/time.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/pyexpat.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/readline.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/parser.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_testcapi.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_curses_panel.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_ctypes.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/fcntl.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_multibytecodec.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_heapq.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/array.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_csv.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/mmap.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_cn.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/zlib.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/cStringIO.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_bsddb.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_io.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_lsprof.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/future_builtins.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_collections.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/binascii.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/nis.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/imageop.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/ossaudiodev.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/dbm.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/datetime.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_kr.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_multiprocessing.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_locale.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/unicodedata.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/select.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_iso2022.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/itertools.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/gdbm.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_codecs_hk.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/resource.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/dl.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/cmath.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/bz2.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/grp.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_ctypes_test.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/audioop.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/_curses.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/cPickle.so to 755 changing mode of /home/aadimstx/local/lib/python2.7/lib-dynload/ to 755 running install_scripts copying build/scripts-2.7/smtpd.py -> /home/aadimstx/local/bin copying build/scripts-2.7/2to3 -> /home/aadimstx/local/bin copying build/scripts-2.7/pydoc -> /home/aadimstx/local/bin copying build/scripts-2.7/idle -> /home/aadimstx/local/bin changing mode of /home/aadimstx/local/bin/smtpd.py to 775 changing mode of /home/aadimstx/local/bin/2to3 to 775 changing mode of /home/aadimstx/local/bin/pydoc to 775 changing mode of /home/aadimstx/local/bin/idle to 775 running install_egg_info Writing /home/aadimstx/local/lib/python2.7/lib-dynload/Python-2.7.2-py2.7.egg-info if test -f /home/aadimstx/local/bin/python -o -h /home/aadimstx/local/bin/python; \ then rm -f /home/aadimstx/local/bin/python; \ else true; \ fi (cd /home/aadimstx/local/bin; ln python2.7 python) rm -f /home/aadimstx/local/bin/python-config (cd /home/aadimstx/local/bin; ln -s python2.7-config python-config) test -d /home/aadimstx/local/lib/pkgconfig || /usr/bin/install -c -d -m 755 /home/aadimstx/local/lib/pkgconfig rm -f /home/aadimstx/local/lib/pkgconfig/python.pc (cd /home/aadimstx/local/lib/pkgconfig; ln -s python-2.7.pc python.pc) Creating directory /home/aadimstx/local/share/man Creating directory /home/aadimstx/local/share/man/man1 /usr/bin/install -c -m 644 ./Misc/python.man \ /home/aadimstx/local/share/man/man1/python2.7.1 [aadimstx@localhost Python-2.7.2]$
LD_LIBRARY_PATHの使い方に関しては、ちょっと問題ありかも。
http://nhh.mo-blog.jp/ttt/2007/12/unixos_ld_libra_63dd.html
環境をいろいろ操作したいけどroot権限がない場合などのローカルな環境構築方法は他にもあるのかもしれない。
pythonのhgリポジトリ取得
pythonのhgリポジトリの取得(ログは取り忘れたのでそれらしいのをのせておく)
こっちはupdate。
変更がないので、何も変わっていない。
[vuser@localhost cpython]$ hg clone http://hg.python.org/cpython 複製先ディレクトリ: cpython 全チェンジセットを取得中 〜 省略 〜 (実は鳥忘れた)
こっちはupdate。
変更がないので、何も変わっていない。
[vuser@localhost cpython]$ hg update ファイル状態: 更新数 0、 マージ数 0、 削除数 0、 衝突未解決数 0 [vuser@localhost cpython]$
2011年11月7日月曜日
emacsの色設定
emacsの色設定は、凝りだすときりがないので、color-themeを使うのが手っ取り早いです。
まずは次のページからファイルをダウンロードします。
http://gnuemacscolorthemetest.googlecode.com/files/color-theme-6.6.0-mav.zip
解凍すると次のファイルが入っています。
この中の次のファイルをsite-lispにコピーする。
M-x color-theme- selectを実行すると、一覧表示されるようになる。
http://gnuemacscolorthemetest.googlecode.com/svn/html/index-el.html
まずは次のページからファイルをダウンロードします。
http://gnuemacscolorthemetest.googlecode.com/files/color-theme-6.6.0-mav.zip
解凍すると次のファイルが入っています。
C:\misc\ad\color-theme-6.6.0>dir ドライブ C のボリューム ラベルがありません。 ボリューム シリアル番号は 04E3-75C8 です C:\misc\ad\color-theme-6.6.0 のディレクトリ 2011/11/06 05:52 DIR> . 2011/11/06 05:52 DIR> .. 2006/05/28 15:48 1,077 AUTHORS 2006/05/28 15:32 2,978 BUGS 2006/05/28 16:49 0 build-stamp 2006/05/28 16:30 4,053 ChangeLog 2011/10/13 06:11 5 cmd.bat 2007/01/30 14:45 5,214 color-theme-autoloads.el 2007/01/30 14:45 5,380 color-theme-autoloads.elc 2007/01/30 14:45 459 color-theme-autoloads.el~ 2006/05/27 18:59 459 color-theme-autoloads.in 2006/05/28 16:07 67,668 color-theme.el 2007/01/30 14:45 47,961 color-theme.elc 2006/05/28 16:49 0 configure-stamp 2006/05/22 01:07 18,353 COPYING 2006/05/28 15:41 476 HACKING 2006/05/28 16:23 4,097 Makefile 2006/05/28 16:49 1,193 Makefile.defs 2006/05/28 15:34 3,837 README 2011/11/06 05:52 DIR> themes 17 個のファイル 163,210 バイト 3 個のディレクトリ 156,823,552 バイトの空き領域 C:\misc\ad\color-theme-6.6.0>
この中の次のファイルをsite-lispにコピーする。
- color-theme.el
- color-theme-autoloads.el
- theme
M-x color-theme-
http://gnuemacscolorthemetest.googlecode.com/svn/html/index-el.html
2011年11月6日日曜日
blenderのデータにpythonでアクセスしてみる
>>> import bpy >>> bpy.data>>> bpy.data.objects >>> bpy.data.scenes >>> bpy.data.materials >>> dir(bpy.data) ['__doc__', '__module__', '__slots__', 'actions', 'armatures', 'bl_rna', 'brushes', 'cameras', 'curves', 'filepath', 'fonts', 'grease_pencil', 'groups', 'images', 'is_dirty', 'is_saved', 'lamps', 'lattices', 'libraries', 'materials', 'meshes', 'metaballs', 'node_groups', 'objects', 'particles', 'rna_type', 'scenes', 'screens', 'scripts', 'shape_keys', 'sounds', 'texts', 'textures', 'window_managers', 'worlds']
プロキシ環境内でeasy_installを使うときの設定
企業や学校ではinternetへの接続にproxyを経由してというのはよくあることです。
そのような環境でeasy_installしたいのであれば次の環境変数を設定する。
そのような環境でeasy_installしたいのであれば次の環境変数を設定する。
- HTTP_PROXY
- HTTPS_PROXY
ポートスキャン TCP
#! /usr/bin/env python #-*- coding: utf-8 -*- import os import sys import time import socket import thread import threading import optparse OPEN = 'o' CLOSE = 'x' def check_port(host, port): soc = socket.socket() soc.settimeout(1) try: soc.connect((host, port)) except (socket.timeout, socket.error): return CLOSE else: return OPEN class Connector(threading.Thread): def __init__(self, host, port, *args, **kwds): threading.Thread.__init__(self, *args, **kwds) self.setDaemon(True) self.host = host self.port = int(port) def run(self): status = check_port(self.host, self.port) sys.stdout.write('{0} {1}'.format(status, self.port) + os.linesep) def str2ints(word): matching = re.match('^(?P\d+)\-(?P \d+)$', word) if matching: start = int(matching.group('start')) end = int(matching.group('end')) + 1 return range(start, end) else: try: return [int(word)] except (TypeError, ValueError), err: raise TypeError('{0}: {1}'.format(err, word)) def main(): parser = optparse.OptionParser() opts, args = parser.parse_args() length = len(args) ports = [] if length < 1: parser.error('invalid parameter.') elif length == 1: ports += range(1025) # well-known else: for port in args[1:]: if port.lower() == 'well-known': ports += range(1025) else: try: ports += str2ints(port) except TypeError, err: parser.error(err) host = args[0] ports = sorted(list(set(ports))) for port in ports: worker = Connector(host, port) worker.start() while not time.sleep(2): if threading.activeCount() <= 1: break else: sys.stdout.flush() if __name__ == '__main__': main()
2011年11月5日土曜日
linuxで他のユーザのカレントディレクトリを表示する
linuxでnfs mountを使っていると、そいつをumountしたいとき、
ディレクトリの上に誰かがいるとbusyといわれて、umountできない。
そんな時、どのプロセスがターゲットのディレクトリにいるのかを調べるスクリプト。
使用時はroot userで使う事が条件になる。
もしかしたらもっとスマートな方法があるかもしれない。
ディレクトリの上に誰かがいるとbusyといわれて、umountできない。
そんな時、どのプロセスがターゲットのディレクトリにいるのかを調べるスクリプト。
使用時はroot userで使う事が条件になる。
#! /usr/bin/env python #-*- coding: utf-8 -*- import os import re def search_cwdall(): dirs = os.listdir('/proc') proc_dir = re.compile('^\d*$') dirs = filter(proc_dir.match, dirs) for pid in dirs: path_cwd = os.path.join('/proc', 'pid', 'cwd') try: path = os.path.realpath(path_cwd) except OSError, err: print str(err) continue yield pid, path if __name__ == '__main__': for pid, path in search_cwdall(): print pid, path
もしかしたらもっとスマートな方法があるかもしれない。
2011年11月4日金曜日
パスワードの生成
#! /usr/bin/env python # -*- coding: utf-8 -*- try :import pswd_cfg except :pass class Pswdgen( object ): """ パスワード生成クラス """ def get_pswd( self, myname, usrname, url, length ): """ パスワードの取得 """ netloc = self.get_netloc( url ) hexpswd = self.get_hexpswd( ( myname, usrname, netloc ), length ) return self.hexstr2word( hexpswd ) def hexstr2word( self, hexstr ): """ 16進数表示の文字列からその番号に対応する文字列を取得 """ import string words = string.digits + string.ascii_letters words_len = len( words ) rstr = '' for ii in range( 0, len( hexstr ), 2 ): num = int( '0x' + hexstr[ ii:ii+2], 16 ) rstr += words[ num % words_len ] return rstr def get_hexpswd( self, datas, length ): """please orver ride""" pass def get_netloc( self, url ): """ urlからノード名を取得 """ import urlparse return urlparse.urlparse( url )[1] class Finished( Exception ):pass class UI_console( Pswdgen ): def __init__( self ): print 'please input date; myname, usrname, url, length' self.exqt() def exqt( self ): myname = raw_input( 'myname :%12s :'%( pswd_cfg.DFLT_MYNAME ) ) usrname = raw_input( 'usrname :%12s :'%( pswd_cfg.DFLT_USRNAME ) ) url = raw_input( 'url :%12s :'%( pswd_cfg.DFLT_URL ) ) length = input( 'length :%12s :'%( pswd_cfg.DFLT_LENGTH ) ) pswd = self.get_pswd( myname, usrname, url, length ) while True:raw_input( pswd ) try: import Tkinter as TK class UI_Tkinter( TK.Frame, Pswdgen ): def __init__( self ): TK.Frame.__init__( self, master=None ) self.pack() self.master.title( 'pswdgen' ) self.entries = {} self.mk_widgets() def labeled_entry( self, name ): frame = TK.Frame() TK.Label( frame, text=name, width=10 ).pack( side='left' ) self.entries[name] = TK.Entry( frame ) self.entries[name].pack( side='right' ) return frame def mk_widgets( self ): self.labeled_entry( 'myname' ).pack() self.labeled_entry( 'usrname' ).pack() self.labeled_entry( 'url' ).pack() self.labeled_entry( 'length' ).pack() frame = TK.Frame() self.EXQT = TK.Button( frame, text='EXQT', command=self.exqt ) self.EXQT.pack( side='left', fill=TK.X, expand=1 ) self.QUIT = TK.Button( frame, text='QUIT', command=self.quit ) self.QUIT.pack( side='left', fill=TK.X, expand=1 ) frame.pack( fill=TK.X ) self.labeled_entry( 'password' ).pack() #default value self.entries[ 'myname' ].insert( 0, pswd_cfg.DFLT_MYNAME ) self.entries[ 'usrname' ].insert( 0, pswd_cfg.DFLT_USRNAME ) self.entries[ 'url' ].insert( 0, pswd_cfg.DFLT_URL ) self.entries[ 'length' ].insert( 0, pswd_cfg.DFLT_LENGTH ) def exqt( self ): myname = self.entries[ 'myname' ].get() usrname = self.entries[ 'usrname' ].get() url = self.entries[ 'url' ].get() length = int( self.entries['length'].get() ) pswd = self.get_pswd( myname, usrname, url, length ) self.entries[ 'password' ].delete( 0, TK.END ) self.entries[ 'password' ].insert( 0, pswd ) except ImportError:pass class Main( object ): def __init__( self ): self.choiseUI() def choiseUI( self ): try: try:TK except NameError:pass else: runner = UI_Tkinter() runner.mainloop() runner.destroy() raise Finished UI_console() except Finished:pass if __name__ == '__main__': Main()
twitterに投稿
#! /usr/bin/env python #-*- coding: utf-8 -*- import os import time import subprocess import tweepy consumer_key = '' consumer_secret = '' access_key = '' access_secret = '' filename = time.strftime('%Y%m%d_%H%M%S.timely') dirname = os.path.dirname(__file__) dirname = '/root/.ng/var/log/report' dirname = os.path.join(dirname, 'timely') try: os.makedirs(dirname) except (IOError, OSError), err: print err filepath = os.path.join(dirname, filename) child = subprocess.Popen(['emacs', '-nw', filepath]) rc = child.wait() if rc == 0: data = '' with open(filepath, 'rt') as ff: data = ff.read() # create OAuth handler auth = tweepy.OAuthHandler(consumer_key, consumer_secret) # set access token to OAuth handler auth.set_access_token(access_key, access_secret) # create API api = tweepy.API(auth_handler=auth) # post api.update_status(data.decode('utf_8').encode('utf_8'))
サブコマンドをラッピングするためのクラス
#! /usr/bin/env python #-*- coding: utf-8 -*- import sys import os import optparse import subprocess class Messages: need_param_invalid = 'The arguments is insufficient.' param_not_supplied = '{0} option not supplied.' param_not_support = 'not support parameter.' class TransparentOptionParser(optparse.OptionParser): # over ride on arguments from 'rargs' 'values' consuming. def _process_args(self, largs, rargs, values): """_process_args(largs : [string], rargs : [string], values : Values) Process command-line arguments and populate 'values', consuming options and arguments from 'rargs'. If 'allow_interspersed_args' is false, stop at the first non-option argument. If true, accumulate any interspersed non-option arguments in 'largs'. """ def _through_option(func, *args, **kwds): """new function""" try: func(*args, **kwds) except optparse.BadOptionError, err: largs.append(err.opt_str) while rargs: arg = rargs[0] # We handle bare "--" explicitly, and bare "-" is handled by the # standard arg handler since the short arg case ensures that the # len of the opt string is greater than 1. if arg == "--": del rargs[0] return elif arg[0:2] == "--": # process a single long option (possibly with value(s)) self._process_long_opt(rargs, values) elif arg[:1] == "-" and len(arg) > 1: # process a cluster of short options (possibly with # value(s) for the last one only) _through_option(self._process_short_opts, rargs, values) # modified elif self.allow_interspersed_args: largs.append(arg) del rargs[0] else: return # stop now, leave this arg in rargs # Say this is the original argument list: # [arg0, arg1, ..., arg(i-1), arg(i), arg(i+1), ..., arg(N-1)] # ^ # (we are about to process arg(i)). # # Then rargs is [arg(i), ..., arg(N-1)] and largs is a *subset* of # [arg0, ..., arg(i-1)] (any options and their arguments will have # been removed from largs). # # The while loop will usually consume 1 or more arguments per pass. # If it consumes 1 (eg. arg is an option that takes no arguments), # then after _process_arg() is done the situation is: # # largs = subset of [arg0, ..., arg(i)] # rargs = [arg(i+1), ..., arg(N-1)] # # If allow_interspersed_args is false, largs will always be # *empty* -- still a subset of [arg0, ..., arg(i-1)], but # not a very interesting subset! def parse_args(self, args=None, values=None): if args is not None: args = list(args) return optparse.OptionParser.parse_args(self, args, values) class SubOptionParser(TransparentOptionParser): def parse_args(self, args, need=0, ignore=[]): args_org = args if ignore: args = filter(lambda arg: arg not in ignore, args) opts, args = TransparentOptionParser.parse_args(self, args_org) if ignore: args += filter(lambda arg: arg not in ignore, args_org) if need is None: return opts, args else: need = int(need) # raise TypeError try: if need == 1: need_arg = args.pop(0) # raise IndexError return opts, args, need_arg elif need > 1: need_arg = [args.pop(0) for ii in range(need)] # raise IndexError return opts, args, need_arg else: raise IndexError, Messages.need_param_invalid except IndexError, err: self.error(msg(Messages.need_param_invalid, need)) def requires(self, *opts): for opt in opts: self.check_required(opt) def check_required(self, opt): option = self.get_option(opt) # assumes the option's 'default' is set to None ! if getattr(self.values, option.dest): self.error(param_not_supplied.format(option)) class DummyChild(object): def wait(self): return 0 def call(*args, **kwds): args = list(args) args = map(str, args) try: env = os.environ['SUBCOMMAND'] except KeyError, err: env = '' env = env.lower().split(':') if 'noexec' in env: child = DummyChild() else: # execute child = subprocess.Popen(args) try: nowait = kwds['nowait'] except KeyError: nowait = False if nowait: return child else: return child.wait() class SubCommand(object): def _usage(self, *args, **kwds): funcs = dir(self) funcs = map(lambda x: x.lower(), funcs) funcs = filter(lambda x: x[0] != '_' or x == 'call', funcs) usage = '{0} subcommand [options]\n\nsubcommand list\n\n'.format(self.__class__.__name__.lower()) for name in funcs: usage += ' * {0}\n'.format(name) return usage def _call(self, *args, **kwds): parser = SubOptionParser(usage=self._usage()) opts, args, subcmd = parser.parse_args(args, need=1, ignore=['-h', '--help']) name = subcmd.lower() attrs = dir(self) subcmds = filter(lambda attr: attr.lower() == name, attrs) length = len(subcmds) if length < 1: parser.error(param_not_support, name) assert length == 1, str(length) name = subcmds[0] try: class_or_func = getattr(self, name) except AttributeError, err: parser.print_usage() assert False, str(err) if hasattr(class_or_func, '_call'): # class subcmd = class_or_func() return subcmd._call(*args, **kwds) else: return class_or_func(*argrs, **kwds) def msg(*args): args = map(str, args) return ': '.join(args) def dispatch(subcommands, *args, **kwds): subcommands = dict([(subcmd.__name__.lower(), subcmd) for subcmd in subcommands]) args = list(args) name = args.pop(0) # raise IndexError name = name.lower() cmd_class = subcommands[name] # raise KeyError cmd = cmd_class() return cmd._call(*args, **kwds) def test(): class TESTA(SubCommand): class TESTAA(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) class TESTAB(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) class TESTAC(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) class TESTB(SubCommand): class TESTBA(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) class TESTBB(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) class TESTBC(SubCommand): def _call(self, *args, **kwds): call('python', '-c', 'print "{0}"'.format(self.__class__.__name__)) dispatch([TESTA, TESTB], *sys.argv[1:]) if __name__ == '__main__': test()
登録していないオプションを透過するオプション解析
#! coding: utf-8 -*- import optparse class TransparentOptionParser(optparse.OptionParser): # over ride on arguments from 'rargs' 'values' consuming. def _process_args(self, largs, rargs, values): """_process_args(largs : [string], rargs : [string], values : Values) Process command-line arguments and populate 'values', consuming options and arguments from 'rargs'. If 'allow_interspersed_args' is false, stop at the first non-option argument. If true, accumulate any interspersed non-option arguments in 'largs'. """ def _through_option(func, *args, **kwds): """new function""" try: func(*args, **kwds) except optparse.BadOptionError, err: largs.append(err.opt_str) while rargs: arg = rargs[0] # We handle bare "--" explicitly, and bare "-" is handled by the # standard arg handler since the short arg case ensures that the # len of the opt string is greater than 1. if arg == "--": del rargs[0] return elif arg[0:2] == "--": # process a single long option (possibly with value(s)) self._process_long_opt(rargs, values) elif arg[:1] == "-" and len(arg) > 1: # process a cluster of short options (possibly with # value(s) for the last one only) _through_option(self._process_short_opts, rargs, values) # modified elif self.allow_interspersed_args: largs.append(arg) del rargs[0] else: return # stop now, leave this arg in rargs # Say this is the original argument list: # [arg0, arg1, ..., arg(i-1), arg(i), arg(i+1), ..., arg(N-1)] # ^ # (we are about to process arg(i)). # # Then rargs is [arg(i), ..., arg(N-1)] and largs is a *subset* of # [arg0, ..., arg(i-1)] (any options and their arguments will have # been removed from largs). # # The while loop will usually consume 1 or more arguments per pass. # If it consumes 1 (eg. arg is an option that takes no arguments), # then after _process_arg() is done the situation is: # # largs = subset of [arg0, ..., arg(i)] # rargs = [arg(i+1), ..., arg(N-1)] # # If allow_interspersed_args is false, largs will always be # *empty* -- still a subset of [arg0, ..., arg(i-1)], but # not a very interesting subset! def parse_args(self, args=None, values=None): if args is not None: args = list(args) return optparse.OptionParser.parse_args(self, args, values)
xhtmlを生成するクラス
#-*- coding: utf-8 -*- import os import csv import xml.dom import optparse class XHTML(object): def __init__(self): impl = xml.dom.getDOMImplementation() self.doc = impl.createDocument('', 'html', '') self.root = self.doc.documentElement def add(self, *children): for child in children: self.root.appendChild(child) def text(self, parent, line): first = True for l in line.split('\n'): #if l.strip() == '': # continue if first is False: br = self.br() parent.appendChild(br) else: first = False txt = self.doc.createTextNode(l) parent.appendChild(txt) def set_text_attr(self, parent, text='', children=[], **attrs): for key, value in attrs.iteritems(): if key[0] == '_': key = key[1:] parent.setAttribute(key, str(value)) for elm in children: parent.appendChild(elm) if text != '': self.text(parent, text) def tag(self, name, *args, **kwds): elm = self.doc.createElement(name) self.set_text_attr(elm, *args, **kwds) return elm def singletag(self, name, *args, **kwds): tags = self.doc.getElementsByTagName(name) length = len(tags) assert length in (0, 1), length elm = None if length == 0: elm = self.tag(name, *args, **kwds) self.add(elm) else: elm = tags[0] self.set_text_attr(elm, *args, **kwds) return elm # mark up def strong(self, *args, **kwds): return self.tag('strong', *args, **kwds) def font(self, *args, **kwds): return self.tag('font', *args, **kwds) def b(self, *args, **kwds): return self.tag('b', *args, **kwds) def i(self, *args, **kwds): return self.tag('i', *args, **kwds) def em(self, *args, **kwds): return self.tag('em', *args, **kwds) def u(self, *args, **kwds): return self.tag('u', *args, **kwds) def s(self, *args, **kwds): return self.tag('s', *args, **kwds) def tt(self, *args, **kwds): return self.tag('tt', *args, **kwds) def blink(self, *args, **kwds): return self.tag('blink', *args, **kwds) def marquee(self, *args, **kwds): return self.tag('marquee', *args, **kwds) ## layout def br(self, *args, **kwds): return self.tag('br', *args, **kwds) def p(self, *args, **kwds): return self.tag('p', *args, **kwds) def div(self, *args, **kwds): return self.tag('div', *args, **kwds) def ruby(self, *args, **kwds): return self.tag('ruby', *args, **kwds) def blockquote(self, *args, **kwds): return self.tag('blockquote', *args, **kwds) def pre(self, *args, **kwds): return self.tag('pre', *args, **kwds) def pre(self, *args, **kwds): return self.tag('pre', *args, **kwds) def bdo(self, *args, **kwds): return self.tag('pre', *args, **kwds) ## link def a(self, *args, **kwds): return self.tag('a', *args, **kwds) def img(self, *args, **kwds): return self.tag('img', *args, **kwds) ## table def table(self, *args, **kwds): return self.tag('table', *args, **kwds) def caption(self, *args, **kwds): return self.tag('caption', *args, **kwds) def th(self, *args, **kwds): return self.tag('th', *args, **kwds) def td(self, *args, **kwds): return self.tag('td', *args, **kwds) def td(self, *args, **kwds): return self.tag('td', *args, **kwds) ## headline def h1(self, *args, **kwds): return self.tag('h1', *args, **kwds) def h2(self, *args, **kwds): return self.tag('h2', *args, **kwds) def h3(self, *args, **kwds): return self.tag('h3', *args, **kwds) def h4(self, *args, **kwds): return self.tag('h4', *args, **kwds) ## list def ul(self, *args, **kwds): return self.tag('ul', *args, **kwds) def ol(self, *args, **kwds): return self.tag('ol', *args, **kwds) def li(self, *args, **kwds): return self.tag('li', *args, **kwds) ## definitial list def dl(self, *args, **kwds): return self.tag('dl', *args, **kwds) def dt(self, *args, **kwds): return self.tag('dt', *args, **kwds) def dd(self, *args, **kwds): return self.tag('dd', *args, **kwds) ## frame def frameset(self, *args, **kwds): return self.tag('frameset', *args, **kwds) def iframe(self, *args, **kwds): return self.tag('iframe', *args, **kwds) ## elements def head(self, *args, **kwds): return self.singletag('head', *args, **kwds) def title(self, *args, **kwds): return self.singletag('title', *args, **kwds) def body(self, *args, **kwds): return self.singletag('body', *args, **kwds)
登録:
投稿 (Atom)