1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Linking custom sqlite when building python

Discussão em 'Python' iniciado por Stack, Novembro 27, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to link a custom version of sqlite3 when building python, but there is an error when compiling python :

    /usr/bin/install: cannot stat 'Modules/_sqlite3.cpython-313-x86_64-linux-gnu.so': No such file or directory make: *** [Makefile:2325: sharedinstall] Error 1

    It does not pick up the custom sqlite despite pointing out to it with th following environment variables:

    export CPPFLAGS="-I/opt/sqlite/include"
    export CFLAGS="-I/opt/sqlite/include"
    export C_INCLUDE_PATH="/opt/sqlite/include:${C_INCLUDE_PATH}"

    export LDFLAGS="-L/opt/sqlite/lib"
    export LIBRARY_PATH="/opt/sqlite/lib:${LIBRARY_PATH}"
    export LD_LIBRARY_PATH="/opt/sqlite/lib:${LD_LIBRARY_PATH}"
    export PKG_CONFIG_PATH="/opt/sqlite/lib/pkgconfig:${PKG_CONFIG_PATH}"


    How can I ensure that the custom sqlite is used and not the system version?

    Continue reading...

Compartilhe esta Página