Topic on Extension talk:Scribunto

No Lua interpreter was given in the configuration, and no bundled binary exists for this platform.

9
194.33.77.26 (talkcontribs)

Hi. I need your help. When I try import infobox templates and Modules for my Wiki (mysite.com/wiki/Special:Import), then show this problem with Lua: "No Lua interpreter was given in the configuration, and no bundled binary exists for this platform."

Who know where is a problem? Thanks.

Legoktm (talkcontribs)

What operating system is your wiki running on? What version of MediaWiki? And did you change anything in your LocalSettings.php related to Scribunto?

194.33.77.26 (talkcontribs)

System: Windows

MediaWiki version: 1.30.1.

I added to LocaSettings.php:

$wgScribuntoUseGeSHi = true;

$wgScribuntoUseCodeEditor = true;

wfLoadExtension( 'Scribunto' );

$wgScribuntoDefaultEngine = 'luastandalone';


and also this:

wfLoadExtension( 'ParserFunctions' );

$wgPFEnableStringFunctions = true;

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'TemplateData' );

$wgUseInstantCommons = true;

wfLoadExtension( 'WikiEditor' );

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'CodeEditor' );

$wgDefaultUserOptions['usebetatoolbar'] = 1; // user option provided by WikiEditor extension


Legoktm (talkcontribs)

Can you create a PHP script with the contents:

<?php

echo 'PHP_OS: ' . PHP_OS . "\n";
echo 'PHP_INT_SIZE: ' . PHP_INT_SIZE . "\n";

And then run it and provide the output?

194.33.77.26 (talkcontribs)

PHP_OS: FreeBSD PHP_INT_SIZE: 8

Apn (talkcontribs)

I'm encountering the same issue under FreeBSD 11.2 + PHP7.2 + MW 1.32.0.

Error message when publishing an LUA module :

[6fa1dfb4611d587e0b74a32a] /mediawiki/index.php?title=Module:Fix&action=submit Scribunto_LuaInterpreterNotFoundError from line 200 of /usr/local/www/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php: No Lua interpreter was given in the configuration, and no bundled binary exists for this platform.

Apn (talkcontribs)

As per the source code, this extension seems to be only supported on lua5_1_5_linux_32_generic, lua5_1_5_linux_64_generic, lua5_1_5_Win32_bin, lua5_1_5_Win64_bin, lua5_1_5_mac_lion_fat_generic.

Why is FreeBSD not supported anymore ?

Apn (talkcontribs)

As expected, it's perfectly supported under FreeBSD. You can apply this patch to make it work :

184c184

< if ( PHP_OS == 'Linux' ) {

---

> if ( PHP_OS == 'Linux' || PHP_OS == 'FreeBSD' ) {

Anomie (talkcontribs)

That'll work if your FreeBSD installation is configured to run Linux binaries.

Another alternative is to compile/install Lua 5.1 natively for FreeBSD, then set $wgScribuntoEngineConf['luastandalone']['luaPath'] in your LocalSettings.php to the path to your new Lua binary.

Reply to "No Lua interpreter was given in the configuration, and no bundled binary exists for this platform."