URN Logo
UNIX Resources » Linux » China Linux Forum » 自由软件杂谈 » 27 » Linux存在兼容性问题?
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  TI专版
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
Linux存在兼容性问题?
Linux存在兼容性问题? - yulq [2001-12-17 19:50 | 404 byte(s)]
 
Re: Linux存在兼容性问题? - matrice [2001-12-17 20:25 | 227 byte(s)]
 
Re: Linux存在兼容性问题? - yulq [2001-12-17 20:28 | 45 byte(s)]
 
Re: Linux存在兼容性问题? - Toukp [2001-12-19 11:28 | 289 byte(s)]
 
Re: Linux存在兼容性问题? - matrice [2001-12-17 20:40 | 126 byte(s)]
 
Re: Linux存在兼容性问题? - yulq [2001-12-18 14:59 | 454 byte(s)]
 
yulg. Have you given it up? - linux_frog [2001-12-20 15:01 | 278 byte(s)]
 
Re: yulg. Have you given it up? - yulq [2001-12-21 11:45 | 92 byte(s)]
 
A simpler solution - linux_frog [2001-12-19 15:59 | 871 byte(s)]
 
Re: Linux存在兼容性问题? - matrice [2001-12-18 19:28 | 162 byte(s)]
 
Re: Linux存在兼容性问题? - yulq [2001-12-18 09:27 | 128 byte(s)]
 
Re: Linux存在兼容性问题? - linux_frog [2001-12-18 16:14 | 1,681 byte(s)]
 
Re: Linux存在兼容性问题? - yulq [2001-12-18 19:25 | 1,065 byte(s)]
 
Re: Linux存在兼容性问题? - gaia [2001-12-22 06:56 | 213 byte(s)]
 
Re: Linux存在兼容性问题? - yulq [2001-12-22 14:49 | 68 byte(s)]
 
Re: Linux存在兼容性问题? - linux_frog [2001-12-19 15:36 | 946 byte(s)]
 
Re: Linux存在兼容性问题? - geya [2001-12-19 11:59 | 241 byte(s)]
 
