Feanor
08-26-2003, 06:38 AM
While some or all of this information may be applicable to other linux distributions (the description below is for a non-rpm install, except for a compatible glibc for which it may be possible to install from source) I have only tested it on redhat9 with gnome.
To uninstall kylix use the uninstall script. ie:
/usr/local/kylix3/uninstall
Although installing Borland kylix3 Open Edition on redhat9 will seem successful (minus gnome menu items) numerous compiler errors will be reported if any attempt is made to build a c++ project. Although re-arranging the include priorities in the project options dialog will permit compilation, various linker errors will then be reported. These linker errors are due to glibc incompatibilities (kylix Open edition is certified to run only on redhat7.2). The following is a recipe for successful installation and building of Borland c++ projects with kylix3 on redhat9 (gnome).
[list=1] Download kylix3 from borland's download site, initially from:
http://www.borland.com/products/downloads/download_kylix.html#
and registering (requires email to which activation key is sent). Subsequently, ie once you have an activation key but don't want the hassle of repeatedly re-registering, get kylix directly from:
ftp://ftpd.borland.com/download/kylix/k3/kylix3_open.tar.gz
Download compat-glibc-6.2-2.1.3.2.i386.rpm. I got it from here(i386):
ftp://at.rpmfind.net/linux/redhat.com/dist/linux/7.3/en/os/i386/RedHat/RPMS/compat-glibc-6.2-2.1.3.2.i386.rpm
but you may have to search for it (google).
Install compat-glibc-6.2-2.1.3.2.i386.rpm as root:
(i) su
(ii) your root password
(iii) rpm -ivh compat-glibc-6.2-2.1.3.2.i386.rpm
Untar the kylix file:
tar -xvzf kylix3_open.tar.gz
and install as root with the -m switch; this does a non-rpm install which apparently side-steps a problem that some rpm versions have in relocating the software. ie:
sh ./setup.sh -m
Complete the registration, copy your registration file to your home directory.
From root you need to set the library path, otherwise your applications won't run:
(i) export LD_LIBRARY_PATH "/usr/local/kylix3/bin"
(ii)ldconfig
Run Borland Kylix C++ with:
startbcb
Once opened and before doing anything else, open up the options dialog:
Project menu-->Options-->Directories/Conditions tab
You need to change the following:
(i) In the 'Include Path' field, replace:
/usr/include with /usr/i386-glic21-linux/lib
and move the entry to the top of the list (use the arrow keys).
(ii) In the 'Library Path' field, replace:
/usr/lib with /usr/i386-glibc21-linux/lib
and move the entry to the top of the list (use the arrow keys).
If you don't want to repeat this step for every application then check the 'default' checkbox at the bottom of the options dialog.
Build and run a test project.[/list=1]
To uninstall kylix use the uninstall script. ie:
/usr/local/kylix3/uninstall
Although installing Borland kylix3 Open Edition on redhat9 will seem successful (minus gnome menu items) numerous compiler errors will be reported if any attempt is made to build a c++ project. Although re-arranging the include priorities in the project options dialog will permit compilation, various linker errors will then be reported. These linker errors are due to glibc incompatibilities (kylix Open edition is certified to run only on redhat7.2). The following is a recipe for successful installation and building of Borland c++ projects with kylix3 on redhat9 (gnome).
[list=1] Download kylix3 from borland's download site, initially from:
http://www.borland.com/products/downloads/download_kylix.html#
and registering (requires email to which activation key is sent). Subsequently, ie once you have an activation key but don't want the hassle of repeatedly re-registering, get kylix directly from:
ftp://ftpd.borland.com/download/kylix/k3/kylix3_open.tar.gz
Download compat-glibc-6.2-2.1.3.2.i386.rpm. I got it from here(i386):
ftp://at.rpmfind.net/linux/redhat.com/dist/linux/7.3/en/os/i386/RedHat/RPMS/compat-glibc-6.2-2.1.3.2.i386.rpm
but you may have to search for it (google).
Install compat-glibc-6.2-2.1.3.2.i386.rpm as root:
(i) su
(ii) your root password
(iii) rpm -ivh compat-glibc-6.2-2.1.3.2.i386.rpm
Untar the kylix file:
tar -xvzf kylix3_open.tar.gz
and install as root with the -m switch; this does a non-rpm install which apparently side-steps a problem that some rpm versions have in relocating the software. ie:
sh ./setup.sh -m
Complete the registration, copy your registration file to your home directory.
From root you need to set the library path, otherwise your applications won't run:
(i) export LD_LIBRARY_PATH "/usr/local/kylix3/bin"
(ii)ldconfig
Run Borland Kylix C++ with:
startbcb
Once opened and before doing anything else, open up the options dialog:
Project menu-->Options-->Directories/Conditions tab
You need to change the following:
(i) In the 'Include Path' field, replace:
/usr/include with /usr/i386-glic21-linux/lib
and move the entry to the top of the list (use the arrow keys).
(ii) In the 'Library Path' field, replace:
/usr/lib with /usr/i386-glibc21-linux/lib
and move the entry to the top of the list (use the arrow keys).
If you don't want to repeat this step for every application then check the 'default' checkbox at the bottom of the options dialog.
Build and run a test project.[/list=1]