openai / doom-py

ViZDoom Python wrapper
MIT License
75 stars 44 forks source link

Installation on Ubuntu 16.04 #5

Closed domluna closed 8 years ago

domluna commented 8 years ago

Following up a discussion from Gitter, installation on Ubuntu 16.04 doesn't work. The issue appears to be with the liblzma version.

More details have been discussed in the upstream repo at Marqt/ViZDoom#75. I think we should keep this here for reference until it's fixed upstream.

domluna commented 8 years ago

Update from the discussion upstream, the issue is solved by changing the default linker from ld to ld.gold.

Credits go to @vmonaco

Check which linker you're using:

ls -l /usr/bin/ld

Install gold and set as default:

apt-get install binutils-gold
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10

Switch between gold and GNU linker:

update-alternatives --config ld

See also here: mitchellh/vagrant#5118