Subject: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-17 19:50    Length: 404 byte(s)
[Original] [Print] [Top]
不知道大家是否遇到过这种情况,即在老版本的linux(如redhat 5.x, kernel 2.0.x, gcc 2.7.x)下编译的程序无法在最新的版本(redhat7.x,kernel 2.4.x, gcc 2.9.x)下运行,系统显示的错误为No such file or directory或是Segmentation fault, core dump。我已经排除了文件属性和执行路径问题。请问各位高手这是不是说明Linux存在兼容性问题?如果不是,请问怎样解决此问题?如果是,难道linux还不如windows? :-(

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: matrice    Posted: 2001-12-17 20:25    Length: 227 byte(s)
[Original] [Print] [Top]
问题出在glibc上吧,redhat 5.0用的是libc5,而以后
都用glibc2.x了。
如果你非要用那些软件,好象也可以在新的linux发行里
找到libc5的包,安装一下再看看。


喜欢linux, 喜欢自由软件
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-17 20:28    Length: 45 byte(s)
[Original] [Print] [Top]
难道这些C库函数不兼容吗?

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: matrice    Posted: 2001-12-17 20:40    Length: 126 byte(s)
[Original] [Print] [Top]
我想不是兼容不兼容的问题,问题是你运行那些程序
需要libc5的支持。


喜欢linux, 喜欢自由软件
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-18 09:27    Length: 128 byte(s)
[Original] [Print] [Top]
我用GnoRPM查找了Redhat7.1的两张安装盘,没有找到libc5 请问到那里有libc5,安装后会不会与现在的系统配置相冲突?

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-18 14:59    Length: 454 byte(s)
[Original] [Print] [Top]
I find a libc5 rpm package on rpmfind.net, but when I try to install it by
#rpm -i libc5-5.4.38-3.i386.rpm, the system replies:
file /etc/nsswitch.conf from install of libc5-5.4.38-3confilicts with file from package glibc-2.2.2-10.
and I type rpm -q libc5-5.4.38-3.i386.rpm to see if it is installed and get the answer NO. Can you tell how to install this package so that libc5 and glibc2 can work together.

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: linux_frog    Posted: 2001-12-18 16:14    Length: 1,681 byte(s)
[Original] [Print] [Top]
Hey. Can you tell us why do you want to run those old programs?

Open source means you can always recompile your code with a new
version of library, which is usually not possible in proprietary software world. Personally, I also think such binary incompatiblity in Windows is not as common as in linux. However, since we have source code available, pratically it is not a serious problem.

BTW, do you know how much MS paid trying to synchronize APIs from win3.1 to WinXP? I've ever read a review from a programmer in WINE project, in which he said a lot of times they have to reimplement the bugs in Win32 API so to be binary compatible with Windows appilcations. You can guess from that even MS itself need to keep those bugs so that APIs are binary compatible.

Given another example in real world that a lot of people in US still depend on Win95 for their major paltform. First, because they already spent a lot of money on WIN95 paltform(imagine how much a company will cost to replace a liscient of 1000 Win95 seats with that of WinXP?). Second, because the individule users and the lazy administrators get used to it. Of course this won't happe in China, since we can easily buy a prirated copy of the newest software. Do you think thisi will happen in Linux world?
Maybe, but in much smaller scale. Everybody can easily and cheaply get a copy of the newest linux distribution.

This topic can bring out a lot of debates. It is not easy to say which is obviously better. Maybe a guy with a good MS programing background can give out more valueable ideas.

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-18 19:25    Length: 1,065 byte(s)
[Original] [Print] [Top]
Thank you for your comments on the compability problem, I know what you mean. Yes, keep a OS's compability do need a lot of effort and it is painstaking. However, It definitely benifit users as it save users' previous work and time, money they have spent. The developers can accomodate their code to adapt it to the new release of linux, but what can an end user do? Take my case for instance, I use a vrml1.0 viewer with the name 'VRweb' in my research, This program was developed by IICM (http://www2.iicm.edu/Cvrweb) on linux 2.0.37 several years ago and they have stopped this project. It works well under Redhat 5.1. For some reasons I upgrade(new install) my system to Redhat 7.1. This program does not work any more. I have got the source code but cannot compile it without errors. You may suggest me to find other vrm1.0 viewers to replace this old one. But vrweb is the only one to interpret vrml 1.0 files under linux platform. That is the reason why I propose this compability problem under linux and try to find a answer to solve it.

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: matrice    Posted: 2001-12-18 19:28    Length: 162 byte(s)
[Original] [Print] [Top]
我找过了,也没有找到可以装的。
好像比较新的debian里有libc5的包,其它
比较新的发行中都没有。


喜欢linux, 喜欢自由软件
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: Toukp    Posted: 2001-12-19 11:28    Length: 289 byte(s)
[Original] [Print] [Top]
就像在windows之下的VB一樣...

有個叫什麼vb300/400/500的DLL ...
如果你寫的vb程序要用vb300就不能在vb500中咝幸粯拥览...


http://home.macau.ctm.net/~toukp
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: geya    Posted: 2001-12-19 11:59    Length: 241 byte(s)
[Original] [Print] [Top]
你既然是在编译时出现错误,那么你求助时就应该给出编译时的错误信息,而不是笼统地抱怨什么兼容性不好,拿一顶大帽子来,谁愿意顶在自己脑袋上?

There are three kinds of people: those
who can count, and those who can not.
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: linux_frog    Posted: 2001-12-19 15:36    Length: 946 byte(s)
[Original] [Print] [Top]
It is not a good idea to install conflicting libraries using rpm.
Go to www.kernel.org/pub/linux/libs/libc5/, download the tar ball of the versoin of libc5 you need. Extract, compile and install it to a specific directory such as /opt or /opt/libc5. To avoid possible troubles, don't update ldconfig or /etc/ld.conf . Recompile your application with " LD_LIBRARY_PATH=/opt/lib5 gcc -L/opt/libc5 -lc -lm *.c " option.

If you have only one program need libc5, you can even put libc5 and your program together, compile and install them in one package/directory. In fact, a lot of Windows programs have DLLs in their packages, which cause a DLL mess on windows platform.

If the liscience of your code is open enough, you may even consider to post it out and let the hacker community help you.

Just my points of 5 cents value.

frog

[Original] [Print] [Top]
Subject: A simpler solution
Author: linux_frog    Posted: 2001-12-19 15:59    Length: 871 byte(s)
[Original] [Print] [Top]
I just have a look at the libc5-5.4.38-3.i386.rpm in rpmfind.net.
We may use a simpler soluction. Since the only file cauisng confilicts is /etc/nsswitch.conf. You can temprarily rename this file to something like /etc/nsswitch_conf, install libc5 rpm and then rename that file back(don't forget this step!!!)

To run your program, try "LD_LIBRARY_PATH=/usr/i486-linuxlibc5/lib program_name"
Of course you can also add "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/i486-linuxlibc5/lib"
to your enviroment and run your program directly. Since libc and libm has version number in their name, it won't creates confilicts with thoes libraries on your current system.

I am not sure if this works. Just have a try, it is an opportunity of learning.

frog

[Original] [Print] [Top]
Subject: yulg. Have you given it up?
Author: linux_frog    Posted: 2001-12-20 15:01    Length: 278 byte(s)
[Original] [Print] [Top]
Hey yulg. I still want to know if you tried and the result. It is a senseful topic. If it work, we may learn to know how to deal with such
cases later.

Give a response, Please.

Thanks,

frog

[Original] [Print] [Top]
Subject: Re: yulg. Have you given it up?
Author: yulq    Posted: 2001-12-21 11:45    Length: 92 byte(s)
[Original] [Print] [Top]
老兄,我的文件系统损坏,正准备重装系统,这事只能往后拖了。我肯定会试试。

[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: gaia    Posted: 2001-12-22 06:56    Length: 213 byte(s)
[Original] [Print] [Top]
Would you just try to run "ldd" with your program as its parameter then try to find out which libraries are "not found"?
That information might help.

万古是非浑短梦
[Original] [Print] [Top]
Subject: Re: Linux存在兼容性问题?
Author: yulq    Posted: 2001-12-22 14:49    Length: 68 byte(s)
[Original] [Print] [Top]
我试过了,bash还是输出No such file or directory.

[Original] [Print] [Top]
« Previous thread
Beg, Borrow, and Steal: Why Open Source is the onl
自由软件杂谈
27
Next thread »
写一个open source 的win xp怎么样?
     

Copyright © 2007~2009 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
webmaster: webmaster@unixresources.net
This page created on 2009-09-07 15:54:16, cost 0.0215730667114 ms.