Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 31, 2017, 00:56   #1
NimrodPE
Scout
 
Join Date: Jul 2017
Posts: 30
NimrodPE is on a distinguished road
4.1.0 - manual installation on linux?

Hi guys

After getting hooked on Angband 3.5.1 I wanted to install the latest vanilla (4.1.0) manually. I use Linux Ubuntu 16.04 LTS 64bit and this post might be incomprehensible for Windows users. Sorry for the trouble and/or if this is the wrong subforum, but anyways.

Downloading 4.1.0 from rephial.org and unpacking the tar.gz is no problem (either manually or via console), but there is no "configure" file in the unpacked folder. Yes, there are "config.guess" (which tells me that I'm using a 64bit linux), "config.sub" and "configure.ac" (no authorization; if done with sudo: command is missing), but they don't start the usual installation process if I type:

./filename

I ask because usually I install tar-files like this:
./configure
make
sudo make install

Same problem by drag&dropping the "install.sh" into the console and pressing the enter button, respectively by trying the same via console commands. I tried finding a new/updated angband-ppa for the software manager, but couldn't find one, except for the mangband-version which I'm not interested in.

Right now I am a bit lost Yes, I could re-install version 3.5.1 with the software-manager (or synaptic), but why playing an outdated version?

I would be very thankful if someone could help out. Posting commands for the console to cut&paste would be enough if that's all there is to install 4.1.0.
NimrodPE is offline   Reply With Quote
Old July 31, 2017, 01:09   #2
kandrc
Adept
 
Join Date: Dec 2007
Posts: 218
kandrc is on a distinguished road
You first need to run 'autoconf' to generate the configure script, then proceed as before.
kandrc is offline   Reply With Quote
Old July 31, 2017, 12:48   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,559
Donated: $60
Nick is on a distinguished road
autoconf may do it, but there's actually a purpose-built script; the whole process is
Code:
./autogen.sh
./configure
make
sudo make install
Also note that you can give options to configure (to enable things like the SDL frontend); full details from
Code:
./configure --help
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old July 31, 2017, 18:10   #4
NimrodPE
Scout
 
Join Date: Jul 2017
Posts: 30
NimrodPE is on a distinguished road
That went well until "make" and by typing "sudo make install" it failed. Here's the log:

main.c:53:1: warning: ISO C forbids empty initializer braces [-Wpedantic]
{
^
main.c:52:28: error: zero or negative size array ‘modules’
static const struct module modules[] =
^
Failed to compile main.c!
../mk/buildsys.mk:242: the rule for target „main.o“ failed
make[3]: *** [main.o] Error 1
../mk/buildsys.mk:110: the rule for target „all“ failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: the rule for target „subdirs“ failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: the rule for target „all“ failed
make: *** [all] Error 2
wonderwomanrocks@Nimrod:~/Schreibtisch/Games/Angband 4.1.0/angband-master$ sudo make install
Entering directory src.
cat: ../version: File or Folder not found
/usr/bin/install: Call of stat for 'angband' not possible: File or Folder not found
Failed to install angband!
../mk/buildsys.mk:430: the rule for target „install“ failed
make[1]: *** [install] Error 1
mk/buildsys.mk:430: the rule for target „install“ failed
make: *** [install] Error 2

Ehm... what? Btw thanks for the help!
NimrodPE is offline   Reply With Quote
Old July 31, 2017, 21:59   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,559
Donated: $60
Nick is on a distinguished road
OK, it looks like your configure setup hasn't allowed any of the front ends to work. Try with
Code:
./configure
replaced by
Code:
./configure --enable-x11 --enable-curses
and see if that makes any difference.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old August 1, 2017, 01:28   #6
NimrodPE
Scout
 
Join Date: Jul 2017
Posts: 30
NimrodPE is on a distinguished road
No, same again, but here's the full log (without the already posted failures which stay the same):

Code:
wonderwomanrocks@Nimrod:~/Schreibtisch/Games/Angband/angband-master$ ./configure --enable-xll --enable-curses
configure: WARNING: unrecognized options: --enable-xll
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for tput... /usr/bin/tput
configure: touching .deps files
Note: You have chosen to compile for installation, with data files
    in standard locations. For development, you may wish to consider using
    --with-no-install which will leave the game to run from the directory
    into which it was extracted and compiled.

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for windres... no
checking for rst2html.py... no
checking for rst2html... no
checking for rst2latex.py... no
checking for rst2latex... no
checking for pdflatex... no
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for cp... /bin/cp
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for mkdir... yes
checking for setresgid... yes
checking for setegid... yes
checking for stat... yes
checking if gcc supports -Wno-missing-field-initializers... yes
checking if make supports SysV-style inclusion... yes
checking for make silent include syntax... gnu
checking for ncursesw5-config... no
checking for ncurses - wide char support... no
*** The ncursesw5-config script installed by ncursesw could not be found
*** If ncursesw was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the NCURSES_CONFIG environment variable to the
*** full path to ncursesw5-config.
checking for initscr in -lncursesw... no
checking for mvwaddnwstr... no
checking for use_default_colors... no
checking for can_change_color... no
checking for X... no
configure: creating ./config.status
config.status: creating mk/buildsys.mk
config.status: creating mk/extra.mk
config.status: creating mk/sinclude.mk
config.status: creating src/autoconf.h
config.status: src/autoconf.h is unchanged
configure: WARNING: unrecognized options: --enable-xll

Configuration:

  Install path:                           /usr/local
  binary path:                            /usr/local/games
  config path:                            /usr/local/etc/angband/
  lib path:                               /usr/local/share/angband/
  doc path:                               /usr/local/share/doc/angband/
  var path:                               (not used)
  (with private save and score files in ~/.angband/Angband/)

-- Frontends --
- Curses                                  No; missing libraries
- X11                                     No; missing libraries
- SDL                                     Disabled
- Windows                                 Disabled
- Test                                    No
- Stats                                   No

- SDL sound                               Disabled
wonderwomanrocks@Nimrod:~/Schreibtisch/Games/Angband/angband-master$ make
Entering directory src.
cat: ../version: File or Folder not found
cat: ../version: File or Folder not found
cat: ../version: File or Folder not found
cat: ../version: File or Folder not found
Successfully generated dependencies.
cat: ../version: File or Folder not found
NimrodPE is offline   Reply With Quote
Old August 1, 2017, 01:55   #7
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,826
Donated: $40
takkaria is on a distinguished road
It sounds like you might need to install the packages libncursesw5-dev and libx11-dev so that the game can compile. Try installing them with apt-get and then running configure again.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old August 1, 2017, 21:19   #8
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,302
AnonymousHero is on a distinguished road
Note: It's "x11" (x-eleven), not "xll". (x-ell-ell)
AnonymousHero is offline   Reply With Quote
Old August 1, 2017, 22:47   #9
NimrodPE
Scout
 
Join Date: Jul 2017
Posts: 30
NimrodPE is on a distinguished road
With the packages and the "x11" (sorry, stupid failure) it worked!

Last problem: I'm back to my 1st post of having now control bar and no sub-windows (which I can't even determine in the options).

Anyway, it's (finally) working and the window-problem will probably work itself out just as miraculously like last time.

Thank you very much!
NimrodPE is offline   Reply With Quote
Old August 1, 2017, 23:11   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,559
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by NimrodPE View Post
Last problem: I'm back to my 1st post of having now control bar and no sub-windows (which I can't even determine in the options).
The x11 front end doesn't have a menu bar, and subwindows have to be specified on the command line:
Code:
angband -- -n4
will have 4 subwindows.

I'd personally recommend the SDL port, but you need a bunch more libraries for that - SDL, SDL_ttf, SDL_image and their -devel versions, and SDL_mixer if you want sound. Then you need to configure with --enable-sdl and run with -msdl.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation advice, please Runaway1956 Vanilla 13 March 1, 2015 19:20
Contradicting descriptions of majesty(will) in manual wobbly Sil 3 July 2, 2014 21:39
Newbie question - installation help Moriwen Vanilla 3 October 30, 2012 04:58
Ubuntu installation... aaronchall Vanilla 10 July 24, 2010 18:04
Angband User Manual Wiki JamesDoyle Oook! 31 February 7, 2008 00:25


All times are GMT +1. The time now is 04:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.