Building python with sqlite3

2009-02-18 Thread Justin Li

I'm building and installing Ptyhon 2.6.1 on Linux. After configure,
make, make install, to import sqlite3 leads to ImportError. It looks
like I have to build Python with sqlite. I have sqlite3 installed on
my system. How should I build Python with it? I did not find any
options relating with sqlite3 of configure and Makefile.

Thanks in Advance!
Justin
--
http://mail.python.org/mailman/listinfo/python-list


Re: Building python with sqlite3

2009-02-18 Thread Justin Li
On Feb 18, 5:13 pm, Christian Heimes  wrote:
> Justin Li schrieb:
>
> > I'm building and installing Ptyhon 2.6.1 on Linux. After configure,
> > make, make install, to import sqlite3 leads to ImportError. It looks
> > like I have to build Python with sqlite. I have sqlite3 installed on
> > my system. How should I build Python with it? I did not find any
> > options relating with sqlite3 of configure and Makefile.
>
> Do you have the development files installed as well? Run "make" again
> and look at the list of missing modules.
>
> Christian

Thanks for your reply, Christian.

And yes, I have. I looked into this. I'm working on a 64bit machine.
And the sqlite3 is 64bit as well. Should I install a 32bit sqlite3? I
think when I building python, the configure program should detect if
my system 32bit or 64bit one and look for proper sqlite3 version.

Is that the problem?

Thanks again,
Justin
--
http://mail.python.org/mailman/listinfo/python-list


Re: Building python with sqlite3

2009-02-18 Thread Justin Li
On Feb 18, 6:29 pm, Justin Li  wrote:
> On Feb 18, 5:13 pm, Christian Heimes  wrote:
>
> > Justin Li schrieb:
>
> > > I'm building and installing Ptyhon 2.6.1 on Linux. After configure,
> > > make, make install, to importsqlite3leads to ImportError. It looks
> > > like I have to build Python with sqlite. I havesqlite3installed on
> > > my system. How should I build Python with it? I did not find any
> > > options relating withsqlite3of configure and Makefile.
>
> > Do you have the development files installed as well? Run "make" again
> > and look at the list of missing modules.
>
> > Christian
>
> Thanks for your reply, Christian.
>
> And yes, I have. I looked into this. I'm working on a 64bit machine.
> And thesqlite3is 64bit as well. Should I install a 32bitsqlite3? I
> think when I building python, the configure program should detect if
> my system 32bit or 64bit one and look for propersqlite3version.
>
> Is that the problem?
>
> Thanks again,
> Justin


I fixed it. I download sqlite3 from website and install it. As a
result, it works fine now.
--
http://mail.python.org/mailman/listinfo/python-list