Error: Missing dependent shared libraries: 'maplec.dll' required
7 views (last 30 days)
Show older comments
I am using a Windows 8 machine.
For background I am a novice computer troubleshooter so the following details may or may not be relevant to my problem.
Yesterday I installed updated versions of MATLAB and Maple (and Mathematica) with my department's software specialist staff member. I was previously using MATLAB 2015b and also had Maple 2015 and Maple 18 on my computer (although I rarely use Maple directly). Due to a very full hard drive with not enough space for the installer, we had to uninstall several unneeded programs from my laptop to free up space.
In the process we uninstalled a C++ related program from my programs list as its name had an old date (if I recall correctly it was 2005) and I am not directly using C++, but instead use the math computing programs listed above.
For reference, while I don't remember the exact name of the C++ program, as I recall it "looked" very similar to the programs still remaining on my computer:
During the Maple install there was a message that said something about MATLAB being 32 bit instead of 64 (which is false), but I failed to write down the details of the error.
I am now trying to run a .m file that depends on the symbolic toolbox and when I do I receive the following error:
Error using sym (line 186)
Error using sym (line 156)
Invalid MEX-file 'C:\Program Files\MATLAB\R2017b\toolbox\maple\maplemex.mexw64': Missing dependent shared
libraries:
'maplec.dll' required by 'C:\Program Files\MATLAB\R2017b\toolbox\maple\maplemex.mexw64'.
Error in syms (line 52)
assignin('caller',varargin{i},sym(varargin{i},varargin{n}));
Error in ISR_with_ATF4_SimplifiedJacobian_2017_Summer (line 52)
syms t y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y11 y12 y13 y14 y15 real %state variables
Error in ISR_with_ATF4_TwoParamBifCurve_Modular_Krecy (line 375)
J = ISR_with_ATF4_SimplifiedJacobian_2017_Summer;
For reference "ISR_with_ATF4_TwoParamBifCurve_Modular_Krecy" is the name of my top level .m file which calls a file "ISR_with_ATF4_SimplifiedJacobian_2017_Summer" which uses the symbolic toolbox.
In googling this problem I found a Q/A in MATLAB answers that seems related to my problem: https://www.mathworks.com/matlabcentral/answers/361061-problem-running-mexw64-file-missing-dll-files
but I don't really understand computers enough to know for certain that the problems are related or, if the are, what to do next.
Do I need to reinstall the missing C++ file? If so how do I do this and how do I know which file to install given that I did not write the program name down before uninstalling it?
Could this problem be fixed by uninstalling/reinstallling either Maple 2017.3 or MATLAB 2017b. Due to space issues on my computer (which I am in the process of resolving) I no longer have the old Maple or MATLAB installations and my recycling bins have been emptied.
An additional piece of information that I suspect is irrelevant to this issue: during the Maple installation my antivirus program was triggered by detection of the Maple uninstall.exe file and deleted it. The file is currently in quarantine. I have tried restoring the file but I receive an error message that the original folder has been moved and would I please specify the directory location for restoration. I do not know the reason for this error except that I have both a standard hard drive and a solid state drive and after installation I did copy the Maple directory to the solid state drive. I then deleted the original, until I received the "missing library" error message described above, at which point I copied the directory again, returning it to its original location.
Any help would be appreciated -- even if just to point me in the right troubleshooting direction.
Thanks,
Laura
Answers (2)
Jan
on 13 Jan 2018
During the Maple install there was a message that said something
about MATLAB being 32 bit instead of 64 (which is false), but I
failed to write down the details of the error.
This sounds suspicious.
during the Maple installation my antivirus program was triggered
by detection of the Maple uninstall.exe file and deleted it.
This sounds very suspicious. Haven't you been instructed to disable the virus scanner during the installation?
I'd try to uninstall the software and try a clean re-installation. Without Maple's uninstall.exe this will not work, but you can reset your computer to the state before the installation. Then disable the virus scanner and find out, why Maple does not recognize the 64 bit Matlab installation.
5 Comments
Michael Hamilton
on 12 Sep 2019
I have almost the same error, but, with a slightly different call chain on a mex file I have compiled:
Invalid MEX-file 'C:\cygwin64\home\XXXXXXX\xxxxxxxxx.mexw64': Missing dependent shared
libraries:
'icudt61.dll' required by 'C:\Program Files\MATLAB\R2019a/bin/win64\icuuc61.dll->C:\Program
Files\MATLAB\R2019a/bin/win64\icuin61.dll->C:\Program Files\MATLAB\R2019a/bin/win64\libmwi18n.dll->C:\Program
Files\MATLAB\R2019a/bin/win64\libmwfl.dll->C:\Program
Files\MATLAB\R2019a/bin/win64\libmex.dll->C:\cygwin64\home\XXXXXXX\xxxxxxxxx.mexw64'
What I do not understand is that icudt61.dll is in the directory :\Program Files\MATLAB\R2019a/bin/win64 along with the other items in this call tree list.
I tried adding it to my PATH in windows (verified in Matlab with getenv).
How should this be detected? Is there something wrong with my code having been installed in cygwin? That is just the location: the build and everyting was done from inside matlab with mex calls, Matlab being started from Windows.
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!