diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index a91d99bcbf6238b0417660e22391f572d3f33dad..4d939085256657a1e4044faa932c136c6e4e6a4d 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -102,7 +102,7 @@ if isoctave
     % Our replacement functions don't work under Octave (because of gamrnd, see
     % #1638), hence the statistics toolbox is now a hard requirement
     if ~user_has_octave_forge_package('statistics')
-        error('You must install the "statistics" package from Octave Forge, either with your distribution package manager or with "pkg install -forge statistics"')
+        error('You must install the "statistics" package from Octave Forge, either with your distribution package manager or with "pkg install -forge io statistics"')
     end
 else
     if ~user_has_matlab_license('statistics_toolbox')