免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2284 | 回复: 16
打印 上一主题 下一主题

用RPM包安装软件怎么这样难! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-07 19:20 |只看该作者 |倒序浏览
安装zhcon时提示需要其它三个包,下载完那三个包后,在安装这三个包时又各提示需要好几个其它的RPM包,搞的我头都大了,实在是太麻烦了,如何才能将需要的RPM包在装系统时一次装好呀(或以后在装RPM包时能少提示缺少相依赖的包呀)!

论坛徽章:
0
2 [报告]
发表于 2005-03-07 19:29 |只看该作者

用RPM包安装软件怎么这样难!

下载zhcon的源码包
./configure
make
make install

就这么简单

论坛徽章:
0
3 [报告]
发表于 2005-03-07 19:33 |只看该作者

用RPM包安装软件怎么这样难!

但是我安装源码包也提示有错误,安装不上,如何才能避免错误的发生呢

论坛徽章:
0
4 [报告]
发表于 2005-03-07 19:39 |只看该作者

用RPM包安装软件怎么这样难!

这是./configure 后的提示
loading cache ./config.cache
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 a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
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...
checking for gcc... (cached) gcc
checking whether the C compiler (gcc   -lutil) works... yes
checking whether the C compiler (gcc   -lutil) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a C++-Compiler...
checking for g++... (cached) g++
checking whether the C++ compiler (g++  -O2 -DNDEBUG -funsigned-char -Wall  -lutil) works... yes
checking whether the C++ compiler (g++  -O2 -DNDEBUG -funsigned-char -Wall  -lutil) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether g++ supports -fexceptions... (cached) yes
checking whether g++ supports -frtti... (cached) yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking whether g++ supports -frepo... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for g++ option to produce PIC... (cached)  -fPIC
checking if g++ PIC flag  -fPIC works... (cached) yes
checking if g++ static flag -static works... (cached) yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.lo... yes
checking if g++ supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for dlfcn.h... (cached) yes
checking whether a program can dlopen itself... (cached) no
creating libtool
loading cache ./config.cache
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... (cached) no
checking for extra includes... no
checking for extra libs... no
creating ./config.status
creating Makefile
creating zhcon/Makefile
creating zhcon/docs/Makefile
creating zhcon/docs/en/Makefile
creating zhcon/ime/Makefile
creating zhcon/font/Makefile
creating config.h
config.h is unchanged

论坛徽章:
0
5 [报告]
发表于 2005-03-07 19:52 |只看该作者

用RPM包安装软件怎么这样难!

哪里有错误啊?

论坛徽章:
0
6 [报告]
发表于 2005-03-07 20:03 |只看该作者

用RPM包安装软件怎么这样难!

是阿,这不都在顺利进行么?
rpm是由RedHat开发的软件包格式,可以自动安装。使用方便。
tar是传统格式的压缩包。打开压缩后通常要用./configure、./make、./make install
之类的命令才能安装好(看readme安装),但是它可以指定安装目录,比较自由。

论坛徽章:
0
7 [报告]
发表于 2005-03-07 20:04 |只看该作者

用RPM包安装软件怎么这样难!

再看一下 make 后的提示

In file included from configfile.cpp:21:
configfile.h:33: syntax error before `&' token
configfile.h:35: syntax error before `&' token
configfile.h:35: `int ConfigFile::GetOption(...)' and `bool
   ConfigFile::GetOption(...)' cannot be overloaded
