kylix 安装之后运行注册出错...
- acaldata
- 帖子: 24
- 注册时间: 2005-08-02 11:52
- 来自: 南宁
- acaldata
- 帖子: 24
- 注册时间: 2005-08-02 11:52
- 来自: 南宁
- id_sonic
- 帖子: 339
- 注册时间: 2005-04-08 18:08
- 来自: Chongqing
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- acaldata
- 帖子: 24
- 注册时间: 2005-08-02 11:52
- 来自: 南宁
- acaldata
- 帖子: 24
- 注册时间: 2005-08-02 11:52
- 来自: 南宁
- feeling
- 帖子: 175
- 注册时间: 2006-04-29 20:10
- 来自: 北京·昌平
- 联系:
解决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!
是一个类似于patch的东东:http://kylix.linuxaid.com.cn/xoops2/mod ... id=8&lid=9
发布时间: 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!
是一个类似于patch的东东:http://kylix.linuxaid.com.cn/xoops2/mod ... id=8&lid=9
- feeling
- 帖子: 175
- 注册时间: 2006-04-29 20:10
- 来自: 北京·昌平
- 联系:
再看看这个说法,似乎不需要安装上面的东东也可以:
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.
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.