You are not logged in.

#1 2011-11-20 16:59:20

From: Oviedo (Spain)
Registered: 2011-01-01
Posts: 39

Can't install doomsday from AUR


I want to install doomsday to play doom, doom2 and so on smile

I type yaourt -S doomsday and installation works correctly, but then this appears:

-- Build files have been written to: /tmp/yaourt-tmp-ignacio/aur-doomsday/src/deng-1.9.0-beta6.9/doomsday/build
Scanning dependencies of target Generate.pk3
  File "./", line 9
    print "Usage: %s pk3-target-dir" % sys.argv[0]
SyntaxError: invalid syntax
make[2]: *** [CMakeFiles/Generate.pk3] Error 1
make[1]: *** [CMakeFiles/Generate.pk3.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Se produjo un error en build().
==> ERROR: Makepkg was unable to build doomsday.

I've all base-devel packages in my system.


#2 2011-11-21 17:00:37

Registered: 2010-03-19
Posts: 1,189

Re: Can't install doomsday from AUR

I thought it might be either a problem with yahourt or with python3, so I tried with makepkg and also adding "#!/usr/bin/env python2" or "#!/usr/bin/python2" at the top of, but it didn't change the error message.

(BTW it's also better to use -j1 in the MAKEFLAGS or the script builds a bunch of stuff after the error message...)

However (I don't know much about python but) after searching a bit more it definitely looks like the script(s) were made for python2 : discusses the deprecation of the "print" statement...


#3 2011-11-21 17:40:42

Registered: 2010-05-06
Posts: 4,596

Re: Can't install doomsday from AUR

Try comparing it with doomsday-1.8 and doomsday-git.

You're right about your guess regarding python2. You can indeed identify it looking at the print command, as it has become a function in Python 3:


#4 2011-11-21 18:32:16

From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 243

Re: Can't install doomsday from AUR

I recommend to

ln -s /usr/bin/python2 /usr/bin/python

then build your package, and then

ln -s /usr/bin/python3 /usr/bin/python

back. Dirty, but works.

Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, 1878 MB, XFCE 4.12, x86_64. AURs.

“No one without the knowledge of geometry may enter.“ Plato.


#5 2011-12-29 12:49:36

From: Montevideo, Uruguay
Registered: 2010-03-05
Posts: 86

Re: Can't install doomsday from AUR

I had the same problem, did what GordonGR said, and it worked, but now I'm getting this:

[ 41%] Building C object CMakeFiles/doomsday.dir/external/lzss/unix/src/lzss.o
Linking C executable doomsday
/usr/bin/ld: CMakeFiles/doomsday.dir/engine/portable/src/ui_main.o: undefined reference to symbol 'sin@@GLIBC_2.0'
/usr/bin/ld: note: 'sin@@GLIBC_2.0' is defined in DSO /lib/ so try adding it to the linker command line
/lib/ could not read symbols: Invalid operation
collect2: ld devolvi? el estado de salida 1
make[2]: *** [doomsday] Error 1
make[1]: *** [CMakeFiles/doomsday.dir/all] Error 2
make: *** [all] Error 2


Board footer

Powered by FluxBB