Contact Us

If you still have questions and are an active SimuTech customer, please submit a request.

  • Ansys Training
  • Skills Center
  • Consulting
  • About
  • Contact Support
  • Home

  • Installation

      • Troubleshooting

          • Errors & Solutions

              • License Management

                  • Info

                      • Remote Solve Manager

                          • Employee Login

                          Can't find what you're looking for?

                          Contact Support

                          Installation & Licensing Center

                          • Home
                          • Installation
                            Installation Guides Installation Tasks Requirements & Info Optional Configurations Uninstallation
                          • Troubleshooting
                            Troubleshooting Guides License Manager Connectivity Issues License Checkout Issues Application Functionality Issues Windows OS / Hardware Issues CAD Plugin Issues Project Specific Issues Uninstallation Guides Diagnostic Resources & Logs Other Tasks
                          • Errors & Solutions
                            Behavior Based Issues & Solutions Error Messages & Solutions
                          • License Management
                            FlexNet Licensing Shared Web Licensing Elastic Licensing Licensing Portal Administration License Borrowing Reporting & Usage Stats Other
                          • Info
                          • Remote Solve Manager
                          + More

                          ERROR - Error in Startup Script

                          Authored by Aaron Schedlin July 31st, 2024 1810 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

                          HOW TO - Create an Environment Variable

                          scriptenvvaradmin

                          Was this helpful?

                          Yes
                          No

                          0 out of 1 found it helpful

                          Related Articles

                          ERROR - Could not save server and port to file

                          ERROR - "FATAL ERROR: Port 1084 is in use." when installing Ansys License Manager

                          ERROR - Ansys License Manager Won't Start

                          Popular Articles

                          Ansys Download & Installation Guide (Start Here!)

                          INFO - Ansys Hardware Recommendations & Supported 3rd Party Software

                          HOW TO - Uninstall Ansys Software

                          HOW TO - Test & Fix FlexNet License Manager Connectivity Issues

                          ERROR - Hostid in the license file is not a valid hostid

                          Was this helpful?

                          Yes
                          No
                          Give feedback about this article

                          Can't find what you're looking for?

                          Contact Support

                          Recently Updated

                          • HOW TO - Reset Your Ansys Profile Folder
                          • ERROR - Mechanical failed to open the database
                          • HOW TO - Troubleshoot a Windows Bluescreen (BSOD)
                          • HOW TO - Clear Shared Web Licensing Credential Cache
                          • HOW TO - Generate a Personal Access Token for an Unattended Workflow
                          • HOW TO - Borrow & Return an Ansys License
                          • ERROR - Ribbon/Toolbar Missing From Fluent
                          • HOW TO - Manage Users & Groups for Shared Web Licensing
                          • ERROR - Tomcat Vulnerability CVE-2025-24813 detected in Ansys License Manager
                          • General Inquiries & Sales:
                          • (800) 566-9190
                          • Info@SimuTechGroup.com
                          • Contact Support
                          • Software
                          • Services
                          • Case Studies
                          • Ansys Training
                          • Consulting
                          • Technical Support
                          • About SimuTech
                          • Careers
                          • Privacy

                          © 2025 SimuTech Group


                          Knowledge Base Software powered by Helpjuice

                          Definition by Author

                          0
                          0
                          Expand NEW TAB

                          Hi there! 👋

                          How are you liking the Installation Center?

                          Terrible

                          Bad

                          OK

                          Good

                          Excellent

                          Feedback Successfully submitted