2009-09-25 75 views
0

我正在嘗試創建我的項目的本地化版本。如何使用buildout創建我的項目的本地化版本?

我從下面開始:

mkdir my 
cd my 
wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py 

的最後一個命令我收到以下消息後:

Warning: wildcards not supported in HTTP. --08:42:17-- http://svn.zope.org/checkout/zc.buildout/trunk/bootstrap/bootstrap.py => `bootstrap.py' Resolving svn.zope.org... 74.84.203.155 Connecting to svn.zope.org|74.84.203.155|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/x-python]

[ <=>                                 ] 2,572   --.--K/s    

08:42:17 (122.64 MB/s) - `bootstrap.py' saved [2572]

你可以看到有一條警告消息。我不知道這意味着什麼,如果我應該謹慎的話。無論如何,我試圖繼續。

python bootstrap.py init 
vi buildout.cfg 

在buildout.cfg我把以下內容:

[buildout] 
parts = sqlite 

[sqlite] 
recipe = zc.recipe.egg 
eggs = pysqlite 
interpreter = mypython 

然後我執行:

./bin/buildout 

在這個階段,我有問題:

Getting distribution for 'zc.recipe.egg'. Got zc.recipe.egg 1.2.2. Installing sqlite. Getting distribution for 'pysqlite'. In file included from src/module.c:24: src/connection.h:33:21: error: sqlite3.h: No such file or directory 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: warning: implicit declaration of function ‘sqlite3_complete’ src/module.c: At top level: 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 function) src/module.c:269: error: ‘SQLITE_CREATE_TABLE’ undeclared here (not in a function) src/module.c:270: error: ‘SQLITE_CREATE_TEMP_INDEX’ undeclared here (not in a function) src/module.c:271: error: ‘SQLITE_CREATE_TEMP_TABLE’ undeclared here (not in a function) src/module.c:272: error: ‘SQLITE_CREATE_TEMP_TRIGGER’ undeclared here (not in a function) src/module.c:273: error: ‘SQLITE_CREATE_TEMP_VIEW’ undeclared here (not in a function) src/module.c:274: error: ‘SQLITE_CREATE_TRIGGER’ undeclared here (not in a function) 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 function) src/module.c:280: error: ‘SQLITE_DROP_TEMP_TABLE’ undeclared here (not in a function) src/module.c:281: error: ‘SQLITE_DROP_TEMP_TRIGGER’ undeclared here (not in a function) src/module.c:282: error: ‘SQLITE_DROP_TEMP_VIEW’ undeclared here (not in a function) src/module.c:283: error: ‘SQLITE_DROP_TRIGGER’ undeclared here (not in a function) 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: warning: implicit declaration of function ‘sqlite3_libversion’ src/module.c:419: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast error: Setup script exited with error: command 'gcc' failed with exit status 1 An error occured when trying to install pysqlite 2.5.5.Look above this message for any errors thatwere output by easy_install. While: Installing sqlite. Getting distribution for 'pysqlite'. Error: Couldn't install: pysqlite 2.5.5

有誰可以告訴我,懇求,這些錯誤我ssages的意思是如何解決上述問題?

回答

0

在開始安裝python綁定之前,您需要安裝sqlite。

4

您需要安裝sqlite開發庫。

在Ubuntu或Debian,請運行:

sudo apt-get install libsqlite3-dev 
相關問題