Battle Forum

Battle Forum (http://battlefox.rooty.ru/index.php)
-   Программная - Linux (http://battlefox.rooty.ru/forumdisplay.php?f=80)
-   -   Вопросы по Linux (http://battlefox.rooty.ru/showthread.php?t=1179)

SoaT 20.09.2010 18:36

Давайте задавать вопросы всё же в этой теме, ибо "чистота - залог здоровья" (:

3BEPYLLlKA 20.09.2010 19:37

SoaT, простите.)
Slava, спаcибо.Скачать скачал,а как его правильно монтировать,не подскажите?
Там в принципе есть readme файл,но видимо я что-то делаю неправильно.
Возможно архив надо распаковывать в определенное место?Или нужно указать какой-то путь?
Т.к. у меня выдает ошибки,после make
чеки проходят без ошибок

zhekas 20.09.2010 20:20

что конкретно выводит?

P.S. Я уверен, что если немножко изучить gdb, то в нём можно работать гораздо быстее чем в его графической обёртке

3BEPYLLlKA 20.09.2010 20:34

CC=gcc ./configure
Спойлер
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
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 g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... (cached) /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for cc... cc
checking for c++... no
checking for g++... no
checking for cxx... no
checking for gxx... no
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for objdump... objdump
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... host tool
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile

make(там много всего),но вот сами ошибки.Внимание вопрос:make надо делать в папке,где распакован архив?А-то что-то тут опять-таки я неправильно делаю что-то.
Спойлер
In file included from /home/alex/ins/insight-6.8/tk/unix/../generic/tkInt.h:21:0,
from /home/alex/ins/insight-6.8/tk/unix/../generic/tk3d.h:18,
from /home/alex/ins/insight-6.8/tk/unix/../generic/tk3d.c:16:
/home/alex/ins/insight-6.8/tk/unix/../generic/tk.h:96:23: fatal error: X11/Xlib.h: Нет такого файла или каталога
compilation terminated.
make[3]: *** [tk3d.o] Ошибка 1
make[3]: Leaving directory `/home/alex/ins/insight-6.8/tk/unix'
make[2]: *** [all] Ошибка 2
make[2]: Leaving directory `/home/alex/ins/insight-6.8/tk'
make[1]: *** [all-tk] Ошибка 2
make[1]: Leaving directory `/home/alex/ins/insight-6.8'
make: *** [all] Ошибка 2


Добавлено через 4 минуты
README
Спойлер
README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers,
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README; if with a libg++ release,
see libg++/README, etc. That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command. To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

./configure
make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''. You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make. For example (assuming sh/bash/ksh):

CC=gcc ./configure
make

A similar example using csh:

setenv CC gcc
./configure
make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc. See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.

zhekas 20.09.2010 20:37

Он не может найти файла Xlib.h
У меня он находится в папке /usr/include/X11/Xlib.h
Проверте там. Если нет то поищите:
Код:

find /usr -name Xlib.h

3BEPYLLlKA 20.09.2010 20:43

zhekas, не могу не согласиться,но мне он нужен для проганья на асемблере...
Там регистры смотреть и т.д.(это всё же менее трудоемко,чем через консоль),ну да ладно.Не мучайтесь)
Просто думал,что это повседневная процедура) Спрошу тогда у тех,кто устанавливал.

Добавлено через 2 минуты
Цитата:

Сообщение от zhekas (Сообщение 459647)
Он не может найти файла Xlib.h
У меня он находится в папке /usr/include/X11/Xlib.h
Проверте там. Если нет то поищите:
Код:

find /usr -name Xlib.h

ага,нету Xlib.h
Что мне делать?) Есть идеи?)

zhekas 20.09.2010 20:46

Посмотрите в менеджере пакетов установлен ли у вас пакет libX11 и нет ли к нему какого-нибудь
libX11-devel

3BEPYLLlKA 20.09.2010 20:59

ничего подобного не находит =\
Возможно,это не менеджер пакетов(YaST-Поиск пакетов)?

Извеняюсь за затупы,просто для меня это всё вновизну

zhekas 20.09.2010 21:13

Подозреваю, что у вас не подключены репозитарии
Поищите в меню что-то вроде "добавить репозитарий"
И добавте например от сюда
http://linuxupdate.karelia.ru/docs/opensuse.html Из рахдела "Доступные репозитарии пакетов"

3BEPYLLlKA 20.09.2010 21:25

zhekas, я вроде его погрузил.Ну,вот,например,в "Настроенные репозитории ПО"
написано,что тот же openSUSE-11.3-Oss -включен
Или все скачивать?)

Все репозитории влючил вроде бы.По крайней мере,которые были.
Всё равно не находит.Ну,да ладно,не ломайте голову) Это 100% я делаю что-то неверно,поэтому спрошу у препода.

zhekas 20.09.2010 21:34

И ничего не находится? А они там есть. Поиском по сайту находятся.

Вот например Здесь http://software.opensuse.org/search?...3A11.3&lang=ru

Попробуйте установить от сюда libX11-devel

rmn 20.09.2010 23:43

3BEPYLLlKA, в opensuse для манипуляций с пакетами и репозиториями удобно использовать zypper.
http://ru.opensuse.org/Zypper/%D0%98...BD%D0%B8%D0%B5

Посмотреть используемые репозитории и подключить новый
Код:

zypper lr
zypper ar http://linuxupdate.karelia.ru/opensuse/distribution/11.3/repo/oss

Далее поискать пакет, содержащий нужный тебе заголовочный файл Xlib.h
Обычно он в пакетах типа xorg-devel содержится.
zypper wp xorg-devel
zypper se xorg-devel
zypper se x*-devel
zypper in xorg-devel

Примерно так. opensuse под рукой нет, но я обычно такими командами пользовался. :)

3BEPYLLlKA 21.09.2010 08:37

rmn,
Код:

zypper ar http://linuxupdate.karelia.ru/opensuse/distribution/11.3/repo/oss
это на линуксапдейте сам репозиторий лежит ведь?
Спойлер
Слишком мало аргументов.
addrepo (ar) [параметры] <URI> <псевдоним>
addrepo (ar) [параметры] <файл.repo>

Добавить в систему репозиторий. Репозиторий может быть указан своим URI или считан из указанного файла .repo (даже сетевого).

Параметры команды:
-r, --repo <файл.repo> Считать URI-адрес и псевдоним из файла (даже сетевого).
-t, --type <тип> Тип репозитория (yast2, rpm-md, plaindir).
-d, --disable Добавить репозиторий отключенным.
-c, --check Проверить URI-адрес.
-C, --nocheck Не проверять URI-адрес, проверить позже во время обновления.
-n, --name <имя> Указать описательное имя репозитория.
-k, --keep-packages Включить кэширование файлов RPM.
-K, --no-keep-packages Отключить кэширование файлов RPM.
-f, --refresh Включить автообновление репозитория.


а,вот нашёл что-то...Как я понял это установленные пакеты.
zypper se x*-devel
что с ними теперь делать?)

zhekas 21.09.2010 08:57

Тебе нужен
libX11-devel
Посмотри как он точно называется
Код:

zypper se libX11-devel
И затем установи его
Код:

zypper in название пакета

3BEPYLLlKA 21.09.2010 12:48

zhekas, да,действительно,вы правы.Установка прошла дальше.
Правда теперь пишет:configure: error: no termcap library found
Я сделал аналогично
zypper se termcap
Спойлер
С | Имя | Заключение | Тип
--+---------------------+-------------------------------+-----------------------
i | termcap | The Termcap Library | пакет
| termcap | The Termcap Library | пакет с исходным кодом
| termcap-debuginfo | Debug information for packa-> | пакет
| termcap-debugsource | Debug sources for package t-> | пакет

ну и zypper in termcap

прошла установка пакета,после чего я попробовал проделать установку insight,которая прекратилась с ошибкой error: no termcap library found

Добавлено через 10 минут
Код:

:/usr/include/termcap> ls
termcap.h

rmn 21.09.2010 17:47

3BEPYLLlKA, termcap был установлен уже.
Тут надо либо исходники подправить, какие - ищи в каталоге
Код:

grep -r include.*termcap .
либо перед запуском make попробовать сделать так
Код:

export CFLAGS="-I/usr/include/termcap"

3BEPYLLlKA 21.09.2010 19:35

rmn, вторая команда не помогла.Ошибки всё те же.
а вот вопрос,можно грепать папку?
:~/ins> ls
Спойлер
insight-6.8

то есть вот так,например?В мане написано,что аргументом д.б. файл:
в общем так сделал:
:~/ins> grep -r include.*termcap insight-6.8
Спойлер
insight-6.8/readline/CHANGELOG: - if SHLIB_LIBS doesn't include a termcap library (curses, ncurses,
insight-6.8/readline/tcap.h:# include <termcap.h>
insight-6.8/tcl/cygwin/Makefile.in:# $(INSTALL_DATA) $(srcdir)/termcap.h $(tooldir)/include/termcap.h
insight-6.8/tcl/cygwin/Makefile.am:# $(INSTALL_DATA) $(srcdir)/termcap.h $(tooldir)/include/termcap.h

rmn 21.09.2010 19:47

3BEPYLLlKA, проверь ещё, что установлены пакеты типа ncurses-devel
Т.е. вновь поиском zypper se ncurses

3BEPYLLlKA 21.09.2010 21:13

rmn, ага,верно.И снова ошибка
Спойлер
cc1: warnings being treated as errors
cp-name-parser.y: In function ‘cp_comp_to_string’:
cp-name-parser.y:1980:20: error: comparison between ‘enum demangle_component_type’ and ‘enum <anonymous>’
cp-name-parser.y:1985:25: error: comparison between ‘enum demangle_component_type’ and ‘enum <anonymous>’

:~/ins> grep -r cp_comp_to_string insight-6.8
Спойлер
insight-6.8/gdb/cp-support.h:extern char *cp_comp_to_string (struct demangle_component *result,
insight-6.8/gdb/ChangeLog-2005: (cp_comp_to_string): New prototypes.
insight-6.8/gdb/cp-name-parser.y:cp_comp_to_string (struct demangle_component *result, int estimated_len)
insight-6.8/gdb/cp-support.c: ret = cp_comp_to_string (ret_comp, estimated_len);
insight-6.8/gdb/cp-support.c: ret = cp_comp_to_string (ret_comp, 10);
insight-6.8/gdb/cp-support.c: ret = cp_comp_to_string (ret_comp, 10);
insight-6.8/gdb/cp-support.c: ret = cp_comp_to_string (ret_comp, 10);
insight-6.8/gdb/cp-support.c: ret = cp_comp_to_string (d_left (ret_comp), 10);
insight-6.8/gdb/cp-name-parser.c:cp_comp_to_string (struct demangle_component *result, int estimated_len)

zypper se cp-support
ничего не находит.

rmn 21.09.2010 21:28

3BEPYLLlKA, тут уже дело в другом.

А почему ты собираешь не самый последний релиз?
Последний - 6.8-1, а у тебя 6.8
ftp://sourceware.org/pub/insight/rel...-6.8-1.tar.bz2

Какая версия gcc используется для сборки? Посмотри zypper se gcc


Текущее время: 01:16. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot