I am trying to install python 3.13.2 from sources since I don't have root access on my machine (OS RedHat 7.9). I need the package sqlite3 in order to run jupyter, but it is not installed on the system hence Python disables it.
Here is the command I launch to install:
./configure --prefix my_install_directory --enable-optimizations --disable-test-modules && make -j16
Here is what the configure script says:
checking for sqlite3 >= 3.15.2... no
checking for sqlite3.h... no
And here is what it says at the end of the make command:
The following modules are *disabled* in configure script:
_sqlite3
How can I install sqlite3 on my machine without root privileges and have python find it when I install it ?
I am trying to install python 3.13.2 from sources since I don't have root access on my machine (OS RedHat 7.9). I need the package sqlite3 in order to run jupyter, but it is not installed on the system hence Python disables it.
Here is the command I launch to install:
./configure --prefix my_install_directory --enable-optimizations --disable-test-modules && make -j16
Here is what the configure script says:
checking for sqlite3 >= 3.15.2... no
checking for sqlite3.h... no
And here is what it says at the end of the make command:
The following modules are *disabled* in configure script:
_sqlite3
How can I install sqlite3 on my machine without root privileges and have python find it when I install it ?
Share Improve this question edited Feb 18 at 14:15 PrOpoLo asked Feb 12 at 21:15 PrOpoLoPrOpoLo 1231 silver badge8 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 0Answering my own question in case it helps someone:
- Install the source version of sqlite: https://www.sqlite./2025/sqlite-src-3490000.zip
- Add path_to_install_directory/sqlite/lib to LD_LIBRARY_PATH
- Add path_to_install_directory/sqlite/bin to PATH
- Compile python with CPPFLAGS="-I path_to_install_directory/sqlite/include" ./configure && make -j16 install
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745201611a4616358.html
./configure && make install
. I don't think there's a mistake on my part, others have had the same issue (see stackoverflow/questions/19530974/…), but my problem is that I don't have root access and I'm not quite satisfied with Shashi Ranjan's answer on the post I linked. – PrOpoLo Commented Feb 12 at 21:55