Use complete SQLite3 as a user on Linux to build Python 2.5

This is a complicated question, at least for me. Here:

I work as a user on a linux server and can safely assume It is simply impossible to install any packages that have not been installed.

In addition, I need to set up Python 2.5 (not installed) with a working SQLite3 library (any form of Sqlite that is not installed).

What I can do is:
1. Compile Python 2.5 and make it work
2. Compile the merge of SQLite3

Anyway-Python 2.5 should interact with Sqlite3 built-in (pysqlite). This seems to be true, but import sqlite3:
import sqlite3
Failed because – eventually – Cannot import _sqlite3

Some Google searches made me understand that although pysqlite may be built-in, but sqlite is not. So I assume I need to build sqlite locally and somehow make these two software interact.

It’s fair.

I can-I hope so-compile Merge to a shared object, but it looks messy. Should I rename sqlite3.so to _sqlite3 and throw it somewhere? It looks a bit fishy, ​​I tried it and got an error:
The dynamic module does not define the init function (init_sqlite3)

At this point, I am a bit stuck. I am not very familiar with the build /Compile things-I admit that sudo apt-get / sudo yum makes me lazy, but for some reason it is not an option for the time being.

Help appreciated!

First use –prefix to download, build and install sqlite3. Then build python with the same prefix, it The sqlite installation will be found and the _sqlite3 module will be built.

$mkdir -p ~/applications/src
$cd ~/applications/src
$wget http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz
$tar xvvf sqlite-autoconf-3070900.tar.gz
$cd sqlite-autoconf-3070900
$./configure --prefix=~/applications
$make
$make install

$cd ~/applications/src
$wget http ://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
$tar xvvf Python-2.5.2.tgz
$cd Python-2.5.2< br />$./configure --prefix=~/applications
$make
$make install

$~/applications/bin/python
>>> import sqlite3
>>> # no error!

This is a complicated question, at least for me. Here:

I work as a user on a linux server and can safely assume that installing any packages that have not been installed is simply impossible.

In addition, I need to use a working SQLite3 library (any form not installed Sqlite) set up Python 2.5 (not installed).

What I can do is:
1. Compile Python 2.5 and make it work
2. Compile SQLite3 merge

< p> Anyway-Python 2.5 should be built-in with Sqlite3 (pys qlite) interactively. This seems to be true, but import sqlite3:
import sqlite3
failed because – eventually – unable to import _sqlite3

Some Google searches made me understand, although pysqlite might It is built-in, but sqlite is not. So I assume I need to build sqlite locally and somehow make these two software interact.

It’s fair.

I can– I hope so-the compilation is merged into a shared object, but it looks messy. Should I rename sqlite3.so to _sqlite3 and throw it somewhere? It looks a bit fishy, ​​I tried it and got an error:
The dynamic module does not define the init function (init_sqlite3)

At this point, I am a bit stuck. I am not very familiar with the build /Compile things-I admit that sudo apt-get / sudo yum makes me lazy, but for some reason it is not an option for the time being.

Help appreciated!

First use –prefix to download, build and install sqlite3. Then build python with the same prefix, it will find the sqlite installation and build the _sqlite3 module. < p>

$mkdir -p ~/applications/src
$cd ~/applications/src
$wget http://www.sqlite. org/sqlite-autoconf-3070900.tar.gz
$tar xvvf sqlite-autoconf-3070900.tar.gz
$cd sqlite-autoconf-3070900
$./configure --prefix= ~/applications
$make
$make install

$cd ~/applications/src
$wget http://www.python.org/ftp/python /2.5.2/Python-2.5.2.tgz
$tar xvvf Python-2.5.2.tgz
$cd Python-2.5.2
$./configure --prefix=~ /applications
$make
$make install

$~/applications/bin/python
>>> import sqlite3
>>> # no error !

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 917 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.