Maybe we did not set all variables correctly. We were logged in as an Oracle user (orard1), and we set the following variables:
HOME=/oracle/RD1 USER=orard1 PATH=/oracle/RD1/920_64/bin:/oracle/RD1:/usr/sap/RD1/SYS/exe/run:/usr/bin:/etc:/ usr/sbin:/usr/ucb:/oracle/RD1/bin:/usr/bin/X11:/sbin:. LOCPATH=/usr/lib/nls/loc LOGNAME=orard1 LOGIN=orard1 SAPSYSTEMNAME=RD1 DIR_LIBRARY=/usr/sap/RD1/SYS/exe/run dbms_type=ORA dbs_ora_tnsname=RD1 dbs_ora_schema=SAPRD1 ORACLE_PSRV=RD1 ORACLE_SID=RD1 DB_SID=RD1 ORACLE_HOME=/oracle/RD1/920_64 ORACLE_BASE=/oracle ORA_NLS33=/oracle/RD1/920_64/ocommon/nls/admin/data NLS_LANG=AMERICAN_AMERICA.WE8DEC SAPDATA_HOME=/oracle/RD1 JAVA_HOME=/usr/java131 DISPLAY=184.108.40.206:0.0 LIBPATH=/oracle/RD1/920_64/lib
This common mistake is because your environment variables were not set correctly. The most common mistake is to set PATH incorrectly. Refer to the Oracle documentation for your specific platform.
Once you've got all of your pre-installation tasks done properly, the installation should work and you should be able to compile correctly.
This was first published in February 2004