Installation & Licensing Center
ERROR - Error in Startup Script
Authored by Aaron Schedlin July 31st, 2024 797 views 0 likes KB2702067
ERROR
When launching ANS_ADMIN 2021R1, you receive the following error message:
Error in startup script
can't read "env(ANSYS_SYSDIR)": no such variable
while executing
"set SYSDIR $env(ANSYS_SYSDIR)"
(file "C:\Program Files\ANSYS
Inc\v211\ANSYS\bin\winx64\xansadmin.tcl" line 54)
Software & Version
ANS ADMIN 2021R1
*This example was taken from this version but is not necessarily limited to this version.
Description/Cause
There are two missing environment variables that are not added during installation.
*The cause(s)/solution(s) we identified in this documented instance may not be the only cause(s)/solution(s) for this error.
Solution
Add the following environment variables:
ANSYS_DIR=C:\Program Files\ANSYS Inc\v211\ANSYS
ANSYS_SYSDIR=winx64