How to install 32bit library on ubuntu? (_sqlite3)

Christopher Chan christopher.chan at bradbury.edu.hk
Mon May 24 01:56:45 UTC 2010


On Sunday, May 23, 2010 11:57 AM, Peng Yu wrote:
> Hi
>
> http://bruynooghe.blogspot.com/2009/02/compiling-32-bit-python-on-amd64.html
>
> I follow the above instructions to install 32bit python on my 64bit
> ubuntu system. I still got the following error. Would you please let
> me know how to install these packages?
>
>
> Failed to find the necessary bits to build these modules:
> _bsddb             _hashlib           _ssl
> bsddb185           sunaudiodev

No ia32-libs installed? The 32-bit openssl/berkeley db library files are 
included...maybe you are missing the header files?
dpkg -l libssl-dev
dpkg -l libdb-dev


> To find the necessary bits, look in setup.py in detect_modules() for
> the module's name.
>
>
> Failed to build these modules:
> _sqlite3           _tkinter           dbm
> gdbm
>

sqlite3 - you need to grab the 32-bit libsqlite3-dev package and extract 
the library files and put them in /usr/lib32.

1) apt-get install libsqlite3-dev (installs 64-bit libraries and c headers)
2) Download the 32-bit package version and use dpkg -x to extract the 
files from the package. Copy the library files to the /usr/lib32. (Do 
not try to install the 32-bit package.)

tkinter - same situation as sqlite3
1) apt-get install tk-dev
2) Download the 32-bit package of tk8.x version for your release and 
extract the files and copy the library files into /usr/lib32.




More information about the ubuntu-users mailing list