Installation of a new version of Ansys Lumerical should automatically uninstall any prior versions on your computer when the option to uninstall is selected during the installation process without manually uninstalling the older version first. However, in some cases, the automatic un-install fails, resulting in one of the following errors after the installation.
Activation failed with error code # -Error: There was a problem loading the activation library. Code #Internal error: -178
Try to resolve the above by doing a "clean installation" of Lumerical as shown below.
Requisites
- Admin or root privileges on the local computer.
- Lumerical installation package of the version to be installed.
Windows clean install
Close the error message and any running Lumerical simulation/application. If possible reboot the computer. Do step #1 below. If this does not resolve the issue, continue with the rest of the process. Default installation process shown.
-
Delete all of the "Lumerical preference.ini" files including the "License.ini" file from your computer. Open a windows command prompt and run the following:
cd %AppData%\Lumerical del *.ini - Reboot the computer.
- Uninstall the Optics Product' applications from your computer.
-
Delete the installation folder. Open Windows File Explorer to remove the installed version's directory. e.g. removing Lumerical
rmdir /S "C:\Program Files\{Optics Product}" rmdir /S "C:\Program Files\Lumerical" -
For installations using the Ansys automated installer, remove the 'Optics Product' folder from the "Ansys Inc" installed version's directory:
rmdir /S "C:\Program Files\Ansys Inc\<version>\{Optics Product}" - Reboot your computer and install the latest release of the Ansys Optics application with the stand-alone installer.
Linux clean installation
Close the error message and any running Lumerical simulation/application. If possible reboot the computer. Do step #1 below. If this does not resolve the issue, continue with the rest of the process. Default installation process shown.
-
Delete all of the Ansys Optics .ini and client licensing files from your computer.
rm ~/.config/Lumerical/*.ini rm ~/.ansys/*.* rm ~/.ansys_licensing/*.ini -
Remove 'Lumerical' from your machine using yum.
sudo yum autoremove Lumerical-[[ver]] -
Delete the installation folder.
sudo rm -R /{install_path}/lumerical/[[verpath]] - Install the latest release of the Lumerical stand-alone installer.
See also
Ansys Lumerical product preference files
RHEL/Rocky Linux installation guide