MATLAB: Do I receive an error when using KTRLINK in the Optimization Toolbox 4.1 (R2008b)

Optimization Toolbox

I downloaded the KNITRO version 6.0 and installed like it is described in the manual and the documentation of KTRLINK in MATLAB:
But I still could not run the example. I receive an error:
??? Error using ==> ktrlink at 426
ktrlink was to unable locate a dynamic library. ktrlink requires the third-party KNITRO libraries in order to run:
if you have these libraries installed, then include them on the system path, restart MATLAB, and try again. Type doc ktrlink for more information.

Best Answer

In the README.txt file of KNITRO package in the folder $KNITRO\examples\MATLAB there is a note about installing compatibilities:
MATLAB 7.6 (R2008a), MATLAB 7.7 (R2008b), and MATLAB 7.8 (R2009a) expect the KNITRO binary file on Windows to be named "knitro520.dll", whereas KNITRO 6.x and later provide a KNITRO binary file named "knitro.dll".
To use KNITRO 6.x or later with MATLAB 7.6 (R2008a), MATLAB 7.7 (R2008b), and MATLAB 7.8 (R2009a), you must simply make a copy of the "knitro.dll" binary provided, and rename the copy to "knitro520.dll" (if a copy of this name does not already exist).