Installing Kylix on a modern distro
Author: Daniel Bautista
#!/bin/bash
# BEGIN STRING TABLE
KYDEF_LOCALE="es_ES"
LC_ALL="es_ES"
export LC_ALL
LC_ALL_IS_C1="The LC_ALL environment variable is set to C.  Kylix cannot start with this setting."
LC_ALL_IS_C2="Defaulting LC_ALL to"
# END STRING TABLE
if [ -z "$LANG" ]; then
   LANG=$KYDEF_LOCALE
   export LANG
fi
if [ "$LC_ALL" = "C" ]; then
   echo "$LC_ALL_IS_C1"
   echo "$LC_ALL_IS_C2 $KYDEF_LOCALE."
   LC_ALL=$KYDEF_LOCALE
   export LC_ALL
fi
source /usr/local/kylix3/bin/kylixpath /usr/local/kylix3 >/dev/null
/usr/local/kylix3/bin/bcblin $*
    
    For 'startdelphi', I have:
    
#!/bin/bash
# BEGIN STRING TABLE
KYDEF_LOCALE="es_ES"
LC_ALL="es_ES"
export LC_ALL
LC_ALL_IS_C1="The LC_ALL environment variable is set to C.  Kylix cannot start with this setting."
LC_ALL_IS_C2="Defaulting LC_ALL to"
# END STRING TABLE
if [ -z "$LANG" ]; then
   LANG=$KYDEF_LOCALE
   export LANG
fi
if [ "$LC_ALL" = "C" ]; then
   echo "$LC_ALL_IS_C1"
   echo "$LC_ALL_IS_C2 $KYDEF_LOCALE."
   LC_ALL=$KYDEF_LOCALE
   export LC_ALL
fi
source /usr/local/kylix3/bin/kylixpath /usr/local/kylix3 >/dev/null
/usr/local/kylix3/bin/delphi $*
    
  #define _STD_HEADER_(__a) /usr/include/__awith
#define _STD_HEADER_(__a) /usr/i386-glibc21-linux/include/__aWell, so now you have to open Kylix C++ IDE (starbcb) and go to Project->Project Options, tab Directories/Conditionals and replace /usr/include for /usr/i386-glibc21-linux/include in the Include Paths, and /usr/lib for /usr/i386-glibc21-linux/lib in Library Paths. Don't forget to mark Default, in order to all projects load these settings.
