hugomg / xjump

A jumping game for X
Other
9 stars 1 forks source link

Installing and highscores #3

Open igorrcosta opened 7 years ago

igorrcosta commented 7 years ago

Installed without any major issue! Some small issues, though :P Steps required to install in Ubuntu 12.04: 1) updated autoconf from 2.68 to 2.69 by adding repo dns/gnu:

sudo add-apt-repository ppa:dns/gnu -y
sudo apt-get update -q
sudo apt-get install --only-upgrade autoconf

2) Found out I was missing libxaw7-dev sudo apt-get install libxaw7-dev 3) Ran into an error while running ./configure (config.status: error: cannot find input file: 'Makefile.in'). Fixed it by running: automake --add-missing 4) After this I was able to make and make install, but xjump could not open the highscores file when running as normal user, so I ran: sudo chmod 666 /usr/local/var/xjump/highscores

Everything else seems to be working fine! Thanks for the update!

hugomg commented 7 years ago

updated autoconf from 2.68 to 2.69 by adding repo dns/gnu:

Do you remember what required updating autoconf? Did you get an error? (I don't have version 2.68 here to test)

Ran into an error while running ./configure (config.status:

Just to clarify, did you download the latest release or did you clone the repository? If you download the release you wouldn't need the autoconf tools to compile the code...

You need to download the file named "xjump-2.9.3.tar.gz" though, not the one that says "Source code (tar.gz)". (I think I'll try to clear this up in the readme).

After this I was able to make and make install, but xjump could not open the highscores file when running as normal user

Did it show any error message? Is there a "games" user and a "games" group in your system? You can check this by running these commands:

cut -d: -f1 /etc/passwd | grep games
cut -d: -f1 /etc/group | grep games

If they output "games" then the user/group exists. If the output is empty then the group/user is missing (which would cause xjump to not be able to write to the highscore).

Ideally, the highscore file should be only writable by root and the "games" group, to ensure that regular users can't just go there and edit the highscores without actually playing the game. That said, maybe I should make the default for xjump be single-user highscores because correctly setting up the permissions for the global highscore file is very complicated...


Obrigado pelo feedback e desculpe a demora. :P

igorrcosta commented 7 years ago

Do you remember what required updating autoconf? Did you get an error? (I don't have version 2.68 here to test)

Probably this, on line 4 of configure.ac file: AC_PREREQ([2.69])

Just to clarify, did you download the latest release or did you clone the repository? If you download the release you wouldn't need the autoconf tools to compile the code...

Cloned the repo.

Did it show any error message? Is there a "games" user and a "games" group in your system?

Yes, it showed an error, I'll try to reproduce and paste it here. I don't think there is a games user or group.


Foi mal a demora para responder, tava na África!