Re: [cx-freeze-users] Compiling with libssl0.9.8
Brought to you by:
atuining
From: Max P. <ma...@gm...> - 2011-12-02 08:50:10
|
On Wed, Nov 30, 2011 at 3:54 PM, Anthony Tuininga <ant...@gm...> wrote: > On Wed, Nov 30, 2011 at 3:00 AM, Max Pimm <ma...@gm...> wrote: >> On Wed, Nov 30, 2011 at 8:25 AM, Michael Wood <esi...@gm...> wrote: >>> On 29 November 2011 21:45, Max Pimm <ma...@gm...> wrote: >>>> I use debian testing and have installed the latest version of >>>> cx-freeze from source. >>>> >>>> When i try to run the executable that it generates on another machine >>>> it fails with a missing shared library error. It is looking for >>>> libssll.so.1.1.0 >>>> >>>> The other machine has libssl0.9.8 installed and I cannot upgrade it to >>>> use libssl1.0.0. >>>> >>>> How can i modify the setup on my machine so that the compiled >>>> executable uses 0.9.8 as a dependency rather than 1.0.0? >>> >>> I think the normal solution to this sort of problem is to freeze your >>> app on an older distribution and make cxfreeze include the libraries >>> it depends on. >> >> Ok. I'll give it a go. >> >> This may be a dumb question but how do you "make cxfreeze include the >> libraries it depends on"? >> >> I actually have both versions of libssl installed on my machine. I >> have tried using the bin-includes option like this >> >> buildOptions = dict( >> compressed = True, >> create_shared_zip = False, >> append_script_to_exe = True, >> bin_includes = ["/usr/lib/libssl.so.0.9.8"]) >> >> But this seems to make no difference. > > Yes, currently you need to specify the name of the file *without* the > directory it is in or the version number. With your case I think that > might not be the best solution but it will likely work for you if it > is the *first* one it finds. I have checked in a change to Subversion > to cx_Freeze/freezer.py which checks the full name (with the path) and > the full name (without the path but including the version information) > in addition to the name (without the path and version information). > You can simply copy this file on top of the one in your installation > and let me know if it does what you expect then. Thanks. > > Anthony > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users Thanks for that. I have overwritten my freezer.py with the one from revision 353. However the file i define in bin_includes in my setup script is not getting to the method _ShouldCopyFile. Maybe there is something wrong in the way i declare my build options. This is what i have: buildOptions = dict( compressed = True, create_shared_zip = False, append_script_to_exe = True, bin_includes = ["/usr/lib/libssl.so.0.9.8"]) |