Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: [РЕШЕНО] немогу собрать из исходников  (Прочитано 11756 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Dexxy15

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Здраствуйте ;>
решил поставить Midnight Commander Скачал mc-4.6.1.tar.gz распаковал зашел с консоли
cd /home/andrew/Загрузки/mc-4.7.1 ввел ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
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 ISO C89... none needed
checking dependency style of gcc... gcc3
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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.exe... 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 dependency style of g++... none
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for strerror in -lcposix... no
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation
checking for perl... /usr/bin/perl
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... no
configure: error: glib-2.0 not found or version too old (must be >= 2.8)

Понял что нужна новая версия glib-2.0 зашел http://ftp.gnome.org/pub/gnome/sources/glib/2.22/ и скачал tar.gz пакет

andrew@andrew-desktop:~/Загрузки/glib-2.22.5$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for the BeOS... no
checking for Win32... no
checking for Mac OS X Carbon support... checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... 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 ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether we are using the GNU C++ compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
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 ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for pkg-config... /usr/bin/pkg-config
checking for gawk... (cached) mawk
checking for perl5... no
checking for perl... perl
checking for indent... no
checking for perl... /usr/bin/perl
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
checking for iconv_open... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether we are using the GNU C Library 2.1 or newer... yes
checking Whether to cache iconv descriptors... no
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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html

как установить это дело мучаюсь уже всю жизнь немогу некак поставить

« Последнее редактирование: 01 Апреля 2010, 21:06:01 от Dexxy15 »

Оффлайн xrayman

  • Участник
  • *
  • Сообщений: 153
  • Ubuntu 10.04
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #1 : 01 Апреля 2010, 20:34:27 »
Нужен пакет libglib2.0-dev
проще всего сделать
sudo apt-get build-dep mc
и оно само поставит что надо

p.s. есть такая хорошая вещь - спойлер. в него надо прятать всякую фигню, типа вывода ./configure

Оффлайн ende_neu

  • Старожил
  • *
  • Сообщений: 2473
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #2 : 01 Апреля 2010, 20:34:48 »

Оффлайн athost

  • Старожил
  • *
  • Сообщений: 1897
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #3 : 01 Апреля 2010, 20:36:08 »
Цитировать
** You must have either have gettext support in your C library

Пишет же , почти по-русски, что хочет gettext
Пакеты точно не помню. Ставь до кучи

sudo apt-get install gettext-base liblocale-gettext-perl
Хотя не понятно, зачем ты его собираешь, когда он есть в ppa-репах на launchpad.net

Оффлайн Dexxy15

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #4 : 01 Апреля 2010, 20:40:13 »
в репах бывают зачастую несвежие версии замечал нераз да и самому надо учиться все это делать

Оффлайн athost

  • Старожил
  • *
  • Сообщений: 1897
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #5 : 01 Апреля 2010, 20:43:08 »
Еще раз -- PPA LAUNCHPAD.NET

Оффлайн xrayman

  • Участник
  • *
  • Сообщений: 153
  • Ubuntu 10.04
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #6 : 01 Апреля 2010, 20:43:28 »
andrew@andrew:~$ apt-cache show mc | grep -i version
Version: 2:4.6.2-2ubuntu1

А ты собираешь 4.6.1, если верить первым числам в твоем посте или 4.7.1 - если верить вторым. В первом случае кагбэ не известно что более несвежее

Оффлайн athost

  • Старожил
  • *
  • Сообщений: 1897
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #7 : 01 Апреля 2010, 20:47:54 »

Оффлайн ende_neu

  • Старожил
  • *
  • Сообщений: 2473
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #8 : 01 Апреля 2010, 20:49:19 »
Пусть учится человек, чо пристали? (^_^)
MC -пакет безбидный, а всякие отсутствующие фишки включить при самостоятельной сборке можно.

Оффлайн Dexxy15

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #9 : 01 Апреля 2010, 20:54:07 »
итак снова появилась проблема установил глиб ставил ставить Midnight Commander и вот что

checking for nroff... true
checking for manual formatting macros... -mandoc
checking for option to disable ANSI color in manuals... none
checking if nroff accepts -Tlatin1 or -Tascii... -Tlatin1
checking for file... true
checking for -L option to file command... yes
checking for subshell support... yes
checking SLANG-headers in default place ...
checking for slang.h... no
checking for slang/slang.h... no
checking SLANG-headers in /usr ...
checking for slang.h... no
checking for slang/slang.h... no
checking SLANG-headers in /usr/local ...
checking for slang.h... no
checking for slang/slang.h... no
configure: error: Slang header not found
andrew@andrew-desktop:~/Загрузки/mc-4.7.1$

как собсвенно теперь это решить?  это предпоследние строчки

serenitatis

  • Гость
Re: немогу собрать из исходников
« Ответ #10 : 01 Апреля 2010, 20:56:17 »
Вам нужен dev-пакет slang. Поищите в синаптике, там что-то подобное точно есть. Странно видеть такие проблемы, я себе MC собрал легко и непринужденно.

Оффлайн xrayman

  • Участник
  • *
  • Сообщений: 153
  • Ubuntu 10.04
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #11 : 01 Апреля 2010, 20:56:29 »
мб sudo apt-get install libslang2-dev?

Оффлайн Dexxy15

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #12 : 01 Апреля 2010, 21:01:34 »
а еще хотел спросить это надо делать


./configure --prefix=/usr чтоб установить в папку usr или просто надо ./configure  :idiot2:
извините за тупость но я весь интернет перерыл и ненашел понятных ответов а вам спасибо большое что помогаете

serenitatis

  • Гость
Re: немогу собрать из исходников
« Ответ #13 : 01 Апреля 2010, 21:03:19 »
Я делал просто ./configure. Далее как обычно.

Оффлайн Dexxy15

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: немогу собрать из исходников
« Ответ #14 : 01 Апреля 2010, 21:04:53 »
все спасибо всем надеюсь разобрался я ;)

 

Страница сгенерирована за 0.054 секунд. Запросов: 23.