configfile.h:37: ISO C++ forbids declaration of `string' with no type
configfile.h:37: syntax error before `&' token
configfile.h:41: `istream' was not declared in this scope
configfile.h:41: `in' was not declared in this scope
configfile.h:41: invalid data member initialization
configfile.h:41: (use `=' to initialize static data members)
configfile.h:41: variable or field `ParseFile' declared void
configfile.h:42: invalid use of member `ConfigFile::string'
configfile.h:42: invalid use of member `ConfigFile::string'
configfile.h:42: ISO C++ forbids declaration of `map' with no type
configfile.h:42: template-id `map<<expression error>;, <expression error>; >;'
   used as a declarator
configfile.h:42: syntax error before `;' token
configfile.h:43: 'Map' is used as a type, but is not defined as a type.
configfile.cpp: In constructor `ConfigFile::ConfigFile(const char*)':
configfile.cpp:24: `ifstream' undeclared (first use this function)
configfile.cpp:24: (Each undeclared identifier is reported only once for each
   function it appears in.)
configfile.cpp:24: syntax error before `(' token
configfile.cpp:25: `in' undeclared (first use this function)
configfile.cpp:26: `runtime_error' undeclared (first use this function)
configfile.cpp:27: `this->;ConfigFile:arseFile' cannot be used as a function
configfile.cpp: At global scope:
configfile.cpp:33: `istream' was not declared in this scope
configfile.cpp:33: `void ConfigFile:arseFile' is not a static member of `
   class ConfigFile'
configfile.cpp:33: variable `void ConfigFile:arseFile' has initializer but
   incomplete type
configfile.cpp:33: syntax error before `{' token
configfile.cpp:36: syntax error before `while'
configfile.cpp:39: ISO C++ forbids declaration of `o' with no type
configfile.cpp:39: invalid conversion from `const char*' to `int'
configfile.cpp:40: ISO C++ forbids declaration of `v' with no type
configfile.cpp:40: invalid conversion from `const char*' to `int'
configfile.cpp:41: ISO C++ forbids declaration of `p' with no type
configfile.cpp:41: conflicting types for `int p'
configfile.cpp:35: previous declaration as `const char*p'
configfile.cpp:41: `s' was not declared in this scope
configfile.cpp:42: syntax error before `while'
configfile.cpp:52: ISO C++ forbids declaration of `mMap' with no type
configfile.cpp:52: variable-sized object `mMap' may not be initialized
configfile.cpp:52: storage size of `mMap' isn't constant
configfile.cpp:52: size of variable `int mMap[((o - 1) + 1)]' is too large
configfile.cpp:53: syntax error before `}' token
configfile.cpp:57: syntax error before `&' token
configfile.cpp: In member function `bool ConfigFile::GetOption(...)':
configfile.cpp:58: `Map' undeclared (first use this function)
configfile.cpp:58: syntax error before `::' token
configfile.cpp:59: `w' undeclared (first use this function)
configfile.cpp:59: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:60: request for member `end' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:61: `defval' undeclared (first use this function)
configfile.cpp: At global scope:
configfile.cpp:70: syntax error before `&' token
configfile.cpp:72: ISO C++ forbids declaration of `w' with no type
configfile.cpp:72: `int w' used prior to declaration
configfile.cpp:72: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:73: syntax error before `if'
configfile.cpp:79: syntax error before `&' token
configfile.cpp:79: prototype for `int ConfigFile::GetOption(...)' does not
   match any in class `ConfigFile'
configfile.cpp:57: candidate is: bool ConfigFile::GetOption(...)
configfile.cpp:79: `int ConfigFile::GetOption(...)' and `bool
   ConfigFile::GetOption(...)' cannot be overloaded
configfile.cpp: In member function `int ConfigFile::GetOption(...)':
configfile.cpp:80: syntax error before `::' token
configfile.cpp:81: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:82: request for member `end' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:85: invalid type argument of `unary *'
make[3]: *** [configfile.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

论坛徽章:
0
8 [报告]
发表于 2005-03-07 20:07 |只看该作者

用RPM包安装软件怎么这样难!

是不是没贴全?
我看不出是因为什么出的问题

论坛徽章:
0
9 [报告]
发表于 2005-03-07 20:20 |只看该作者

用RPM包安装软件怎么这样难!

都贴完了呀

论坛徽章:
0
10 [报告]
发表于 2005-03-07 20:26 |只看该作者

用RPM包安装软件怎么这样难!

再贴一遍make 后的提示:

[root@asd zhcon-0.1]# make
make  all-recursive
make[1]: Entering directory `/root/zhcon/zhcon-0.1'
Making all in zhcon
make[2]: Entering directory `/root/zhcon/zhcon-0.1/zhcon'
Making all in docs
make[3]: Entering directory `/root/zhcon/zhcon-0.1/zhcon/docs'
Making all in en
make[4]: Entering directory `/root/zhcon/zhcon-0.1/zhcon/docs/en'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon/docs/en'
make[4]: Entering directory `/root/zhcon/zhcon-0.1/zhcon/docs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon/docs'
make[3]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon/docs'
Making all in ime
make[3]: Entering directory `/root/zhcon/zhcon-0.1/zhcon/ime'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon/ime'
Making all in font
make[3]: Entering directory `/root/zhcon/zhcon-0.1/zhcon/font'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon/font'
make[3]: Entering directory `/root/zhcon/zhcon-0.1/zhcon'
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -DNDEBUG -funsigned-char -Wall -c kscmdecoder.cpp
kscmdecoder.cpp:40:2: warning: no newline at end of file
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -DNDEBUG -funsigned-char -Wall -c jisdecoder.cpp
jisdecoder.cpp:42:2: warning: no newline at end of file
g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -DNDEBUG -funsigned-char -Wall -c configfile.cpp
In file included from configfile.cpp:21:
configfile.h:33: syntax error before `&' token
configfile.h:35: syntax error before `&' token
configfile.h:35: `int ConfigFile::GetOption(...)' and `bool
   ConfigFile::GetOption(...)' cannot be overloaded
configfile.h:37: ISO C++ forbids declaration of `string' with no type
configfile.h:37: syntax error before `&' token
configfile.h:41: `istream' was not declared in this scope
configfile.h:41: `in' was not declared in this scope
configfile.h:41: invalid data member initialization
configfile.h:41: (use `=' to initialize static data members)
configfile.h:41: variable or field `ParseFile' declared void
configfile.h:42: invalid use of member `ConfigFile::string'
configfile.h:42: invalid use of member `ConfigFile::string'
configfile.h:42: ISO C++ forbids declaration of `map' with no type
configfile.h:42: template-id `map<<expression error>;, <expression error>; >;'
   used as a declarator
configfile.h:42: syntax error before `;' token
configfile.h:43: 'Map' is used as a type, but is not defined as a type.
configfile.cpp: In constructor `ConfigFile::ConfigFile(const char*)':
configfile.cpp:24: `ifstream' undeclared (first use this function)
configfile.cpp:24: (Each undeclared identifier is reported only once for each
   function it appears in.)
configfile.cpp:24: syntax error before `(' token
configfile.cpp:25: `in' undeclared (first use this function)
configfile.cpp:26: `runtime_error' undeclared (first use this function)
configfile.cpp:27: `this->;ConfigFile:arseFile' cannot be used as a function
configfile.cpp: At global scope:
configfile.cpp:33: `istream' was not declared in this scope
configfile.cpp:33: `void ConfigFile:arseFile' is not a static member of `
   class ConfigFile'
configfile.cpp:33: variable `void ConfigFile:arseFile' has initializer but
   incomplete type
configfile.cpp:33: syntax error before `{' token
configfile.cpp:36: syntax error before `while'
configfile.cpp:39: ISO C++ forbids declaration of `o' with no type
configfile.cpp:39: invalid conversion from `const char*' to `int'
configfile.cpp:40: ISO C++ forbids declaration of `v' with no type
configfile.cpp:40: invalid conversion from `const char*' to `int'
configfile.cpp:41: ISO C++ forbids declaration of `p' with no type
configfile.cpp:41: conflicting types for `int p'
configfile.cpp:35: previous declaration as `const char*p'
configfile.cpp:41: `s' was not declared in this scope
configfile.cpp:42: syntax error before `while'
configfile.cpp:52: ISO C++ forbids declaration of `mMap' with no type
configfile.cpp:52: variable-sized object `mMap' may not be initialized
configfile.cpp:52: storage size of `mMap' isn't constant
configfile.cpp:52: size of variable `int mMap[((o - 1) + 1)]' is too large
configfile.cpp:53: syntax error before `}' token
configfile.cpp:57: syntax error before `&' token
configfile.cpp: In member function `bool ConfigFile::GetOption(...)':
configfile.cpp:58: `Map' undeclared (first use this function)
configfile.cpp:58: syntax error before `::' token
configfile.cpp:59: `w' undeclared (first use this function)
configfile.cpp:59: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:60: request for member `end' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:61: `defval' undeclared (first use this function)
configfile.cpp: At global scope:
configfile.cpp:70: syntax error before `&' token
configfile.cpp:72: ISO C++ forbids declaration of `w' with no type
configfile.cpp:72: `int w' used prior to declaration
configfile.cpp:72: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:73: syntax error before `if'
configfile.cpp:79: syntax error before `&' token
configfile.cpp:79: prototype for `int ConfigFile::GetOption(...)' does not
   match any in class `ConfigFile'
configfile.cpp:57: candidate is: bool ConfigFile::GetOption(...)
configfile.cpp:79: `int ConfigFile::GetOption(...)' and `bool
   ConfigFile::GetOption(...)' cannot be overloaded
configfile.cpp: In member function `int ConfigFile::GetOption(...)':
configfile.cpp:80: syntax error before `::' token
configfile.cpp:81: request for member `find' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:82: request for member `end' in `mMap', which is of
   non-aggregate type `int[((o - 1) + 1)]'
configfile.cpp:85: invalid type argument of `unary *'
make[3]: *** [configfile.o] Error 1
make[3]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zhcon/zhcon-0.1/zhcon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zhcon/zhcon-0.1'
make: *** [all-recursive-am] Error 2
[root@asd zhcon-0.1]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP