[OS X TeX] Problem with lualatexmk script in TeXShop v. 3.92
Herbert Schulz
herbs at wideopenwest.com
Sun Dec 3 08:05:57 EST 2017
> On Dec 3, 2017, at 12:06 AM, John Collins <jcc8 at psu.edu> wrote:
>
> Here is what appears to have happened, caused by a change in the new version (4.54) of latexmk, which is used in the new version of TeXShop.
>
> 1. To achieve certain occasionally-needed effects using wild cards in specifications of files to be cleaned up, previous versions of latexmk used a function glob out of Perl module File::Glob.
>
> 2. That function is deprecated in Perl 5.26, and will disappear in Perl 5.30. The function bsd_glob is supposed to be used instead.
>
> 3. So I made a change in latexmk v. 4.54 for it to use bsd_glob instead of glob.
>
> 4. The OP has a very old Perl 5.12, whose File::Glob fails to provide bsd_glob (or at least, not to allow it to be imported in the normal way). This results in the error message reported.
>
> I have made a fix that **should** solve the problem. Unfortunately, I cannot test it because I don't have an old enough version of Perl to reproduce the OP's problem and to test my fix. This new version 4.54a of latexmk in the attached zip file. (Unzip it, and rename/move the resulting file appropriately to replace the latexmk used in TeXShop 3.92. (Herb: Where should it go?))
>
> Let me know what happens.
>
> John Collins
>
>>>> On Dec 2, 2017, at 12:15 PM, Franck Pastor <franck.pastor at skynet.be> wrote:
>>>>
>>>>> Since I have upgraded TeXShop to its latest version (3.92), the lualatexmk script (in ~/Library/TeXShop/Engines) doesn't work. Each time I want to use it I get this message from the console window:
>>>>>
>>>>> "bsd_glob" is not defined in %File::Glob::EXPORT_TAGS at /Users/fp/Library/TeXShop/bin/tslatexmk/latexmk line 132
>>>>> main::BEGIN() called at /System/Library/Perl/5.12/Carp.pm line 132
>>>>> eval {...} called at /System/Library/Perl/5.12/Carp.pm line 132
>>>>> Can't continue after import errors at /Users/fp/Library/TeXShop/bin/tslatexmk/latexmk line 132
>>>>> BEGIN failed--compilation aborted at /Users/fp/Library/TeXShop/bin/tslatexmk/latexmk line 132.
> <latexmk.zip>
Howdy,
After you unzip the file rename it `latexmk' (without the quotes of course) with no extension. Then place it into the ~/Library/TeXShop/bin/tslatexmk folder, replacing the version that is already there.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list