[Решено]проблемы с компиляцией KTorrent 2.2.4 (под Kubuntu 7.04)

Kubuntu, Xubuntu и другие

Модератор: Модераторы разделов

Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

[Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

На ноуте стоит кубунта 7.04 (7.10 не использую из-за проблем с acpi).
Соответственно KTorrent 2.1, и выше через репозитории feisty не обновляется.
И вот падает он регулярно...
Скачал с офсайта сырцы версии 2.2.4, запустил конфигуратор, получил такой ответ:

Код: Выделить всё

./configure
 checking build system type... i686-pc-linux-gnulibc1
 checking host system type... i686-pc-linux-gnulibc1
 checking target system type... i686-pc-linux-gnulibc1
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for -p flag to install... yes
 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 for kde-config... /usr/bin/kde-config
 checking where to install... /usr (as returned by kde-config)
 checking for style of include used by make... GNU
 checking for gcc... gcc
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 See `config.log' for more details.

ну и, соответственно, config.log

Код:

cat config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = asus-L4R uname -m = i686 uname -r = 2.6.20-15-generic uname -s = Linux uname -v = #2 SMP Sun Apr 15 07:36:31 UTC 2007 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2169: checking build system type configure:2187: result: i686-pc-linux-gnulibc1 configure:2209: checking host system type configure:2224: result: i686-pc-linux-gnulibc1 configure:2246: checking target system type configure:2261: result: i686-pc-linux-gnulibc1 configure:2323: checking for a BSD-compatible install configure:2379: result: /usr/bin/install -c configure:2394: checking for -p flag to install configure:2407: result: yes configure:2418: checking whether build environment is sane configure:2461: result: yes configure:2476: checking for a thread-safe mkdir -p configure:2515: result: /bin/mkdir -p configure:2528: checking for gawk configure:2558: result: no configure:2528: checking for mawk configure:2544: found /usr/bin/mawk configure:2555: result: mawk configure:2566: checking whether make sets $(MAKE) configure:2587: result: yes configure:2793: checking for kde-config configure:2855: result: /usr/bin/kde-config configure:2950: checking where to install configure:2954: result: /usr (as returned by kde-config) configure:3009: checking for style of include used by make configure:3037: result: GNU configure:3184: checking for gcc configure:3200: found /usr/bin/gcc configure:3211: result: gcc configure:3449: checking for C compiler version configure:3456: gcc --version >&5 gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4) Copyright © 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3459: $? = 0 configure:3466: gcc -v >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) configure:3469: $? = 0 configure:3476: gcc -V >&5 gcc: '-V' option must have argument configure:3479: $? = 1 configure:3502: checking for C compiler default output file name configure:3529: gcc conftest.c >&5 /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:3532: $? = 1 configure:3570: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ktorrent" | #define VERSION "2.2.4" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3577: error: C compiler cannot create executables See `config.log' for more details.


внимание, вопрос :rolleyes:
что делать?
Варианты:
1) забить
2) найти способ и установить скомпилированный KTorrent
3) разобраться с настройками компилятора, линкера етс.
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Аватара пользователя
Uncle_Theodore
Сообщения: 3339
ОС: Slackware 12.2, ArchLinux 64

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Uncle_Theodore »

Чтобы устранить эту ошибку, мне кажется, надо установить пакет build-essential.
А то, что падает -- это странно. С какой ошибкой падает?
Спасибо сказали:
Current_Density
Сообщения: 773
Статус: Участник

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Current_Density »

Голосую за пункт 2! "найти способ и установить скомпилированный KTorrent"

Тем более что он есть в Backports
https://help.ubuntu.com/community/UbuntuBackports
http://packages.ubuntu.com/feisty-backports/net/ktorrent
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Спасибо, за быструю реакцию!
Пытаюсь следовать совету UncleTheodor'а, установил build-essential. ./configure продвигается значительно дальше, но, тем не менее, завершается со следующей ошибкой:

Код: Выделить всё

...
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking sizeof size_t == sizeof unsigned long... yes
checking for PIE support... yes
checking if enabling -pie/fPIE support... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!


ну, и кусок config.log'а

Код:

