LinuxForum.Fans
Тема

Как устанавливать (компилировать) исходники программ?

Автор: u_____16 25 сообщений 6566 просмотров
#203350
Показать
[*]root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# make
bash: make: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# install
install: пропущен операнд, задающий файл
Попробуйте `install --help' для получения более подробного описания.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# configure
bash: configure: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# /configure
bash: /configure: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# "/configure
> "/configure
bash: /configure
/configure: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./dpl4hydra
bash: ./dpl4hydra: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# cleat
bash: cleat: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# clear

root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# clear

root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# clear

root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ^C
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ^C
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./install
bash: ./install: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make install
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# make install
bash: make: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# make
bash: make: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# clear

root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure, makebash: ./configure,: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure , make
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: ,
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... no
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for ,-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for ,-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./make
bash: ./make: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./dpl4hydra
bash: ./dpl4hydra: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./dpl4hydra.sh
bash: ./dpl4hydra.sh: Нет такого файла или каталога
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# dpl4hydra.sh
bash: dpl4hydra.sh: команда не найдена
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# clear

root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... yes
checking PACKAGE_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking PACKAGE_LIBS... -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
root@debian:/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk# make
make all-recursive
make[1]: Entering directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk'
Making all in src
make[2]: Entering directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c support.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c interface.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c callbacks.c
gcc -g -O2 -o xhydra main.o support.o interface.o callbacks.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
make[2]: Leaving directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk/src'
make[2]: Entering directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk'
make[2]: Leaving directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk'
make[1]: Leaving directory `/home/matrix/Рабочий стол/hydra-7.1-src/hydra-gtk'

Так, кофиг вроде удался, а мэйк вроде нет. Потому что я ничего такого не заметил))

#203352
Босх написал:

Так, кофиг вроде удался, а мэйк вроде нет. Потому что я ничего такого не заметил))

Надоедать начинает править Ваши сообщения.
Make вроде тоже удался.

#203353
durc написал:
Make вроде тоже удался.

Но Гидры в системе нету((

#203354
Босх написал:
Но Гидры в системе нету((

Так Вы её куда установили?
В домашний каталог. Там и ищите
[console]ls -l /home/matrix/Рабочий\ стол/hydra-7.1-src/hydra-gtk[/console]
И собственно make install не выполнялся.

#203372

В контексте "таких старых" исходников:

Может есть у кого под рукой шпаргалка, как указать при сборке версию компилера не 4.3, а 4.1 например?
Желательно через экспорт переменной окружения. (Или как-то по другому).

UPD: хотя чего я парюсь :) в Makefile же и можно указать
где-то тут
# Sensible compiler defaults
CC ?= gcc
CXX ?= g++

если напишу gcc-4.1 -синтакисис подойдет?

Войдите или зарегистрируйтесь, чтобы ответить.