You are not logged in.

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

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

Can't install doomsday from AUR

Hello.

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 "./packres.py", 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().
    Cancelando...
==> ERROR: Makepkg was unable to build doomsday.

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

Offline

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

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

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 packres.py, 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 : http://www.python.org/dev/peps/pep-3105/ discusses the deprecation of the "print" statement...

Offline

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

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

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: http://docs.python.org/release/3.0.1/whatsnew/3.0.html

Offline

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

GordonGR
Member
From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 276

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, x86_64. AURs.

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

Offline

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

bruno321
Member
Registered: 2010-03-05
Posts: 89

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/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: 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

Offline

Board footer

Powered by FluxBB