<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：Berkeley DB Xml 入门系列之二： 在Linux下编译和使用Berkeley DB Xml</title>
	<atom:link href="http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/</link>
	<description>Oracle Berkeley DB 中国研发团队的博客</description>
	<lastBuildDate>Thu, 15 Dec 2011 10:53:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：天门冬</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-1226</link>
		<dc:creator>天门冬</dc:creator>
		<pubDate>Tue, 29 Jun 2010 02:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-1226</guid>
		<description>你好，
我在Ubuntu下安装dbxml-2.4.16.tar.gz的时候，报如下错误：
../src/items/Numeric.cpp: In static member function &#039;static const XMLCh* Numeric ::asDoubleString(Numeric::State, const MAPM&amp;, int, const StaticContext*)&#039;:
../src/items/Numeric.cpp:349: error: &#039;sprintf&#039; was not declared in this scope
../src/items/Numeric.cpp:360: error: &#039;sprintf&#039; was not declared in this scope
mark[1]: *** [Numeric.lo] 错误 1
mark[1]:正在离开目录 &#039;/opt/Installable/dbxml-2.4.16/xqilla/build&#039;
mark: *** [all-recursive] 错误 1

请问是什么问题？谢谢</description>
		<content:encoded><![CDATA[<p>你好，<br />
我在Ubuntu下安装dbxml-2.4.16.tar.gz的时候，报如下错误：<br />
../src/items/Numeric.cpp: In static member function &#8217;static const XMLCh* Numeric ::asDoubleString(Numeric::State, const MAPM&amp;, int, const StaticContext*)&#8217;:<br />
../src/items/Numeric.cpp:349: error: &#8217;sprintf&#8217; was not declared in this scope<br />
../src/items/Numeric.cpp:360: error: &#8217;sprintf&#8217; was not declared in this scope<br />
mark[1]: *** [Numeric.lo] 错误 1<br />
mark[1]:正在离开目录 &#8216;/opt/Installable/dbxml-2.4.16/xqilla/build&#8217;<br />
mark: *** [all-recursive] 错误 1</p>
<p>请问是什么问题？谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-150</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Wed, 12 Aug 2009 02:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-150</guid>
		<description>&lt;a href=&quot;#comment-147&quot; rel=&quot;nofollow&quot;&gt;@tt&lt;/a&gt; 
hi,你的python是不是装在/usr/include/python2.5?看那个目录下有没有Python.h和pythread.h文件。</description>
		<content:encoded><![CDATA[<p><a href="#comment-147" rel="nofollow">@tt</a><br />
hi,你的python是不是装在/usr/include/python2.5?看那个目录下有没有Python.h和pythread.h文件。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：tt</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-147</link>
		<dc:creator>tt</dc:creator>
		<pubDate>Tue, 11 Aug 2009 16:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-147</guid>
		<description>下一步仍然出错，按照instruction安装python的binding。
build/install bsddb3 package 
$ cd dbxml-2.x/dbxml/src/python/bsddb3-4.x
$ python setup.dbxml.py build
$ python setup.dbxml.py install
    You can then build and install the dbxml module:
$ cd ..
$ python setup.py build
$ python setup.py install

贴出来请教一下：
laptop:python$ python setup.py build
running build
running build_py
running build_ext
building &#039;_dbxml&#039; extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../include -I/media/sda2/software/@develop/database/BerkeleydbXML/dbxml-2.4.16/install/include -I/usr/include/python2.5 -c dbxml_python_wrap.cpp -o build/temp.linux-i686-2.5/dbxml_python_wrap.o
cc1plus: 警告： 命令行选项“-Wstrict-prototypes”对 Ada/C/ObjC 是有效的，但对 C++ 无效
dbxml_python_wrap.cpp:146:20: error: Python.h: 没有该文件或目录
dbxml_python_wrap.cpp:2830:23: error: pythread.h: 没有该文件或目录
dbxml_python_wrap.cpp:3007:4: error: #error &quot;This python version requires swig to be run with the &#039;-classic&#039; option&quot;
dbxml_python_wrap.cpp:751: 错误： expected initializer before ‘*’ token
dbxml_python_wrap.cpp:806: 错误： expected initializer before ‘*’ token
dbxml_python_wrap.cpp:827: 错误： expected initializer before ‘*’ token
In file included from /usr/include/c++/4.3/new:45,
                 from /usr/include/c++/4.3/ext/new_allocator.h:37,
                 from /usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,
                 from /usr/include/c++/4.3/bits/allocator.h:53,
                 from /usr/include/c++/4.3/string:48,
                 from dbxml_python_wrap.cpp:2502:
/usr/include/c++/4.3/exception:40: 错误： expected declaration before end of line
error: command &#039;gcc&#039; failed with exit status 1</description>
		<content:encoded><![CDATA[<p>下一步仍然出错，按照instruction安装python的binding。<br />
build/install bsddb3 package<br />
$ cd dbxml-2.x/dbxml/src/python/bsddb3-4.x<br />
$ python setup.dbxml.py build<br />
$ python setup.dbxml.py install<br />
    You can then build and install the dbxml module:<br />
$ cd ..<br />
$ python setup.py build<br />
$ python setup.py install</p>
<p>贴出来请教一下：<br />
laptop:python$ python setup.py build<br />
running build<br />
running build_py<br />
running build_ext<br />
building &#8216;_dbxml&#8217; extension<br />
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../include -I/media/sda2/software/@develop/database/BerkeleydbXML/dbxml-2.4.16/install/include -I/usr/include/python2.5 -c dbxml_python_wrap.cpp -o build/temp.linux-i686-2.5/dbxml_python_wrap.o<br />
cc1plus: 警告： 命令行选项“-Wstrict-prototypes”对 Ada/C/ObjC 是有效的，但对 C++ 无效<br />
dbxml_python_wrap.cpp:146:20: error: Python.h: 没有该文件或目录<br />
dbxml_python_wrap.cpp:2830:23: error: pythread.h: 没有该文件或目录<br />
dbxml_python_wrap.cpp:3007:4: error: #error &#8220;This python version requires swig to be run with the &#8216;-classic&#8217; option&#8221;<br />
dbxml_python_wrap.cpp:751: 错误： expected initializer before ‘*’ token<br />
dbxml_python_wrap.cpp:806: 错误： expected initializer before ‘*’ token<br />
dbxml_python_wrap.cpp:827: 错误： expected initializer before ‘*’ token<br />
In file included from /usr/include/c++/4.3/new:45,<br />
                 from /usr/include/c++/4.3/ext/new_allocator.h:37,<br />
                 from /usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,<br />
                 from /usr/include/c++/4.3/bits/allocator.h:53,<br />
                 from /usr/include/c++/4.3/string:48,<br />
                 from dbxml_python_wrap.cpp:2502:<br />
/usr/include/c++/4.3/exception:40: 错误： expected declaration before end of line<br />
error: command &#8216;gcc&#8217; failed with exit status 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：tt</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-145</link>
		<dc:creator>tt</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-145</guid>
		<description>刚才再仔细看了一下出错信息，原来是父目录&quot;Berkeley dbXML&quot; 有个空格导致的。现在好了。提醒一下后来人注意。</description>
		<content:encoded><![CDATA[<p>刚才再仔细看了一下出错信息，原来是父目录&#8221;Berkeley dbXML&#8221; 有个空格导致的。现在好了。提醒一下后来人注意。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：tt</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-144</link>
		<dc:creator>tt</dc:creator>
		<pubDate>Tue, 11 Aug 2009 08:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-144</guid>
		<description>请教一下，下面安装出错是怎么回事？ 系统是Hiweed ubuntu 2.0 rc3

16:53:11 titi@titi-laptop:dbxml-2.4.16$ sh buildall.sh 
Start DB build: 2009年 08月 11日 星期二 16:53:18 CST
Configuring Berkeley DB
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: dbXML/dbxml-2.4.16/install
checking build system type... Invalid configuration `dbXML/dbxml-2.4.16/install&#039;: machine `dbXML/dbxml&#039; not recognized
configure: error: /bin/bash ../dist/config.sub dbXML/dbxml-2.4.16/install failed
16:53:18 titi@titi-laptop:dbxml-2.4.16$</description>
		<content:encoded><![CDATA[<p>请教一下，下面安装出错是怎么回事？ 系统是Hiweed ubuntu 2.0 rc3</p>
<p>16:53:11 titi@titi-laptop:dbxml-2.4.16$ sh buildall.sh<br />
Start DB build: 2009年 08月 11日 星期二 16:53:18 CST<br />
Configuring Berkeley DB<br />
configure: WARNING: you should use &#8211;build, &#8211;host, &#8211;target<br />
configure: WARNING: invalid host type: dbXML/dbxml-2.4.16/install<br />
checking build system type&#8230; Invalid configuration `dbXML/dbxml-2.4.16/install&#8217;: machine `dbXML/dbxml&#8217; not recognized<br />
configure: error: /bin/bash ../dist/config.sub dbXML/dbxml-2.4.16/install failed<br />
16:53:18 titi@titi-laptop:dbxml-2.4.16$</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：chaohuang</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-131</link>
		<dc:creator>chaohuang</dc:creator>
		<pubDate>Wed, 29 Jul 2009 02:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-131</guid>
		<description>&lt;a href=&quot;#comment-127&quot; rel=&quot;nofollow&quot;&gt;@Ken&lt;/a&gt; 
Hi Ken, 不妨考虑给你的小黑换个SSD试试，应该会快很多。当然，前提是你的小黑还不是一颗SSD的“心”（硬盘）。开个玩笑了... :-)</description>
		<content:encoded><![CDATA[<p><a href="#comment-127" rel="nofollow">@Ken</a><br />
Hi Ken, 不妨考虑给你的小黑换个SSD试试，应该会快很多。当然，前提是你的小黑还不是一颗SSD的“心”（硬盘）。开个玩笑了&#8230; <img src='http://www.bdbchina.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：蔡瀛</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-128</link>
		<dc:creator>蔡瀛</dc:creator>
		<pubDate>Tue, 28 Jul 2009 09:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-128</guid>
		<description>&lt;a href=&quot;#comment-127&quot; rel=&quot;nofollow&quot;&gt;@Ken&lt;/a&gt; 
：）我用的dell620, 4G内存，Federo11 GCC4.4差不多20分钟左右</description>
		<content:encoded><![CDATA[<p><a href="#comment-127" rel="nofollow">@Ken</a><br />
：）我用的dell620, 4G内存，Federo11 GCC4.4差不多20分钟左右</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Ken</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-127</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Tue, 28 Jul 2009 05:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-127</guid>
		<description>好像编译没那么快……我的小黑编译了20分钟还没完</description>
		<content:encoded><![CDATA[<p>好像编译没那么快……我的小黑编译了20分钟还没完</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：风中的叶伯伯</title>
		<link>http://www.bdbchina.com/2009/07/berkeley-db-xml-complie-on-linux/comment-page-1/#comment-119</link>
		<dc:creator>风中的叶伯伯</dc:creator>
		<pubDate>Mon, 27 Jul 2009 15:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.bdbchina.com/?p=379#comment-119</guid>
		<description>写的不错，有机会实验一下</description>
		<content:encoded><![CDATA[<p>写的不错，有机会实验一下</p>
]]></content:encoded>
	</item>
</channel>
</rss>
Դ
