% Attempt to call undefined procedure: 'IDLRTMAIN'.
% Execution halted at: $MAIN$
%idl -rt=test1.sav
IDL 8.8.0 (linux x86_64 m64).
(c) 2020, Harris Geospatial Solutions, Inc.
hello world
IDL> !version
"ARCH": "x86_64",
"OS": "linux",
"OS_FAMILY": "unix"
"RELEASE": "8.8.0",
Your error message about IDLRTMAIN being undefined suggests that your IDL installation is not set up correctly. In the lib/hook subdirectory of your IDL installation there should be a idlrtmain.sav file
% ls /usr/local/exelis/idl/lib/hook
demo.sav idlrtmain.sav license_wizard.sav
--Wayne