schmir / bbfreeze

UNMAINTAINED
http://pypi.python.org/pypi/bbfreeze/
92 stars 22 forks source link

Install problem on Ubuntu 11.10 #9

Closed scaryclam closed 12 years ago

scaryclam commented 12 years ago

Hi,

I've been trying to get bbfreeze installed on Ubuntu 11.10 with little success. I have tried with various versions, including the latest version here on github.

When running the setup.py script I get the following output: http://pastebin.com/DzTj5SiC

I've seen this issue before and it was caused by the -lz flag for the linker. Hacking at setup.py to remove the -lz from the flags didn't seem to help though.

schmir commented 12 years ago

You should be able to workaround the issue by calling the command to link console.exe manually and adding a "-lssl -lcrypto -lz" after /usr/lib/python2.7/config/libpython2.7.a like in

gcc -pthread -Wl,-Bsymbolic-functions -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -Xlinker -zmuldefs -Xlinker --disable-new-dtags -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz build/temp.linux-i686-2.7/bbfreeze/console.o build/temp.linux-i686-2.7/bbfreeze/getpath.o /usr/lib/python2.7/config/libpython2.7.a -lssl -lcrypto -lz -L/usr/lib/python2.7/config -lpthread -ldl -lutil -lm -o build/lib.linux-i686-2.7/bbfreeze/console.exe

scaryclam commented 12 years ago

Calling the command manually works just fine :)

I'm a little lost though, after I call this command how do I get bbfreeze to actually install? Or should I call the command from setup.py instead of calling linked_shared_object?

schmir commented 12 years ago

Becky Lewis reply@reply.github.com writes:

Calling the command manually works just fine :)

I'm a little lost though, after I call this command how do I get bbfreeze to actually install? Or should I call the command from setup.py instead of calling linked_shared_object?

python setup.py build gcc ... # call gcc manually python setup.py install

schmir commented 12 years ago

89b3a05c7d16d007466b998b641e30f78f7be39f fixes this issue.

scaryclam commented 12 years ago

Hi,

Just to confirm that the fix works and to say thanks for such a quick response!