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


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

Автор Тема: apt-build  (Прочитано 9376 раз)

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

Оффлайн Alex2000

  • Автор темы
  • Активист
  • *
  • Сообщений: 317
    • Просмотр профиля
apt-build
« : 10 Ноября 2007, 02:00:29 »
Поставил apt-build, пытаюсь откомпилить mc. Запускаю с ключем reinstall, поскольку mc уже установлен. Компилируется нормально, но ставиться не хочет, пишет, что у меня уже последняя версия mc  :o. Удалил mc, снова запускаю apt-build, в конце концов выдает:
Цитировать
Не удалось загрузить http://ubuntu.intergenia.de/ubuntu/pool/universe/m/mc/mc_4.6.1-7ubuntu1_i386.deb  Не совпадает размер
E: Невозможно загрузить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом –fix-missing
Теперь и apt-get также ругается. Вобщем, остался я без mc :(, хорошо хоть sudo apt-build world не написал.

Оффлайн Alex2000

  • Автор темы
  • Активист
  • *
  • Сообщений: 317
    • Просмотр профиля
Re: apt-build
« Ответ #1 : 10 Ноября 2007, 02:35:38 »
mc ставится ручками из /var/cache/apt-build/repository. И через apt-get, если /var/cache/apt-build/repository из sources.list удалить, а через apt-build никак не хочет.
« Последнее редактирование: 10 Ноября 2007, 02:53:51 от Alex2000 »

Оффлайн AV1611

  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
Re: apt-build
« Ответ #2 : 10 Ноября 2007, 13:08:37 »
Поставил apt-build, пытаюсь откомпилить mc. Запускаю с ключем reinstall, поскольку mc уже установлен. Компилируется нормально, но ставиться не хочет, пишет, что у меня уже последняя версия mc  :o. Удалил mc, снова запускаю apt-build, в конце концов выдает:
Цитировать
Не удалось загрузить http://ubuntu.intergenia.de/ubuntu/pool/universe/m/mc/mc_4.6.1-7ubuntu1_i386.deb  Не совпадает размер
E: Невозможно загрузить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом –fix-missing
Теперь и apt-get также ругается. Вобщем, остался я без mc :(, хорошо хоть sudo apt-build world не написал.
всё можно, только apt-build работает хорошо с кучей ключей, один из которых - --force-yes
и строчка со скомпилированными бинарниками от apt-build должна стоять *первой* в списке репозиториев в sources.list.
apt-build --rebuild --force-yes --yes install mc
успехов!

Оффлайн Alex2000

  • Автор темы
  • Активист
  • *
  • Сообщений: 317
    • Просмотр профиля
Re: apt-build
« Ответ #3 : 11 Ноября 2007, 00:08:10 »
всё можно, только apt-build работает хорошо с кучей ключей, один из которых - --force-yes
и строчка со скомпилированными бинарниками от apt-build должна стоять *первой* в списке репозиториев в sources.list.
apt-build --rebuild --force-yes --yes install mc
успехов!
Результат тот же. Если mc уже установлен через apt-get, то пишет что уже установлена последняя версия. Если mc удалить, то первая строчка в sources.list
deb file:/var/cache/apt-build/repository apt-build main
игнорируется, все равно тянет из интернета и выдает ошибку. Даже если на скомпилированный deb кликнуть, пишет:
Цитировать
Эта версия доступна в источнике програмного обеспечения
Вам рекомендуется поставить эту программу из источника програмного обеспечения
Замечание переводчикам: программного с двумя м пишется.

Оффлайн AV1611

  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
Re: apt-build
« Ответ #4 : 11 Ноября 2007, 13:47:45 »
хм, интересно....
надо попробовать самому (честно признаюсь, писал по опыту из дебиана; но ведь всё должно рботать таким же образом! разницы не должно быть)
ану-ка попробуйте ещё банальный apt-get upgrade (по этой команде у меня при deb file:/var/cache/apt-build/repository apt-build main на первой позиции в сорс.лист устанавливались оттуда все пакеты, скомпилированные apt-build)
##добавлено
только что прогнал apt-build --rebuild --force-yes --yes install mc
всё ОК
« Последнее редактирование: 11 Ноября 2007, 14:07:22 от AV1611 »

Оффлайн kaminari

  • Новичок
  • *
  • Сообщений: 22
    • Просмотр профиля
Re: apt-build
« Ответ #5 : 14 Июня 2008, 04:21:38 »
Если mc уже установлен через apt-get, то пишет что уже установлена последняя версия. Если mc удалить, то первая строчка в sources.list
deb file:/var/cache/apt-build/repository apt-build main
игнорируется, все равно тянет из интернета и выдает ошибку. Даже если на скомпилированный deb кликнуть, пишет:
Цитировать
Эта версия доступна в источнике програмного обеспечения
Вам рекомендуется поставить эту программу из источника програмного обеспечения

Попробуй так:
sudo apt-build --rebuild --reinstall --force-yes --yes install mc
У меня получилось, без "--reinstall" ту же муть выдавал.
А вот если попробовать что-нибудь посерьезней собрать, например firefox или ktorrent, он говорит следующую хрень:
Цитировать
...
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [obj-i486-linux-gnu/config.status] Ошибка 77
dpkg-buildpackage: сбой: debian/rules build возвратил код ошибки 2
----> Cleaning up object files <-----
Cleaning in directory .
test -x debian/rules
dh_testroot
rmdir obj-i486-linux-gnu
rmdir: не удалось удалить `obj-i486-linux-gnu': Directory not empty
make: [cleanbuilddir] Ошибка 1 (игнорирована)
/usr/bin/make -f debian/rules reverse-config
make[1]: Вход в каталог `/var/cache/apt-build/build/ktorrent-2.2.5'
for i in ./admin/config.guess ./admin/config.sub  ; do \
      if test -e $i.cdbs-orig ; then \
         mv $i.cdbs-orig $i ; \
      fi ; \
   done
make[1]: Выход из каталога `/var/cache/apt-build/build/ktorrent-2.2.5'
if [ "reverse-patches" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
patches: debian/patches/kubuntu_03_remove_nasty_search_engines.patch
Trying reverse patch debian/patches/kubuntu_03_remove_nasty_search_engines.patch at level 1 ... success.
if [ "reverse-patches" != "reverse-patches" ]; then touch debian/stamp-patched; fi
if [ "reverse-patches" != "reverse-patches" ] ; then \
      /usr/bin/make -f debian/rules update-config ; \
   fi
for dir in debian/patches ; do \
       rm -f $dir/*.log ; \
   done
rm -rf obj-i486-linux-gnu
for i in ./admin/config.guess ./admin/config.sub  ; do \
      if test -e $i.cdbs-orig ; then \
         mv $i.cdbs-orig $i ; \
      fi ; \
   done
dh_clean
/usr/bin/make -C obj-i486-linux-gnu -k distclean
make: *** obj-i486-linux-gnu: No such file or directory.  Останов.
make: [makefile-clean] Ошибка 2 (игнорирована)
rm -f debian/stamp-makefile-build
rm -f debian/stamp-autotools-files
rm -f debian/stamp-kde-apidox
rm -rf po/*.pot
# clean up edited .desktop etc files
if [ -f /usr/lib/kubuntu-desktop-i18n/createdesktop.pl ]; then \
     sh /usr/lib/kubuntu-desktop-i18n/findfiles LIST; \
     for file in `cat LIST`; do \
        sed -i '/X-Ubuntu-Gettext-Domain=/d' ${file}; \
     done; \
     rm -f LIST; \
   fi
rm -f ktorrent.1
Error while building ktorrent!
Sorry, no package to install.

Использую g++ 4,2
Как лечить?
« Последнее редактирование: 14 Июня 2008, 04:30:49 от kaminari »

Оффлайн rubiсon

  • Активист
  • *
  • Сообщений: 285
  • u guys... srsly...
    • Просмотр профиля
Re: apt-build
« Ответ #6 : 14 Июня 2008, 18:01:27 »
Нагугли C compiler cannot create executables
<Aoi-chan> everyone's first vi session. ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat

Оффлайн kaminari

  • Новичок
  • *
  • Сообщений: 22
    • Просмотр профиля
Re: apt-build
« Ответ #7 : 15 Июня 2008, 21:37:28 »
Вот нагуглил похожую тему
http://ubuntuforums.org/showthread.php?t=17033

Там все решается установкой пакетов libc6-dev, gcc и g++
Но у меня все эти пакеты уже стоят (я даже переустановить их пробоввал) и выдает ту же ошибку.

Оффлайн rubiсon

  • Активист
  • *
  • Сообщений: 285
  • u guys... srsly...
    • Просмотр профиля
Re: apt-build
« Ответ #8 : 16 Июня 2008, 09:29:59 »
Вот нагуглил похожую тему
http://ubuntuforums.org/showthread.php?t=17033

Там все решается установкой пакетов libc6-dev, gcc и g++
Но у меня все эти пакеты уже стоят (я даже переустановить их пробоввал) и выдает ту же ошибку.
Тогда зайди в диру с сырцами (/var/cache/apt-build/build/...) и сделай руками ./configure. Он должен проверить зависимости для сборки, а потом уже сказать C compiler cannot блабла. Вот желательно этот листинг сюда запостить.
<Aoi-chan> everyone's first vi session. ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat

Оффлайн kaminari

  • Новичок
  • *
  • Сообщений: 22
    • Просмотр профиля
Re: apt-build
« Ответ #9 : 17 Июня 2008, 21:42:32 »
Вот такая получается мура:
Цитировать
# ./configure
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... mawk
checking for nsinstall... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for perl5... no
checking for perl... /usr/bin/perl
checking for minimum required perl version >= 5.004... 5.010000
checking for full perl installation... yes
checking for doxygen... :
checking for whoami... /usr/bin/whoami
checking for autoconf... /usr/bin/autoconf
checking for unzip... /usr/bin/unzip
checking for makedepend... /usr/bin/makedepend
checking for xargs... /usr/bin/xargs
checking for gmake... no
checking for make... /usr/bin/make
checking for X... libraries , headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether ld has archive extraction flags... yes
checking that static assertion macros used in autoconf tests work... yes
checking for 64-bit OS... yes
checking for ANSI C header files... yes
checking for working const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for st_blksize in struct stat... yes
checking for siginfo_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int64... no
checking for uint... yes
checking for uint_t... no
checking for uint16_t... no
checking for uname.domainname... yes
checking for uname.__domainname... no
checking for usable wchar_t (2 bytes, unsigned)... no
checking for compiler -fshort-wchar option... yes
checking for visibility(hidden) attribute... yes
checking for visibility(default) attribute... yes
checking for visibility pragma support... yes
checking For gcc visibility bug with class-level attributes (GCC bug 26905)... no
checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/byteorder.h... no
checking for compat.h... no
checking for getopt.h... yes
checking for sys/bitypes.h... yes
checking for memory.h... yes
checking for unistd.h... yes
checking for gnu/libc-version.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for X11/XKBlib.h... yes
checking for sys/statvfs.h... yes
checking for sys/statfs.h... yes
checking for sys/vfs.h... yes
checking for sys/mount.h... yes
checking for mmintrin.h... yes
checking for new... yes
checking for sys/cdefs.h... yes
checking for gethostbyname_r in -lc_r... no
checking for atan in -lm... yes
checking for dlopen in -ldl... yes
checking for dlfcn.h... yes
checking for socket in -lsocket... no
checking for XDrawLines in -lX11... yes
checking for XextAddDisplay in -lXext... yes
checking for XtFree in -lXt... yes
checking for XineramaIsActive in -lXinerama... yes
checking for X11/extensions/Xinerama.h... yes
checking for XShmCreateImage in -lXext... yes
checking for X11/extensions/XShm.h... yes
checking for XieFloGeometry in -lXIE... no
checking for X11/extensions/XIElib.h... no
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 6.1.0... yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... yes
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking for random... yes
checking for strerror... yes
checking for lchown... yes
checking for fchmod... yes
checking for snprintf... yes
checking for statvfs... yes
checking for memmove... yes
checking for rint... yes
checking for stat64... yes
checking for lstat64... yes
checking for flockfile... yes
checking for getpagesize... yes
checking for localtime_r... yes
checking for strtok_r... yes
checking for wcrtomb... yes
checking for mbrtowc... yes
checking for res_ninit()... yes
checking for gnu_get_libc_version()... yes
checking for iconv in -lc... yes
checking for iconv()... yes
checking for iconv() with const input... no
checking for nl_langinfo and CODESET... yes
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... no
checking for C++ exceptions flag... -fno-exceptions
checking for gcc 3.0 ABI... yes
checking for C++ "explicit" keyword... yes
checking for C++ "typename" keyword... yes
checking for modern C++ template specialization syntax support... yes
checking whether partial template specialization works... yes
checking whether operators must be re-defined for templates derived from templates... no
checking whether we need to cast a derived template to pass as its base class... no
checking whether the compiler can resolve const ambiguities for templates... yes
checking whether the C++ "using" keyword can change access... yes
checking whether the C++ "using" keyword resolves ambiguity... yes
checking for "std::" namespace... yes
checking whether standard template operator!=() is ambiguous... unambiguous
checking for C++ reinterpret_cast... yes
checking for C++ dynamic_cast to void*... yes
checking whether C++ requires implementation of unused virtual methods... yes
checking for trouble comparing to zero near std::operator!=()... no
checking for LC_MESSAGES... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 1.3.7... yes
checking MOZ_GTK2_CFLAGS... -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/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 
checking MOZ_GTK2_LIBS...   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
configure: error: --enable-application=APP is required

Хотя, например, калькулятор таким способом нормально собрался, а через apt-build то же самое выдавал.
« Последнее редактирование: 17 Июня 2008, 21:51:45 от kaminari »

Оффлайн rubiсon

  • Активист
  • *
  • Сообщений: 285
  • u guys... srsly...
    • Просмотр профиля
Re: apt-build
« Ответ #10 : 18 Июня 2008, 11:36:32 »
configure: error: --enable-application=APP is required
Что по этому поводу говорит ./configure --help?
<Aoi-chan> everyone's first vi session. ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat

Оффлайн Nick F0x

  • Активист
  • *
  • Сообщений: 317
  • Или ты имеешь мир, или наоборот, третьего не дано.
    • Просмотр профиля
    • f0x.ru
Re: apt-build
« Ответ #11 : 19 Декабря 2008, 19:29:15 »
вопрос, а как заставить dpkg-buildpackage при этом использовать мной определённые CFLAGS? почему сбрасыввает на дефолтовые...(

Оффлайн thunderamur

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 6846
    • Просмотр профиля
Re: apt-build
« Ответ #12 : 29 Марта 2009, 23:14:53 »
узнал про apt-build, щас сидел ждал пока скомпилется один только видеопроигрыватель из сырцов и понял, что apt-build world лучше не пробовать, останусь без компа на несколько суток  :buck2:

========================

ппц, но какой эффект... теперь стартует практически мгновенно и главное пропал тормоз почти в 1 сек. при закрытии.

Оффлайн xenar

  • Участник
  • *
  • Сообщений: 110
  • OC: Ubuntu 12.04
    • Просмотр профиля
Re: apt-build
« Ответ #13 : 30 Марта 2009, 09:16:40 »
Тоже только вчера узнал об этой замечательной штуки. Эффект конечно очень заметен  :D А кто нибуть пробовал собирать с максимальным уровнем оптимазации? Там было предупреждение о нестабильности и я не рискнул...

Оффлайн thunderamur

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 6846
    • Просмотр профиля
Re: apt-build
« Ответ #14 : 30 Марта 2009, 10:25:43 »
и не надо быть слишком жадным  ;)

я вот щас компилю потихоньку некоторые пакеты и всё, в принципе итак всё шустро работает.

totem, firefox, geany, gedit. Думаю ещё попробовать nautilus.

З.Ы.: думаю тему надо перенести в другой раздел.

 

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