title: Preparing _tkinter and sqlite3 for Python installation (no admin rights)
body: <p>I am trying to build Python directly from source code, with no admin rights, and after running:</p>
  
  <blockquote>
    <p>export CPPFLAGS='-I/opt/sqlite-3.7.16.2/include -I/opt/tk8.6.0/include<br>
      -I/opt/tcl8.6.0/include/'</p>
    
    <p>export LDFLAGS='-L/opt/sqlite-3.7.16.2/lib -L/opt/tk8.6.0/lib/<br>
    -L/opt/tcl8.6.0/lib/  ./configure --prefix=/path_to_python-2.7.4 --enable-shared'</p>
  </blockquote>
  
  <p>and then </p>
  
  <pre><code>make
  </code></pre>
  
  <p>I get the following:</p>
  
  <blockquote>
    <p>building '_tkinter' extension </p>
    
    <p>gcc -pthread -fPIC -fno-strict-aliasing
    -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11/include -I. -IInclude -I./Include -I/opt/sqlite/sqlite-3.7.16.2/include -I/opt/tk8.6.0/include -I/opt/tcl8.6.0/include -I/usr/local/include -I/opt/python/src/Python-2.7.4/Include -I/opt/python/src/Python-2.7.4 -c /opt/python/src/Python-2.7.4/Modules/_tkinter.c -o build/temp.linux-x86_64-2.7/opt/python/src/Python-2.7.4/Modules/_tkinter.o</p>
    
    <p>gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3
    -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11/include -I. -IInclude -I./Include -I/opt/sqlite/sqlite-3.7.16.2/include -I/opt/tk8.6.0/include -I/opt/tcl8.6.0/include -I/usr/local/include -I/opt/python/src/Python-2.7.4/Include -I/opt/python/src/Python-2.7.4 -c /opt/python/src/Python-2.7.4/Modules/tkappinit.c -o build/temp.linux-x86_64-2.7/opt/python/src/Python-2.7.4/Modules/tkappinit.o</p>
    
    <p>gcc -pthread -shared -L/opt/sqlite/sqlite-3.7.16.2/lib
    -L/opt/tk8.6.0/lib/ -L/opt/tcl8.6.0/lib/ -L/opt/sqlite/sqlite-3.7.16.2/lib -L/opt/tk8.6.0/lib/ -L/opt/tcl8.6.0/lib/ -I. -IInclude -I./Include -I/opt/sqlite/sqlite-3.7.16.2/include -I/opt/tk8.6.0/include -I/opt/tcl8.6.0/include build/temp.linux-x86_64-2.7/opt/python/src/Python-2.7.4/Modules/_tkinter.o
    build/temp.linux-x86_64-2.7/opt/python/src/Python-2.7.4/Modules/tkappinit.o
    -L/usr/X11/lib -L/opt/sqlite/sqlite-3.7.16.2/lib -L/opt/tk8.6.0/lib/ -L/opt/tcl8.6.0/lib/ -L/usr/local/lib -L. -ltk8.6 -ltcl8.6 -lX11 -lpython2.7 -o build/lib.linux-x86_64-2.7/_tkinter.so</p>
    
    <p><em>*</em> WARNING: renaming "_tkinter" since importing it failed: libtk8.6.so: cannot open shared object file: No such file or directory</p>
  </blockquote>
  
  <p>The odd thing is that I can see <code>libtk8.6.so</code>. It is actually right there under <code>/opt/tcl8.6.0/lib</code> as I specified with <code>LDFLAGS</code>.</p>
  
  <p>Why did that compilation fail?</p>