Preparing _tkinter and sqlite3 for Python installation (no administrator privileges)

I am trying to create Python directly from source code without administrator rights and after starting:

export CPPFLAGS = '- I / opt / sqlite-3.7.16.2 / include -I / opt / tk8.6.0 / include
  -I / Opt / tcl8.6.0 / enable /'

export LDFLAGS = '- L / opt / sqlite-3.7.16.2 / lib -L / opt / tk8.6.0 / lib /
-L / opt / tcl8.6.0 / lib /./ configure --prefix = / path_to_python-2.7. 4 --enable-shared '

and then

make

I get the following:

building '_tkinter' extension

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//_tkinter.o

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//tkappinit.o

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 /temp.linux-x86_64-2.7/Opt//SRC/Python-2.7.4//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

* : "_tkinter", : libtk8.6.so: :

, libtk8.6.so. /opt/tcl8.6.0/lib, LDFLAGS.

?

+5
1

setup.py, Python _tkinter. build_extension, , :

imp.load_dynamic(ext.name, ext_filename)

_tkinter ( libtk8.6.so). , , / , Python , , tcl/lib tk/lib LD_LIBRARY_PATH. , .

: include CPPFLAGS

  • /path_to/sqlite3/include
  • /path_to/tcl/include
  • /path_to/tk/include

lib LDFLAGS

  • /path_to/sqlite3/lib
  • /path_to/tcl/lib
  • /path_to/tk/lib

lib LD_LIBRARY_PATH:

  • /path_to/sqlite3/lib
  • /path_to/tcl/lib
  • /path_to/tk/lib

.

+4

All Articles