QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 869|回复: 6

发现在MLfinal 下安装什么软件都出错?

[复制链接]
发表于 2005-4-16 12:12:00 | 显示全部楼层 |阅读模式
比如安装fish-0.1.1.tar.gz, ./configure通过,但是make就出现一堆问题:
#make

make  all-recursive
make[1]: Entering directory `/home/yuy2/fish-0.1.1'
Making all in fish
make[2]: Entering directory `/home/yuy2/fish-0.1.1/fish'
Making all in docs
make[3]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs'
Making all in en
make[4]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs/en'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs/en'
make[4]: Entering directory `/home/yuy2/fish-0.1.1/fish/docs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs'
make[3]: Leaving directory `/home/yuy2/fish-0.1.1/fish/docs'
make[3]: Entering directory `/home/yuy2/fish-0.1.1/fish'
g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/rpm    -O2 -fno-exceptions -fno
-rtti -fno-check-new -c versionstring.cpp
In file included from versionstring.cpp:19:
versionstring.h:27: error: expected class-name before '{' token
versionstring.h:31: error: ISO C++ forbids declaration of `string' with no type
versionstring.h:32: error: ISO C++ forbids declaration of `string' with no type
versionstring.h:32: error: ISO C++ forbids declaration of `string' with no type
versionstring.cpp: In constructor `VersionString::VersionString()':
versionstring.cpp:31: error: class `VersionString' does not have any field named
`string'
versionstring.cpp: In constructor `VersionString::VersionString(const char*)':
versionstring.cpp:43: error: class `VersionString' does not have any field named
`string'
versionstring.cpp: At global scope:
versionstring.cpp:55: error: expected `,' or `...' before "initializer"
versionstring.cpp:55: error: ISO C++ forbids declaration of `string' with no typ
e
versionstring.cpp: In constructor `VersionString::VersionString(int)':
versionstring.cpp:55: error: class `VersionString' does not have any field named
`string'
versionstring.cpp:55: error: `initializer' undeclared (first use this function)
versionstring.cpp:55: error: (Each undeclared identifier is reported only once f
or each function it appears in.)
versionstring.cpp: At global scope:
versionstring.cpp:67: error: expected `,' or `...' before "version"
versionstring.cpp:67: error: ISO C++ forbids declaration of `string' with no typ
e
versionstring.cpp:67: error: redefinition of `VersionString::VersionString(int)'
versionstring.cpp:55: error: `VersionString::VersionString(int)' previously defi
ned here
versionstring.cpp: In constructor `VersionString::VersionString(int)':
versionstring.cpp:67: error: class `VersionString' does not have any field named
`string'
versionstring.cpp:67: error: `version' undeclared (first use this function)
versionstring.cpp:67: error: `release' undeclared (first use this function)
versionstring.cpp: In member function `int16 VersionString::compareVersionString
s(const VersionString&, const VersionString&) const':
versionstring.cpp:176: error: `string' undeclared (first use this function)
versionstring.cpp:176: error: expected `;' before "epochString1"
versionstring.cpp:177: error: expected `;' before "versionString1"
versionstring.cpp:178: error: expected `;' before "releaseString1"
versionstring.cpp:184: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:186: error: no match for 'operator[]' in 'version1'
versionstring.cpp:194: error: `epochString1' undeclared (first use this function
)
versionstring.cpp:194: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:197: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:199: error: no match for 'operator[]' in 'version1[j]'
versionstring.cpp:205: error: `versionString1' undeclared (first use this functi
on)
versionstring.cpp:205: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:207: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:209: error: `releaseString1' undeclared (first use this functi
on)
versionstring.cpp:209: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:209: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:212: error: 'const class VersionString' has no member named 'l
ength'
versionstring.cpp:214: error: no match for 'operator[]' in 'version2'
versionstring.cpp:222: error: `epochString2' undeclared (first use this function
)
versionstring.cpp:222: error: 'const class VersionString' has no member named 's
ubstr'
versionstring.cpp:225: error: 'const class VersionString' has no member named 'length'
versionstring.cpp:227: error: no match for 'operator[]' in 'version2[j]'
versionstring.cpp:233: error: `versionString2' undeclared (first use this function)
versionstring.cpp:233: error: 'const class VersionString' has no member named 'substr'
versionstring.cpp:235: error: 'const class VersionString' has no member named 'length'
versionstring.cpp:237: error: `releaseString2' undeclared (first use this function)
versionstring.cpp:237: error: 'const class VersionString' has no member named 'substr'
versionstring.cpp:237: error: 'const class VersionString' has no member named 'length'
make[3]: *** [versionstring.o] 错误 1
make[3]: Leaving directory `/home/yuy2/fish-0.1.1/fish'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/yuy2/fish-0.1.1/fish'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/yuy2/fish-0.1.1'
make: *** [all-recursive-am] 错误 2
发表于 2005-4-16 12:31:00 | 显示全部楼层
是这个软件本身的错误。你这样说话太不负责任了。
回复

使用道具 举报

发表于 2005-4-16 12:34:06 | 显示全部楼层
很多软件都需要打补丁,特别是古老的软件。
回复

使用道具 举报

发表于 2005-4-16 12:44:35 | 显示全部楼层
我装好多软件不出错的。
出错很多时间也不是系统的问题。
找找问题的原因,就可以搞定。
实在搞不定,就只好上网找找其它版本了。
回复

使用道具 举报

 楼主| 发表于 2005-4-16 14:37:00 | 显示全部楼层
我下载这个软件是想安装其它的软件,因为我安装别的软件一样出错。难道能在redhat下用的在别的linux下不能用?那出那么多的linux有什么用?这不是浪费资源吗?反复重作相同的事,有必要吗?还不如专攻一个,多开发应用软得件,这样才有出路。这也是微软的方法。如果没有应用前景,操作系统作漂亮了,也会消失。 最起码普通老百姓不会用。
回复

使用道具 举报

发表于 2005-4-16 14:50:03 | 显示全部楼层
我想是因为这个代码太古老,已经不能在新的编译器和库文件里编译了。
我在 RedHat 里也经常遇到。一般找最新版的代码就可以了。
不然就把 ML 的 gcc 和其他的有关的 devel 文件降级。
估计 gcc 3.2 以前可以编译吧?

ML 的 bmp-mp4 插件就遇到了这种问题,升级到了新的代码就没事了。


还有就是什么叫浪费资源?难道现在许多软件在 Win95 里可以运行,到 WinXP 里就不能用就不叫浪费资源?!
说话前先过过脑子。
回复

使用道具 举报

发表于 2005-4-16 15:38:06 | 显示全部楼层
老软件经常不能在新环境下编译。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-26 12:23 , Processed in 0.106515 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表