Re: [cx-freeze-users] Build issue with python location
Brought to you by:
atuining
From: Joe B. <ma...@jd...> - 2012-11-21 11:42:15
|
Hi Almar, I built Python in /tmp/ and copied the .so into my live copy. This worked fine. Thanks. Regards, Joseph David Borġ http://www.jdborg.com On 21 November 2012 11:09, Almar Klein <a....@sc...> wrote: > I have libpython2.7.a in lib/python2.7/config. Would sym linking this to >> .so work? >> > > To be honest, I don't know enough about building/compiling to answer that > properly > > FWIW I did have a similar problem when trying to compile PySide. In that > case I resorted to using the latest version from github, which was able to > use the libpython.a. (In the end I did recompile Python when I ran into > this exact issue with cx_Freeze.) > > I do know that after xc_Freeze is build, there should be a libpython.so > somewhere, because cx_Freeze needs to copy that along with frozen exes. > Perhaps you can patch cx_Freeze to work with libpython.a and make it > generate a .so from it? > > - Almar > > > >> Regards, >> Joseph David Borġ >> http://www.jdborg.com >> >> >> On 20 November 2012 16:19, Almar Klein <a....@sc...>wrote: >> >>> Hi, >>> >>> I got this error too. It may be that the libpython.so.2.7 library is not >>> available (it is not build by default). I resolved it by (re)compiling >>> Python with './configure --enable-shared'. >>> >>> - Almar >>> >>> >>> >>> On 20 November 2012 16:06, Joe Borġ <ma...@jd...> wrote: >>> >>>> Hi All, >>>> >>>> I'm not using the system's install of Python as it's out-dated. >>>> Instead, I use my own build of 2.7. This has been find to build everything >>>> else with, but having some issues getting freeze to build (see code >>>> below). How can I tell ld where the python2.7 install / library path is >>>> before running setup.py? It appears to be setting gcc's -L to >>>> /home1/users/joe.borg/install/python/272/lib/python2.7/config, which >>>> doesn't exist; it should be /software/Python/272/... >>>> >>>> $ python27 setup.py >>>> running install >>>> running build >>>> running build_py >>>> running build_ext >>>> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall >>>> -Wstrict-prototypes -fPIC -Ibuild/temp.linux-x86_64-2.7 >>>> -I/software/Python/272/include/python2.7 -c source/bases/Console.c -o >>>> build/temp.linux-x86_64-2.7/source/bases/Console.o >>>> gcc -pthread build/temp.linux-x86_64-2.7/source/bases/Console.o >>>> -L/home1/users/joe.borg/install/python/272/lib/python2.7/config -lpython2.7 >>>> -o build/lib.linux-x86_64-2.7/cx_Freeze/bases/Console -Xlinker >>>> -export-dynamic -lpthread -ldl -lutil -lm -s >>>> /usr/bin/ld: cannot find -lpython2.7 >>>> collect2: ld returned 1 exit status >>>> error: command 'gcc' failed with exit status 1 >>>> >>>> >>>> >>>> Regards, >>>> Joseph David Borġ >>>> http://www.jdborg.com >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Monitor your physical, virtual and cloud infrastructure from a single >>>> web console. Get in-depth insight into apps, servers, databases, vmware, >>>> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >>>> Pricing starts from $795 for 25 servers or applications! >>>> http://p.sf.net/sfu/zoho_dev2dev_nov >>>> _______________________________________________ >>>> cx-freeze-users mailing list >>>> cx-...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >>>> >>>> >>> >>> >>> -- >>> Almar Klein, PhD >>> Science Applied >>> phone: +31 6 19268652 >>> e-mail: a....@sc... >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor your physical, virtual and cloud infrastructure from a single >>> web console. Get in-depth insight into apps, servers, databases, vmware, >>> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >>> Pricing starts from $795 for 25 servers or applications! >>> http://p.sf.net/sfu/zoho_dev2dev_nov >>> _______________________________________________ >>> cx-freeze-users mailing list >>> cx-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Monitor your physical, virtual and cloud infrastructure from a single >> web console. Get in-depth insight into apps, servers, databases, vmware, >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >> Pricing starts from $795 for 25 servers or applications! >> http://p.sf.net/sfu/zoho_dev2dev_nov >> _______________________________________________ >> cx-freeze-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >> >> > > > -- > Almar Klein, PhD > Science Applied > phone: +31 6 19268652 > e-mail: a....@sc... > > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > |