2009/05/26

TracインストールしようとしてPython周りでごにょごにょした件

Tracをインストールしたくて、pythonのバージョンが激しく古かったので、trac用にローカルにだけ色々新しいものをインストールしてみた。


[1]pythonのバージョンアップ。
$wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
$./configure --prefix=/hogehoge
$make
$make install

[2]setuptoolsのインストール
$wget http://peak.telecommunity.com/dist/ez_setup.py
$python ez_setup.py

[3]PySQLiteのインストール
$easy_install PySQLite

src/module.c:24 から include されたファイル中:
src/connection.h:33:21: error: sqlite3.h: そのようなファイルやディレクトリはあり
In file included from src/module.c:24:
src/connection.h:38: error: expected specifier-qualifier-list before 'sqlite3'
In file included from src/module.c:25:
src/statement.h:37: error: expected specifier-qualifier-list before 'sqlite3'
src/module.c: In function 'module_complete':
src/module.c:99: 警告: implicit declaration of function 'sqlite3_complete'
src/module.c: トップレベル:
src/module.c:265: error: 'SQLITE_OK' undeclared here (not in a function)
src/module.c:266: error: 'SQLITE_DENY' undeclared here (not in a function)
src/module.c:267: error: 'SQLITE_IGNORE' undeclared here (not in a function)
src/module.c:268: error: 'SQLITE_CREATE_INDEX' undeclared here (not in a functio
src/module.c:269: error: 'SQLITE_CREATE_TABLE' undeclared here (not in a functio
src/module.c:270: error: 'SQLITE_CREATE_TEMP_INDEX' undeclared here (not in a fu
src/module.c:271: error: 'SQLITE_CREATE_TEMP_TABLE' undeclared here (not in a fu
src/module.c:272: error: 'SQLITE_CREATE_TEMP_TRIGGER' undeclared here (not in a
src/module.c:273: error: 'SQLITE_CREATE_TEMP_VIEW' undeclared here (not in a fun
src/module.c:274: error: 'SQLITE_CREATE_TRIGGER' undeclared here (not in a funct
src/module.c:275: error: 'SQLITE_CREATE_VIEW' undeclared here (not in a function
src/module.c:276: error: 'SQLITE_DELETE' undeclared here (not in a function)
src/module.c:277: error: 'SQLITE_DROP_INDEX' undeclared here (not in a function)
src/module.c:278: error: 'SQLITE_DROP_TABLE' undeclared here (not in a function)
src/module.c:279: error: 'SQLITE_DROP_TEMP_INDEX' undeclared here (not in a func
src/module.c:280: error: 'SQLITE_DROP_TEMP_TABLE' undeclared here (not in a func
src/module.c:281: error: 'SQLITE_DROP_TEMP_TRIGGER' undeclared here (not in a fu
src/module.c:282: error: 'SQLITE_DROP_TEMP_VIEW' undeclared here (not in a funct
src/module.c:283: error: 'SQLITE_DROP_TRIGGER' undeclared here (not in a functio
src/module.c:284: error: 'SQLITE_DROP_VIEW' undeclared here (not in a function)
src/module.c:285: error: 'SQLITE_INSERT' undeclared here (not in a function)
src/module.c:286: error: 'SQLITE_PRAGMA' undeclared here (not in a function)
src/module.c:287: error: 'SQLITE_READ' undeclared here (not in a function)
src/module.c:288: error: 'SQLITE_SELECT' undeclared here (not in a function)
src/module.c:289: error: 'SQLITE_TRANSACTION' undeclared here (not in a function
src/module.c:290: error: 'SQLITE_UPDATE' undeclared here (not in a function)
src/module.c:291: error: 'SQLITE_ATTACH' undeclared here (not in a function)
src/module.c:292: error: 'SQLITE_DETACH' undeclared here (not in a function)
src/module.c: In function 'init_sqlite':
src/module.c:419: 警告: implicit declaration of function 'sqlite3_libversion'
src/module.c:419: 警告: passing argument 1 of 'PyString_FromString' makes pointe
thout a cast
error: Setup script exited with error: command 'gcc' failed with exit status 1


むむ・・・SQLiteさえ入っておらんのか。

$wget http://www.sqlite.org/sqlite-3.6.14.2.tar.gz
$tar xzvf sqlite-3.6.14.2.tar.gz
$cd sqlite-3.6.14.2
$./configure --prefix=/hoge
$make

../src/tclsqlite.c:300: 警告: initialization from incompatible pointer type
../src/tclsqlite.c:310: 警告: 構造体初期化子内の要素が多すぎます
../src/tclsqlite.c:310: 警告: (near initialization for 'IncrblobChannelType')
../src/tclsqlite.c: In function 'DbUpdateHandler':
../src/tclsqlite.c:624: 警告: passing argument 3 of 'tclStubsPtr->tcl_ListObjAppendElement' makes pointer from integer without a cast
../src/tclsqlite.c: In function 'tclSqlFunc':
../src/tclsqlite.c:710: 警告: passing argument 1 of 'tclStubsPtr->tcl_NewByteArrayObj' discards qualifiers from pointer target type
../src/tclsqlite.c:718: 警告: assignment makes pointer from integer without a cast
../src/tclsqlite.c:776: error: 'Tcl_WideInt' undeclared (first use in this function)
../src/tclsqlite.c:776: error: (Each undeclared identifier is reported only once
../src/tclsqlite.c:776: error: for each function it appears in.)
../src/tclsqlite.c:776: error: expected ';' before 'v'
../src/tclsqlite.c:777: error: 'v' undeclared (first use in this function)
../src/tclsqlite.c: In function 'DbObjCmd':
../src/tclsqlite.c:1047: 警告: passing argument 3 of 'tclStubsPtr->tcl_GetIndexFromObj' from incompatible pointer type
../src/tclsqlite.c:1744: 警告: passing argument 2 of 'tclStubsPtr->tcl_GetVar2Ex' discards qualifiers from pointer target type
../src/tclsqlite.c:1768: error: 'Tcl_WideInt' undeclared (first use in this function)
../src/tclsqlite.c:1768: error: expected ';' before 'v'
../src/tclsqlite.c:1769: error: 'v' undeclared (first use in this function)
../src/tclsqlite.c:1814: 警告: assignment makes pointer from integer without a cast
../src/tclsqlite.c:2114: error: expected ';' before 'rowid'
../src/tclsqlite.c:2119: error: 'rowid' undeclared (first use in this function)
../src/tclsqlite.c:2422: 警告: passing argument 3 of 'tclStubsPtr->tcl_GetIndexFromObj' from incompatible pointer type
../src/tclsqlite.c: In function 'DbMain':
../src/tclsqlite.c:2694: 警告: passing argument 2 of 'tclStubsPtr->tcl_TranslateFileName' discards qualifiers from pointer target type
../src/tclsqlite.c:2716: 警告: passing argument 2 of 'tclStubsPtr->tcl_CreateObjCommand' discards qualifiers from pointer target type
make: *** [tclsqlite.lo] エラー 1
[mogo@hoge bld]$
[mogo@hoge bld]$ cd ../../


あぁそうですか。仲良くしたくないですか。めんどいので少々乱暴ですが、

$./configure --prefix=/hoge --disable-tcl
$make
$make install
で通りました。

あぁ、忘れるところでした。
$easy_install PySQLite

[4]Pygmentsのインストール
$easy_install Pygments


ふぅ・・・。

0 件のコメント: