4.1.0 - manual installation on linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NimrodPE
    Scout
    • Jul 2017
    • 30

    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.
  • kandrc
    Swordsman
    • Dec 2007
    • 299

    #2
    You first need to run 'autoconf' to generate the configure script, then proceed as before.

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9634

      #3
      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 for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • NimrodPE
        Scout
        • Jul 2017
        • 30

        #4
        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!

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          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 for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • NimrodPE
            Scout
            • Jul 2017
            • 30

            #6
            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

            Comment

            • takkaria
              Veteran
              • Apr 2007
              • 1951

              #7
              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.
              takkaria whispers something about options. -more-

              Comment

              • AnonymousHero
                Veteran
                • Jun 2007
                • 1393

                #8
                Note: It's "x11" (x-eleven), not "xll". (x-ell-ell)

                Comment

                • NimrodPE
                  Scout
                  • Jul 2017
                  • 30

                  #9
                  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!

                  Comment

                  • Nick
                    Vanilla maintainer
                    • Apr 2007
                    • 9634

                    #10
                    Originally posted by NimrodPE
                    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 for the Dark Lord on his dark throne
                    In the Land of Mordor where the Shadows lie.

                    Comment

                    Working...
                    😀
                    😂
                    🥰
                    😘
                    🤢
                    😎
                    😞
                    😡
                    👍
                    👎