Hi,
I am trying to build a python interpreter that is static link.
My python interpreter was build on RedHat 8.0 using gcc 2.3 and GLIBC 2.3
When running on other linux flavor that still have GLIBC 2.2, the
interpreter won't start. (error message: /lib/libc.so.6: version
`GLIBC_2.3' not found (required by /mgl/python/i86Linux2/bin/python2.3)
Is there a way to build a static python interpreter using gcc 2.3 that
can run on any machine and won't need a shared library at runtime?
I want to be able to build my interpreter on my redhat machine and
distribute my executable that can then be run on other machine without
having to worry about the version of glibc.
Thanks for any help or idea in advances.
Alex gi****@scripps.edu 6 21958
On Mon, 29 Sep 2003 15:42:34 -0700, rumours say that Alexandre Gillet
<gi****@scripps.edu> might have written: I am trying to build a python interpreter that is static link. My python interpreter was build on RedHat 8.0 using gcc 2.3 and GLIBC 2.3 When running on other linux flavor that still have GLIBC 2.2, the interpreter won't start. (error message: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mgl/python/i86Linux2/bin/python2.3)
I believe you should install the glibc-static-devel package and then
find the approprate options for gcc (my noisy linux computer is turned
off now so I can't man gcc, but IIRC is -static :) in order to build a
static python.
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.
I am able to compile a static interpreter (using -static -static-libgcc)
but I can not build the extensions correctly.
When I import an extensions (ie Tkinter, readline) I get undefine
symbol error. It seems the symbol should be define in glibc but the
extensions can't seems to find it.
Any ideas how I should built the extensions
Thanks
Alex
Christos TZOTZIOY Georgiou wrote: On Mon, 29 Sep 2003 15:42:34 -0700, rumours say that Alexandre Gillet <gi****@scripps.edu> might have written:
I am trying to build a python interpreter that is static link. My python interpreter was build on RedHat 8.0 using gcc 2.3 and GLIBC 2.3 When running on other linux flavor that still have GLIBC 2.2, the interpreter won't start. (error message: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mgl/python/i86Linux2/bin/python2.3)
I believe you should install the glibc-static-devel package and then find the approprate options for gcc (my noisy linux computer is turned off now so I can't man gcc, but IIRC is -static :) in order to build a static python.
Alexandre Gillet <gi****@scripps.edu> writes: I am able to compile a static interpreter (using -static -static-libgcc) but I can not build the extensions correctly. When I import an extensions (ie Tkinter, readline) I get undefine symbol error. It seems the symbol should be define in glibc but the extensions can't seems to find it.
Any ideas how I should built the extensions
By editing Modules/Setup, I suspect.
Cheers,
mwh
--
I'm sorry, was my bias showing again? :-)
-- William Tanksley, 13 May 2000
Alex> I am able to compile a static interpreter (using -static
Alex> -static-libgcc) but I can not build the extensions correctly.
You effectively need to transport yourself back in time before distutils
existed, and modify Modules/Setup (or more correctly, Modules/Setup.local)
appropriately to define the build commands for all the extension modules you
want to include in your interpreter. It's a little tedious the first time
(it will probably take a few iterations to get everything correct), but once
you get the hang of it, it's easy to do. Use the compile and link commands
output by distutils to give yourself a head start on -I, -L and -l flags to
include in your definitions. Many of the commented out definitions are
probably also close.
If you identify some modules with no commented out build definitions in the
Setup file, please file a bug report on SourceForge.
Skip
Thanks for the hints.
But I think it will too much work to do now and not enough time. So I
will probably build my interperter with a older version of glibc so I am
sure it will run on all the linux platform and not only the one using
glibc 2.3
Thanks
Alex
Skip Montanaro wrote: Alex> I am able to compile a static interpreter (using -static Alex> -static-libgcc) but I can not build the extensions correctly.
You effectively need to transport yourself back in time before distutils existed, and modify Modules/Setup (or more correctly, Modules/Setup.local) appropriately to define the build commands for all the extension modules you want to include in your interpreter. It's a little tedious the first time (it will probably take a few iterations to get everything correct), but once you get the hang of it, it's easy to do. Use the compile and link commands output by distutils to give yourself a head start on -I, -L and -l flags to include in your definitions. Many of the commented out definitions are probably also close.
If you identify some modules with no commented out build definitions in the Setup file, please file a bug report on SourceForge.
Skip
--
o Alexandre Gillet email: gi****@scripps.edu
/ The Scripps Research Institute,
o Dept. Molecular Biology, MB-5,
\ 10550 North Torrey Pines Road,
o La Jolla, CA 92037-1000, USA.
/ tel: (858) 784-2053
o fax: (858) 784-2860
Thanks for the hints.
But I think it will too much work to do now and not enough time. So I
will probably build my interperter with a older version of glibc so I am
sure it will run on all the linux platform and not only the one using
glibc 2.3
Thanks
Alex
Skip Montanaro wrote: Alex> I am able to compile a static interpreter (using -static Alex> -static-libgcc) but I can not build the extensions correctly.
You effectively need to transport yourself back in time before distutils existed, and modify Modules/Setup (or more correctly, Modules/Setup.local) appropriately to define the build commands for all the extension modules you want to include in your interpreter. It's a little tedious the first time (it will probably take a few iterations to get everything correct), but once you get the hang of it, it's easy to do. Use the compile and link commands output by distutils to give yourself a head start on -I, -L and -l flags to include in your definitions. Many of the commented out definitions are probably also close.
If you identify some modules with no commented out build definitions in the Setup file, please file a bug report on SourceForge.
Skip
--
o Alexandre Gillet email: gi****@scripps.edu
/ The Scripps Research Institute,
o Dept. Molecular Biology, MB-5,
\ 10550 North Torrey Pines Road,
o La Jolla, CA 92037-1000, USA.
/ tel: (858) 784-2053
o fax: (858) 784-2860 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bren |
last post by:
Hi,
Pardon my stupid, but I'm having a problem building Boost.Python as
per the instructions at...
|
by: sarmin kho |
last post by:
Hi Pythoners,
i remember that i saw posting about changing the icon of a python executable but i kind of lost where to find the posting......
|
by: Grzegorz Dostatni |
last post by:
Cheers.
First what I am trying to do:
I am trying to create a version of pytho23.dll that contains everything
inside of it. It is staticaly...
|
by: Simon Faulkner |
last post by:
Hi All,
I've written a fair bit of simple Python for Linux and have been asked
to write a program for win32.
Is it possible to write a program...
|
by: Nickolay |
last post by:
it's easy to create small executable from python code, when using
assembler compilers. I ask you if need it?
|
by: |
last post by:
Hello,
I tried to build Python 2.4.1 on a Reliant Unix system. Just after the
python executable program has been built, I get the following...
|
by: magneticlemur |
last post by:
Hi,
Does anyone know of an available downloader for an amd64 bit
build of (a modern) python?
I've done my due diligence search of python docs...
|
by: Alan |
last post by:
Dears,
It's about Pyhton for Linux X86.
First, I would like to know if it's possible to build a fully static
python binary, something that...
|
by: Tim Mitchell |
last post by:
Hi,
A quick question:
Is there any way for a python script to know if it's being executed by a
debug build of python (python_d.exe) instead of...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...
| |