LINUX.ORG.RU

Установка tar.gz в Linux Mint 18

 


0

1

Не могу ничего установить из архивов tar.gz и tar.bz2. В папке есть install.sh, но он не работает. Терминал выдает это:

install: no input file specified

Запускаю ./configure, затем make и выдается это:

cat: ../version: Нет такого файла или каталога
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: ошибка выполнения рецепта для цели «main.o»
make[3]: *** [main.o] Ошибка 1
../mk/buildsys.mk:110: ошибка выполнения рецепта для цели «all»
make[2]: *** [all] Ошибка 2
mk/buildsys.mk:115: ошибка выполнения рецепта для цели «subdirs»
make[1]: *** [subdirs] Ошибка 2
mk/buildsys.mk:110: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2


Последнее исправление: NeZZy (всего исправлений: 1)

он тебе говорит, что компилятор не компилит, точно все что нужно для сборки поставил? build-essential - стоит?

Silerus ★★★★
()
Ответ на: комментарий от NeZZy

Стабильный коммит найди. Там может быть что-то наговнякали в master, а ты собрать пытаешься. Возьми от сюда сорцы: https://github.com/angband/angband/releases

crutch_master ★★★★★
()
Последнее исправление: crutch_master (всего исправлений: 1)
Ответ на: комментарий от crutch_master

Всё равно не работает. Запускаю make, сначала выдает:

Entering directory src.
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
Successfully generated dependencies.
cat: ../version: Нет такого файла или каталога

Потом компилится, и в конце выдается ошибка:

LINK angband.o           
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: ошибка выполнения рецепта для цели «main.o»
make[3]: *** [main.o] Ошибка 1
../mk/buildsys.mk:110: ошибка выполнения рецепта для цели «all»
make[2]: *** [all] Ошибка 2
mk/buildsys.mk:115: ошибка выполнения рецепта для цели «subdirs»
make[1]: *** [subdirs] Ошибка 2
mk/buildsys.mk:110: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
NeZZy
() автор топика
Ответ на: комментарий от NeZZy

ну у меня все собралось, правда был конфликт с ncurses, но x11 и sdl версия собрались. Порядок действий 1. распакуй заново 2. в каталоге выполняем ./autogen.sh 3. ./configure --enable-sdl --enable-sdl-mixer --enable-stats --disable-curses «если надо прописываем префикc» 4. make 5. sudo make install

Silerus ★★★★
()
Ответ на: комментарий от kostik87

Читал. Там только команды для установки(./autogen.sh; ./configure и т.д).

NeZZy
() автор топика
Ответ на: комментарий от Silerus

Теперь даже make не работает. В конце configure много строк, оканчивающихся на ...no. Проблема в них?

checking for mvwaddnwstr... no
checking for use_default_colors... no
checking for can_change_color... no
checking for X... no
checking for sdl-config... no
checking for SDL - version >= 1.2.10... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking for Mix_OpenAudio in -lSDL_mixer... no
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
configure: error: Could not find sqlite3 library; disabling stats
NeZZy
() автор топика
Ответ на: комментарий от NeZZy

читать что пишут начни

  • нет библиотек X
  • говорит нет нужной версии библиотеки sdl
  • нет нужной версии библиотеки sdl_mixer
  • нет sqlite

все это нужно в dev версии в твоем случае

Silerus ★★★★
()
Ответ на: комментарий от NeZZy
./configure 
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... rst2html.py
checking for rst2latex.py... rst2latex.py
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... /usr/bin/ncursesw5-config
checking for ncurses - wide char support... yes
checking for mvwaddnwstr... yes
checking for use_default_colors... yes
checking for can_change_color... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
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

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                                  Yes
- X11                                     Yes
- SDL                                     Disabled
- Windows                                 Disabled
- Test                                    No
- Stats                                   No

- SDL sound                               Disabled
$ make -j4
Entering directory src.
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
cat: ../version: Нет такого файла или каталога
Successfully generated dependencies.
cat: ../version: Нет такого файла или каталога
Successfully compiled cave-map.c.
Successfully compiled cave-view.c.
...
Successfully compiled z-virt.c.
Successfully compiled buildid.c.
Successfully compiled main.c.
      LINK angband.o           
Successfully compiled main-gcu.c.
Successfully compiled main-x11.c.
      LINK angband             
Leaving directory src.
Entering directory lib.
Entering directory gamedata.
Leaving directory gamedata.
Entering directory customize.
Leaving directory customize.
Entering directory help.
Leaving directory help.
Entering directory screens.
Leaving directory screens.
Entering directory fonts.
Leaving directory fonts.
Entering directory tiles.
Entering directory adam-bolt.
Leaving directory adam-bolt.
Entering directory gervais.
Leaving directory gervais.
Entering directory nomad.
Leaving directory nomad.
Entering directory old.
Leaving directory old.
Entering directory shockbolt.
Leaving directory shockbolt.
Leaving directory tiles.
Entering directory sounds.
Leaving directory sounds.
Entering directory icons.
Leaving directory icons.
Entering directory user.
Entering directory save.
Leaving directory save.
Entering directory scores.
Leaving directory scores.
Entering directory info.
Leaving directory info.
Leaving directory user.
Leaving directory lib.
Entering directory doc.
Leaving directory doc.
gcc -v
Используются внутренние спецификации.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.3/lto-wrapper
Целевая архитектура: x86_64-pc-linux-gnu
Параметры конфигурации: /var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/python --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.3 p1.1, pie-0.5.9' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --enable-libsanitizer
Модель многопоточности: posix
gcc версия 4.8.3 (Gentoo 4.8.3 p1.1, pie-0.5.9)

gcc-6.4 тоже собирается.

kostik87 ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.