configure:28878: gcc -o conftest -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute conftest.c -lXt >&5 conftest.c:40:27: error: X11/Intrinsic.h: No such file or directory conftest.c: In function 'main': conftest.c:44: warning: implicit declaration of function 'XtMalloc' configure:28884: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ktorrent" | #define VERSION "2.2.4" | #define KDELIBSUFF "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define HAVE_SGI_STL 1 | #define HAVE_CRYPT 1 | #define kde_socklen_t socklen_t | #define ksize_t socklen_t | #define HAVE_SYS_TYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_SYS_BITYPES_H 1 | #define HAVE_RES_INIT 1 | #define HAVE_RES_INIT 1 | #define HAVE_RES_INIT_PROTO 1 | #define SIZEOF_INT 4 | #define SIZEOF_SHORT 2 | #define SIZEOF_LONG 4 | #define SIZEOF_CHAR_P 4 | #define SIZEOF_SIZE_T 4 | #define SIZEOF_UNSIGNED_LONG 4 | #define HAVE_VSNPRINTF 1 | #define HAVE_SNPRINTF 1 | /* end confdefs.h. */ | #include <X11/Intrinsic.h> | int | main () | { | XtMalloc(1) | ; | return 0; | } configure:29022: error: Can't find X libraries. Please check your installation and add the correct paths!


насчет ошибки с которой падает kTorrent сообщить не готов, но он в настоящий момент ещё работает, так что если упадёт, сообщу подробности.
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Current_Density
Сообщения: 773
Статус: Участник

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Current_Density »

uptime писал(а):
08.12.2007 19:13
error: Can't find X libraries.

Надо xorg-dev поставить.

ЗЫ Backports! :)
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Спасибо, Current_Density, xorg-dev поставил.
Теперь ещё вот этого хочет: :)

Код: Выделить всё

...
checking for extra libs... no
checking for libz... -lz
checking for libpng... no
checking for libjpeg6b... no
checking for libjpeg... no
configure: WARNING: libjpeg not found. disable JPEG support.
checking for perl... /usr/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.


какие пакеты ставить?

... ага, нашел libqt4-dev, 35 метров скачать, 104 метра на диске, качаемс..
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Аватара пользователя
Uncle_Theodore
Сообщения: 3339
ОС: Slackware 12.2, ArchLinux 64

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Uncle_Theodore »

libqt3-dev, надо полагать...
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Uncle_Theodore писал(а):
08.12.2007 19:37
libqt3-dev, надо полагать...

ыыы.., невнимательность меня подвела :blush:
вот ужо qt4 скачается, будем qt3 качать...
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Current_Density
Сообщения: 773
Статус: Участник

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Current_Density »

uptime,
по аналогии с Х.
qt3-dev-tools
libqt3-headers
Что-то в этом роде.

ЗЫ Backports! Backports! :)
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Current_Density, спасибо :)
про бэкпортс помню, но девелопмент мне пригодится и для других целей, так что пока идём этим путём.
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Пакет назывался libqt3-mt-dev.
Поставлен. Следующая хотелочка :)

Код: Выделить всё

checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /usr/share/qt3/lib, headers /usr/share/qt3/include using -mt
checking for moc... /usr/share/qt3/bin/moc
checking for uic... /usr/share/qt3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!


ставлю kdelibs-dev...
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Current_Density
Сообщения: 773
Статус: Участник

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Current_Density »

uptime,
По моему kde-devel надо.
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

ещё попросил gmp.
Ставим libgmp3-dev...

всё, проверка на вшивость пройдена...

make
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Аватара пользователя
uptime
Сообщения: 1661
Статус: Drinker with computing problems
ОС: kubuntu 8.04

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение uptime »

Всё. KTorrent 2.2.4 успешно скомпилирован и установлен благодаря помощи Current_Density и Uncle_Theodore. Спасибо!

Краткая выжимка:
Для того, чтобы установить KTorrent 2.2.4 на Kubuntu 7.04 нужно скачать его исходники с оф.сайта и установить следующие пакеты:
build-essential
xorg-dev
libqt3-mt-dev
kdelibs-dev
libgmp3-dev

после чего, выполнить обычную последовательность:
./configure
make
sudo make install clean

Другим способом является использование Backports
https://help.ubuntu.com/community/UbuntuBackports
http://packages.ubuntu.com/feisty-backports/net/ktorrent

успехов
The answer, my friend, is blowin' in the wind.
The answer is blowin' in the wind.
Спасибо сказали:
Current_Density
Сообщения: 773
Статус: Участник

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение Current_Density »

Супер!
Только вместо
make install
лучше использовать
checkinstall
он соберет обычный пакет (.deb для убунты/дебиана, можно и другие).
Его можно будет ставить-удалять с помощью dpkg, а также раздавать друзьям :)
Спасибо сказали:
soft87
Сообщения: 1

Re: [Решено]проблемы с компиляцией KTorrent 2.2.4

Сообщение soft87 »

могу скинуть deb пакет amd64.
Спасибо сказали: