有成功安装Kylix软件的吗?

软件和网站开发以及相关技术探讨
回复
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

有成功安装Kylix软件的吗?

#1

帖子 feeling » 2006-05-09 14:02

以前在RedHat下安装过,跟Windows下的C++ Builder、Delphi一样,感觉很不错。
不知道ubuntu下是否也可以安装成功?
如果有的话,可以尝试下载、安装。
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

看到了一篇帖子!

#2

帖子 feeling » 2006-05-10 14:37

首先要安装好Ubuntu——废话。

然后,就是装Kylix3。为了保险起见,我是在root用户下安装的,可能用sudo方式也可以。另,据说需要在英文方式下安装,所以我切换到英文状态下装的——即使是装成中文的Ubuntu也可以在登录前选择语言——没试过在中文方式下安装行不行。

据我的经验是,在ubuntu 5.1下直接安装Kylix3会报错:libgtk版本不对。解决办法当然就是装一个对的版本:

sudo apt-get install libgtk1.2
装好libgtk应该就可以顺利安装Kylix3了。不过就算安装成功,它还是不能运行。报一个类似这样错误:

raptor:~$ startdelphi/usr/local/kylix3/bin/delphi: relocation error: /usr/local/kylix3/bin/libwine.borland.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
据说是因为Kernel的版本(Ubuntu 5.1是用2.6的Kernel)太高,见borland QC的解决方案:

LD_ASSUME_KERNEL=2.4.0 startdelphi
如此便可以成功启动Kylix3的Delphi。不过还是有一个这样的错误,不知道为什么曾经出过这个错(后来又没有了):

raptor: $ startdelphi.../usr/local/kylix3/bin/transdlg: error while loading shared libraries: libXaw.so.6: cannot open shared object file: No such file or directory
而且虽然Delphi可以启动了,但是Kylix3的BCB还是无法运行,报一个类似这样的错误:

raptor: $ startbcb/usr/local/kylix3/bin/bcblin: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
参照共创这篇文章说是因为glibc/gcc的版本太高所致。但用文中所说的办法:


cd /usr/libsudo ln -sf libstdc++.so.6.0.5 libstdc++-libc6.1-1.so.2
其 中的libstc++.so.6.0.5是在Ubuntu 5.1中实际存在的版本。我这样改过以后,BCB只是显示出一个Splash就不动了,还是不能用。也试过将gcc 4.4删除,装了与内核编译时一致的gcc 3.4.5,并将CC环境变量设置为这个版本的gcc,但好像也没有用。至今(3月20日)未能解决,求助。


后 来又发现,Kylix Delphi虽然可以运行并且编译程序,但是编译出来的结果无法运行——指在IDE中无法以调试方式运行,一运行就导致Kylix进程死掉,但据说在 RedHat 9中只要将Kernel设置为2.4.1即可解决此问题,可是此法在ubuntu/debian下无效。至今(3月20日)未能解决,求助。

但是脱离IDE环境是可以单独运行的,方法参见2001年我在RedHat下用时写的文章《用 Kylix 进行 Linux 应用开发的常见问题及解决》。原文拉拉杂杂说了一堆,其实就是路径问题,总结如下:

最简单的办法就是修改profile文件(我是修改了我的~/.bash_profile),在最后加上一句:

source /usr/local/kylix3/bin/kylixpath
这样就可以把所需要的环境变量都设置好了。另外,如果还不行的话,可以再加上ldconfig试试,方法是在/etc目录下编辑或新建(如果不存在的话)rc.ld.conf文件,在其中加入:

/usr/local/kylix3/bin
然后运行:

sudo ldconfig
更新一下即可。
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#3

帖子 feeling » 2006-05-10 14:38

按照上面说的内容,我在虚拟机上安装成功了Kylix3
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#4

帖子 feeling » 2006-05-10 14:41

网络上有一个补丁:

解决Kylix3-BCB在MandrakeLinux9.1和RedHat9.0等新版Linux不能编译的补丁 版本: 1.0
发布时间: 2003年04月09日
软件描述:

此补丁解决Kylix3-BCB在MandrakeLinux9.1和RedHat9.0等新版Linux不能编译的问题。

使用方法:

1、解压:tar zxvf kylix3libpatch_mdk9.1_rhl9.tar.gz

2、将解出来的3个文件:crt1.o,libc.so,libpthread.so拷贝到$(BCB)/lib/obj中($(BCB)指你的Kylix3的安装目录)

3、新建一工程,点击菜单Project->Options...->Directories/Conditionals,将Include Path:设为/usr/include行头,
如:/usr/include:$(BCB)/include/stlport:$(BCB)/include:$(BCB)/include/vcl

4、点击“OK”保存,再按Ctrl+F9编译工程,一切OK,又可以用C++写Linux应用了。

COOL!
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#5

帖子 feeling » 2006-05-10 14:42

但是,这个补丁影响了系统的内容:
I think it's not good to overwrite the files in /usr/include, because they're part of the glibc package. Overwritting them will cause trouble to other programs those rely on glibc!

The following is the method I'm using. Use it at your own risk and good luck.

Installing Kylix 3 in Redhat version > 7.2
prepared by Henry Leung <henryl@net-yan.com>


The Borland Kylix 3 is designed to run on glibc 2.1, therefore it's certified to operate on Redhat Linux 7.2. For version greater than 7.2, the glibc package have been upgraded to glibc 2.2 or greater, therefore it will generate errors during compilation.
To solve this problem, we need to install a compatible version of glibc, i.e. Compat-glibc. Besides, we also need to change the include path and library path in the project options. The following is the procedures:

Install the package Xfree86-devel. It contains libX11.so, and Kylix needs it.

Get the software package compat-glibc-6.2-2.1.3.2 from Redhat 7.2 CD, or from ftp websites. Install the package:
rpm -ivh compat-glibc-6.2-2.1.3.2.rpm
Execute the Kylix installation program, using -m argument for non-rpm install, as many versions of rpm have problem in relocating the software package:
sh ./setup.sh -m
Complete the registration and copy the registration file to your home directory. Then execute:
startbcb
When Kylix comes up, DO NOT open any project yet. You need to change the default settings. Set the include path and the library path to the compatible version of glibc:
Click Project – Options – Directories/Conditions
In the Include Path field, replace /usr/include with /usr/i386-glibc21-linux/include. Also move this entry to the top of the list.
In the Library Path field, replace /usr/lib with /usr/i386-glibc21-linux/lib. Again move the entry to the top.

Additional notes for Redhat 9
Kylix has compatibility problem with RH9 kernel. One workaround is to use
the following when calling Kylix:

export LD_ASSUME_KERNEL=2.2.5; startbcb

Now the installation is complete and try to run a simple program for testing. Good luck.
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#6

帖子 feeling » 2006-05-10 14:58

谁有文件compat-glibc-6.2-2.1.3.2.rpm,麻烦给发一份:
ym_boco@163.com
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#7

帖子 feeling » 2006-05-10 18:13

人生若只如初见,何事秋风悲画扇?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

Kylix的补丁

#8

帖子 feeling » 2006-05-11 13:50

人生若只如初见,何事秋风悲画扇?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

相关地址

#9

帖子 feeling » 2006-05-11 13:50

人生若只如初见,何事秋风悲画扇?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

不错的参考

#10

帖子 feeling » 2006-05-11 13:52

人生若只如初见,何事秋风悲画扇?
maggie
帖子: 1
注册时间: 2006-05-15 18:18

#11

帖子 maggie » 2006-05-15 18:20

请问楼主你上面那个问题解决了嘛?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#12

帖子 feeling » 2006-05-16 10:01

现在的问题是:
单独的执行编译unit是没有问题的,但是一执行build就崩溃。
bcblin: ../VMem.c:90: AutoSetLastError: Assertion `!"Bad error code"' failed.
/usr/local/bin/startbcb: line 25: 16212 Killed /usr/local/kylix3/bin/bcblin $*

查了一下,说是ilink、ilink.so的bug。我下载了所谓的patch,但是问题依旧。
人生若只如初见,何事秋风悲画扇?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#13

帖子 feeling » 2006-06-05 14:19

代码: 全选

startbcb
bcblin: ../VMem.c:90:AutoSetLastError: 断言“!"Bad error code"”失败。
/usr/local/bin/startbcb: line 33:  4607 已杀死               /opt/kylix3/bin/bcblin $*

人生若只如初见,何事秋风悲画扇?
头像
feeling
帖子: 175
注册时间: 2006-04-29 20:10
来自: 北京·昌平
联系:

#14

帖子 feeling » 2006-06-05 14:59

maggie 写了:请问楼主你上面那个问题解决了嘛?
没有,用了很多办法都没有解决掉 ^_^
我打算放弃kylix了!
人生若只如初见,何事秋风悲画扇?
xiazai
帖子: 6
注册时间: 2006-06-27 9:47

现在哪里能下载KYLIX3企业版

#15

帖子 xiazai » 2006-06-29 16:27

不要给我道听途说的地址和源码盟动力的

要一定能下的
回复