漂网一叶舟 发表于 2006-5-5 19:48:38

天气预报软件问题

我安装的magic linux,想安装一个天气预报小小程序,下了kweather 0.96a版,但安装不进去,不管是i386、i586的rpm包还是.src.rpm,还是kweather-0.96a.tar.gz,都安装不进去,
我刚学不久,请各位大侠指教~

jiangtao9999 发表于 2006-5-5 20:11:54

怎么装不进去?

漂网一叶舟 发表于 2006-5-5 20:19:02

# rpm -ivh kweather-0.96a-2.i686.rpm
error: Failed dependencies:
      libkdecore.so.2 is needed by kweather-0.96a-2.i686
      libkdeui.so.2 is needed by kweather-0.96a-2.i686
      libqt.so.1 is needed by kweather-0.96a-2.i686
      libstdc++-libc6.1-2.so.3 is needed by kweather-0.96a-2.i686
# rpm -ivh kweather-0.96a-2.i586.rpm
error: Failed dependencies:
      libkdecore.so.2 is needed by kweather-0.96a-2.i586
      libkdeui.so.2 is needed by kweather-0.96a-2.i586
      libqt.so.1 is needed by kweather-0.96a-2.i586
      libstdc++-libc6.1-2.so.3 is needed by kweather-0.96a-2.i586
# rpm -ivh kweather-0.96a-2.i386.rpm
error: Failed dependencies:
      libkdecore.so.2 is needed by kweather-0.96a-2.i386
      libkdeui.so.2 is needed by kweather-0.96a-2.i386
      libqt.so.1 is needed by kweather-0.96a-2.i386
      libstdc++-libc6.1-2.so.3 is needed by kweather-0.96a-2.i386
#

漂网一叶舟 发表于 2006-5-5 20:23:06

