Remove the link /usr/share/bdb/db.jar before installation, if it exists.
Check ant already exists on the system by running the following command:
rpm -qa | grep ant
If a version of ant below 1.6 is installed, remove it by running the following command:
rpm -e ant-older-version ant-libs-older-version
You need to use the version of ant sun-ant-1.6.5-2 to install or deploy Portal Server. When you run the installer, it is automatically installed at /opt/sun/bin/ant.