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 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 "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 all 'Lumerical or Ansys Lumerical' applications from your computer via 'Windows Control Panel > Programs and Features'.
- Delete the installation folder. Open Windows File Explorer and go to: 'C:\Program Files\Lumerical\' and ensure the "version's directory" has been removed. e.g. "[[verpath]]" folder is the current release's directory.
- Reboot your computer and Install Ansys Lumerical.
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 "Lumerical preference.ini" files from your computer.
rm ~/.config/Lumerical/*.ini
or
rm $HOME/.config/Lumerical/*.ini - Remove 'Lumerical' from your machine using yum.
sudo yum autoremove Lumerical-[[ver]]
- Delete the installation folder.
sudo rm -R /opt/lumerical/[[verpath]]
- Install Lumerical.
See also
Ansys Lumerical product preference files
RHEL/CentOS Linux installation guide