# ./configure
loading cache ./config.cache
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 how to run the C++ preprocessor... g++ -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
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 ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for main in -lcompat... no
checking for main in -lcrypt... yes
checking for the third argument of getsockname... socklen_t
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 killpg in -lucb... no
checking for Qt... libraries /usr/lib/qt-3.3/lib, headers /usr/lib/qt-3.3/include
checking if Qt compiles without flags... no
checking for moc... /usr/lib/qt-3.3/bin/moc
checking for rpath... yes
checking for bool... yes
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler... gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler...
checking for g++... g++
checking whether the C++ compiler (g++-s) works... yes
checking whether the C++ compiler (g++-s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for KDE... libraries /usr/lib, headers /usr/include
checking for extra includes... no
checking for extra libs... no
checking for kde headers installed... configure: error: your system is not able to compile a small KDE application!
Check, if you installed the KDE header files correctly.
# make
make: *** 没有指明目标并且找不到 makefile。 停止。
#
---------------------------------------------------------------------------------------------------
# ls
acconfig.h    AUTHORS   config.cacheconfig.h.inconfigure   COPYING   kweather      kweather.specltmain.sh    missing      README
acinclude.m4ChangeLog   config.guessconfig.log   configure.inINSTALL   kweather.lsmlibtool      Makefile.ammkinstalldirsstamp-h.in
aclocal.m4    confdefs.hconfig.h.botconfig.sub   conftest.C    install-shkweatherrc    ltconfig       Makefile.inpo             TODO
#

jiangtao9999 发表于 2006-5-5 20:23:43

依赖不满足,你用的 rpm 不是 for ML 的。
用 src.rpm 吧
rpmbuild --rebuild kweather-0.96a-2.src.rpm --target=i686

之后到 /usr/src/mBuild/RPMS/i686 里找。

编译之前要保证依赖满足(这个依赖比 i686.rpm 低)

漂网一叶舟 发表于 2006-5-5 20:27:12

还是不行,郁闷
谢谢版主帮忙
# rpmbuild --rebuild kweather-0.96a-2.src.rpm --target=i686
Installing kweather-0.96a-2.src.rpm
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53219
+ umask 022
+ cd /usr/src/mBuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/mBuild/BUILD
+ rm -rf kweather-0.96a
+ /bin/gzip -dc /usr/src/mBuild/SOURCES/kweather-0.96a.tar.gz
+ tar -xvvf -
drwxrwxrwx 500/500         0 2000-04-08 09:18:44 kweather-0.96a/
-rw-rw-r-- 500/500       13689 2000-04-08 09:18:33 kweather-0.96a/Makefile.in
-rw-rw-r-- 500/500         0 1999-09-01 11:32:38 kweather-0.96a/README
-rw-rw-r-- 500/500          10 2000-03-27 05:36:20 kweather-0.96a/stamp-h.in
-rw-rw-r-- 500/500          30 1999-09-01 11:32:38 kweather-0.96a/AUTHORS
-rw-rw-r-- 500/500         718 1999-09-01 11:32:38 kweather-0.96a/COPYING
-rw-rw-r-- 500/500         127 1999-10-06 07:11:57 kweather-0.96a/ChangeLog
-rw-rw-r-- 500/500         240 1999-09-01 11:32:38 kweather-0.96a/INSTALL
-rw-rw-r-- 500/500         567 2000-03-29 09:38:32 kweather-0.96a/Makefile.am
-rw-rw-r-- 500/500         112 1999-09-01 11:32:38 kweather-0.96a/TODO
-rw-rw-r-- 500/500         732 1999-09-01 11:32:38 kweather-0.96a/acconfig.h
-rw-rw-r-- 500/500       74378 1999-09-01 11:32:38 kweather-0.96a/acinclude.m4
-rw-rw-r-- 500/500       75185 2000-03-27 05:34:20 kweather-0.96a/aclocal.m4
-rwxrwxr-x 500/500       24280 1999-09-01 11:32:38 kweather-0.96a/config.guess
-rw-rw-r-- 500/500         105 1999-09-01 11:32:38 kweather-0.96a/config.h.bot
-rw-rw-r-- 500/500         450 1999-09-01 11:32:38 kweather-0.96a/config.h.in
-rwxrwxr-x 500/500       19802 1999-09-01 11:32:38 kweather-0.96a/config.sub
-rwxrwxr-x 500/500      130959 2000-03-27 05:34:37 kweather-0.96a/configure
-rw-rw-r-- 500/500         738 2000-03-27 05:34:13 kweather-0.96a/configure.in
-rwxrwxr-x 500/500      4773 1999-09-01 11:32:38 kweather-0.96a/install-sh
-rwxrwxr-x 500/500       43107 1999-09-01 11:32:38 kweather-0.96a/ltconfig
-rw-rw-r-- 500/500       70979 1999-09-01 11:32:38 kweather-0.96a/ltmain.sh
-rw-rw-r-- 500/500      6274 1999-09-01 11:32:38 kweather-0.96a/missing
-rwxrwxr-x 500/500         730 1999-09-01 11:32:38 kweather-0.96a/mkinstalldirs
-rw-rw-r-- 500/500         470 2000-03-26 16:18:57 kweather-0.96a/kweather.lsm
-rw-rw-r-- 500/500      1169 2000-03-27 05:35:55 kweather-0.96a/kweather.spec
-rw-rw-r-- 500/500          72 2000-03-26 15:23:28 kweather-0.96a/kweatherrc
drwxrwxrwx 500/500         0 2000-04-08 09:18:51 kweather-0.96a/kweather/
-rw-rw-r-- 500/500       16679 2000-04-08 09:18:52 kweather-0.96a/kweather/Makefile.in
-rw-rw-r-- 500/500      2364 2000-03-29 09:38:32 kweather-0.96a/kweather/Makefile.am
-rw-rw-r-- 500/500      3862 2000-03-31 11:39:20 kweather-0.96a/kweather/configviewdata.cpp
-rw-rw-r-- 500/500      3505 2000-03-30 13:16:39 kweather-0.96a/kweather/configview.cpp
-rw-rw-r-- 500/500      2126 2000-03-27 12:36:22 kweather-0.96a/kweather/weatherdisplay.cpp
-rw-rw-r-- 500/500       12255 2000-04-05 13:53:53 kweather-0.96a/kweather/weather.cpp
-rw-rw-r-- 500/500      9772 2000-03-30 21:54:49 kweather-0.96a/kweather/kweather.cpp
-rw-rw-r-- 500/500         276 1999-09-01 11:32:39 kweather-0.96a/kweather/main.cpp
-rw-rw-r-- 500/500      1326 2000-03-30 21:54:49 kweather-0.96a/kweather/kweather.h
-rw-rw-r-- 500/500         267 1999-09-01 11:32:39 kweather-0.96a/kweather/kweather.kdelnk
-rw-rw-r-- 500/500      7494 1999-09-01 11:32:39 kweather-0.96a/kweather/kweather.xpm
-rw-rw-r-- 500/500         528 1999-09-01 11:32:39 kweather-0.96a/kweather/mini-kweather.xpm
-rw-rw-r-- 500/500       14476 2000-03-29 21:46:23 kweather-0.96a/kweather/weather.h
-rw-rw-r-- 500/500      1673 1999-09-01 11:32:39 kweather-0.96a/kweather/weatherdisplay.h
-rw-rw-r-- 500/500      3201 2000-03-31 11:39:20 kweather-0.96a/kweather/configview.h
drwxrwxrwx 500/500         0 2000-04-08 09:18:41 kweather-0.96a/kweather/docs/
-rw-rw-r-- 500/500       10484 2000-04-08 09:18:41 kweather-0.96a/kweather/docs/Makefile.in
-rw-rw-r-- 500/500         142 2000-03-29 09:38:32 kweather-0.96a/kweather/docs/Makefile.am
drwxrwxrwx 500/500         0 2000-04-08 09:18:44 kweather-0.96a/kweather/docs/en/
-rw-rw-r-- 500/500      7886 2000-04-08 09:18:44 kweather-0.96a/kweather/docs/en/Makefile.in
-rw-rw-r-- 500/500      1424 2000-03-29 09:38:32 kweather-0.96a/kweather/docs/en/Makefile.am
-rw-rw-r-- 500/500      1495 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index-1.html
-rw-rw-r-- 500/500      1988 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index-2.html
-rw-rw-r-- 500/500      1300 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index-3.html
-rw-rw-r-- 500/500      1216 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index-4.html
-rw-rw-r-- 500/500      1607 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index-5.html
-rw-rw-r-- 500/500      1237 1999-09-01 11:32:39 kweather-0.96a/kweather/docs/en/index-6.html
-rw-rw-r-- 500/500      1785 2000-03-27 01:16:07 kweather-0.96a/kweather/docs/en/index.html
-rw-rw-r-- 500/500      3245 2000-03-27 01:15:52 kweather-0.96a/kweather/docs/en/index.sgml
drwxrwxrwx 500/500         0 2000-04-08 09:18:48 kweather-0.96a/po/
-rw-rw-r-- 500/500      8213 2000-04-08 09:18:48 kweather-0.96a/po/Makefile.in
-rw-rw-r-- 500/500      1454 2000-03-29 09:38:32 kweather-0.96a/po/Makefile.am
-rw-rw-r-- 500/500      5119 2000-03-30 12:57:50 kweather-0.96a/po/kweather.pot
-rw-rw-r-- 500/500      5119 2000-03-30 12:57:03 kweather-0.96a/po/it.po
-rw-rw-r-- 500/500      5119 2000-03-30 12:57:03 kweather-0.96a/po/es.po
-rw-rw-r-- 500/500      5119 2000-03-30 12:57:51 kweather-0.96a/po/de.po
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kweather-0.96a
+ CFLAGS='-O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686'
+ CXXFLAGS='-O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686'
+ ./configure --with-install-root=/tmp/buildroot
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ) works... yes
checking whether the C compiler (gcc -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
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 ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for main in -lcompat... no
checking for main in -lcrypt... yes
checking for the third argument of getsockname... socklen_t
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 killpg in -lucb... no
checking for Qt... libraries /usr/lib/qt-3.3/lib, headers /usr/lib/qt-3.3/include
checking if Qt compiles without flags... no
checking for moc... /usr/lib/qt-3.3/bin/moc
checking for rpath... yes
checking for bool... yes
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler... gcc
checking whether the C compiler (gcc -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ) works... yes
checking whether the C compiler (gcc -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler...
checking for g++... g++
checking whether the C++ compiler (g++ -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -s) works... yes
checking whether the C++ compiler (g++ -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 -s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for KDE... libraries /usr/lib, headers /usr/include
checking for extra includes... no
checking for extra libs... no
checking for kde headers installed... configure: error: your system is not able to compile a small KDE application!
Check, if you installed the KDE header files correctly.
error: Bad exit status from /var/tmp/rpm-tmp.53219 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.53219 (%prep)
#

jiangtao9999 发表于 2006-5-5 20:27:59

回帖够快的………………

你那个 ./configure 可能需要加上 --kde-xxxx 的参数来定义 kde的 pregfix 。
应该是 /usr/kde3 ?

漂网一叶舟 发表于 2006-5-5 20:30:58

呵呵,我再试试
版主也够快阿~ :lol:

漂网一叶舟 发表于 2006-5-5 20:57:44

我的kde是升级过的 kde 3.5.2 版
刚才搜了一下,kde文件夹不在 /usr/ 中
-----------------------------------------------------------------
在 /etc/kde
我该怎样配置 configure 的参数呢,
我网上也搜了,不得要领
烦请各位指教

漂网一叶舟 发表于 2006-5-5 21:17:21

刚才大开里面的 install 文件,内容如下:
-----------------------------------------------
For RH 6.0 or LinuxPPC R5
%./configure
%make
%make install

For RH 5.0 or LinuxPPC R4
%aclocal
%autoheader
%automake
%perl automoc
%autoconf
%./configure
%make
%make install

***Note***
To install this program you must be logged in as root.
------------------------------------------------------------------------
既然一方法不行,我试了一下第二方法
但运行perl automoc 时出错,提示:
Can't open perl script "automoc": 没有那个文件或目录
----------------------------------------------------------------
是不是magic 不能装?

jiangtao9999 发表于 2006-5-5 21:18:21

用源代码,看看 ./configure --help 的输出,里面应该有个 kde 目录的选项。

漂网一叶舟 发表于 2006-5-5 21:23:26

# ./configure --help
Usage: configure
Options:
Configuration:
--cache-file=FILE       cache test results in FILE
--help                  print this message
--no-create             do not create output files
--quiet, --silent       do not print `checking...' messages
--version               print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX         install architecture-independent files in PREFIX
                        
--exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                        
--bindir=DIR            user executables in DIR
--sbindir=DIR         system admin executables in DIR
--libexecdir=DIR      program executables in DIR
--datadir=DIR         read-only architecture-independent data in DIR
                        
--sysconfdir=DIR      read-only single-machine data in DIR
--sharedstatedir=DIR    modifiable architecture-independent data in DIR
                        
--localstatedir=DIR   modifiable single-machine data in DIR
--libdir=DIR            object code libraries in DIR
--includedir=DIR      C header files in DIR
--oldincludedir=DIR   C header files for non-gcc in DIR
--infodir=DIR         info documentation in DIR
--mandir=DIR            man documentation in DIR
--srcdir=DIR            find the sources in DIR
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
                        run sed PROGRAM on installed program names
Host type:
--build=BUILD         configure for building on BUILD
--host=HOST             configure for HOST
--target=TARGET         configure for TARGET
Features and packages:
--disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG]include FEATURE
--with-PACKAGE[=ARG]    use PACKAGE
--without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR      X include files are in DIR
--x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:
--enable-debug          creates debugging code
--enable-strict         compiles with strict compiler options (may not work!)
--with-gnu-ld         assume the C compiler uses GNU ld
--disable-nls         do not use Native Language Support
--with-qt-dir         where the root of qt is installed
--with-qt-includes      where the Qt includes are.
--with-qt-libraries   where the Qt library is installed.
--with-extra-includes   adds non standard include paths
--with-extra-libs       adds non standard library paths
--disable-path-check    don't try to find out, where to install
--with-install-root   the root, where to install to
--disable-rpath         do not use the rpath feature of ld
#                        
呵呵,我直接先贴上来再看 :-D

漂网一叶舟 发表于 2006-5-5 21:53:07

我是在这个网站下的:http://prdownloads.sourceforge.net/kweather/

sejishikong 发表于 2006-5-5 21:55:21

你的lkde相关的devel包没装?
不过天气预报的话,可以用karabama里的插件。3.5.2的kde自带的。

jiangtao9999 发表于 2006-5-5 21:59:54

karabama 在 3.5.2 的哪里?

我没找到………… :oops:
页: [1] 2
查看完整版本: 天气预报软件问题