installation of 3.2.1 on Mac os x Lion

24Mar2012

I have Lua working, I have checking by running lua -v and also lua lua/lua_test gives me a message saying it works and same for ffmpeg, but install screen says neither is available

Here are outputs

#ffmpeg -version
ffmpeg version 0.10.2

# lua lua/lua_test
lua works

I haven't been able to install ffmpeg-php as I have been having a bunch of trouble with it and not sure if this required.

Here is the error message.
------------------------------------

Program FFmpeg: FFmpeg is not installed or inaccessable for PHP.
Install FFmpeg.
Error
Program LUA 5.1: LUA is not installed.
Install LUA 5.1. You can find more information how to install LUA here
Error
LUA extension Lpeg: Lpeg extension is not installed.
Install Lpeg extension for LUA. You can find more information how to install Lpeg here

Appreciate any help.

Comments

.

I don't have any experience with Mac os X Lion, so I can not say MediaMosa works. But then again, I don't see any reason why it shouldn't.

If the LUA console test works and the installation halts on LUA, then there must be a difference between calling LUA from PHP and your console test. LUA is run using 'exec' PHP command. Under Linux, this PHP command will be run under the user of Apache / ngnix webserver, will be 'www-data' user in most cases. Pretty sure that under os X is the same or similar.

The first thing I would check are the logs of your webserver, and the php.log if you can find it. The second thing; what user is PHP using and does it have rights enough to run LUA. I have no idea if os X needs execute privileges for running LUA under PHP.

These lines are run during the install to test LUA (this is the standaard lua test);

$exec_output = array();
$ret_val = 0;
exec('lua ' . escapeshellcmd(DRUPAL_ROOT) . '/profiles/mediamosa_profile/lua/lua_test 2>&1', $exec_output, $ret_val);

The DRUPAL_ROOT value is the root dir of your Drupal installation. If you have any PHP knowledge, then you could create PHP script to test more directly why this 'exec' command tells you it doesn't work.

You could create a PHP file and paste & save (e.g. luatest.php);

<?php
$exec_output = array();
$ret_val = 0;
exec('lua [my root of the drupal site]/profiles/mediamosa_profile/lua/lua_test', $exec_output, $ret_val);
print_r($exec_output);
echo $ret_val;

Run that under the browser (/luatest.php) and see what it tells you. I've remove the '2>&1' from the exec line; this part filters out the direct output of the 'exec' command, so i might tell you a bit more.

Also a script with phpinfo(); in the output it might also tell you a lot about the installation and what user it is using. To use phpinfo(); create a file under the root of the drupal site (e.g. phpinfo.php) and paste & save;

<?php
phpinfo();

Now call that script from the web browser (/phpinfo.php) and check the generated page. It should tell you somewhere what users it uses for running the PHP under your web server. Don't forget to remove this file later.

Hope this helps, let me know any progress, very curious about this.

I'm also running Mac OSX 10.7

I'm also running Mac OSX 10.7 but not with MediaMosa on it. I'd like to know how you installed ffmpeg and lua. I did this using MacPorts (http://www.macports.org/) and XCode (https://developer.apple.com/technologies/tools/).

After setup run (or other packages)

sudo port -d selfupdate
sudo port -d sync
sudo port install ffmpeg
sudo port install lua
sudo port install lua-lpeg

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.