Installation of LUA

29Feb2012

I have installed Lua + Lpeg on my RedHat server. But when I try to install MediaMosa using the install.php script, I stil get an error that Lua and LPeg is not installed. When I use the command "lua" it gives me the right version (5.1.4). What could be the problem?

Comments

It may help you:

Thanks for your reply

Thanks for your reply forgacs.

The problem is that we do not have an active internet connection on our server, so we can't use the standard repository of RedHat. I treid installing it offline using the gcc builder en compiling the LUA scripts. It gives all the information it has been installed (including LPeg), but MediaMosa still gives an error.

P.S. We are using RHEL5.

Do the following, and check

Do the following, and check you get the same result like me:

1) Go to your MediaMosa directory.

2)
$ lua -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio

3)
$ lua profiles/mediamosa_profile/lua/lua_test
lua works

Ok.The first (lua -v) gives

Ok.

The first (lua -v) gives the same output as you. But the second (running lua ./lua/lua_test) gives the following output:


lua: error loading module 'lpeg' from file '/usr/local/lib/lua/5.1/lpeg.so':
dynamic libraries not enabled; check your Lua installation
stack traceback:
[C]: ?
[C]: in function 'require'
./lua/lua_test:16: in main chunk
[C]: ?

The file lpeg.so is in /usr/lib64/lua/5.1 and in /usr/local/lib/lua/5.1

I installed Lua and Lua-Lpeg using the RPM files from EPEL repository. Also tried installing lpeg using the compiling method. Both ineffective.

What could be the problem?

.

Maybe this thread helps;
http://mediamosa.org/node/245433

He seems to have done the same, but he did manage it with EPEL rep.

Think you should try
http://pkgs.org/centos-6-rhel-6/epel-x86_64/lua-lpeg-0.9-3.el6.x86_64.rp...
Which seems to include the lpeg?

BTW, this is also the problem why your mediafile metadata is not created.

I tried the same package and

I tried the same package and it still gives me the error with not installed LPeg. Any other ideas?

OK, now the strangest thing

OK, now the strangest thing happened.

The status page gives that Lpeg is installed correctly. But when I run lua lua/vpx-analyse, it gives the same error as before. How is this possible????

$ lua

$ lua profiles/mediamosa_profile/lua/lua_test
Does this give back the same error as before?
If yes, you should fix it first. Till it is not fixed, you can't use your MediaMosa to analyse, transcode etc. videos.

"dynamic libraries not enabled; check your Lua installation"
It seems to me, that your Lua is not installed correctly.

.

Demo, read this; http://folk.uio.no/hvassing/mediamosa-rhel6.html

Its not rhel5, but is rhel6 een option for you?

The strangest thing is I

The strangest thing is I installed Lua using an RPM. And lua works, but when I execute lua_test it still gives the sam error. I also tried installing lua using the compile method described on the website of Lua.

When I test mediamosa it trnascode now and al the metadata are set correctly? How is this possible if Lua and lpeg is not installed correctly?

If the metadata table of

If the metadata table of mediamosa_asset_mediafile_metadata is filled after you upload a file, then LHA is working and you can finally start with MediaMosa. The only thing I can think of is that PHP runs LHA under a different user, and when you run it in the console, its another user. Might be that it can not load the library, but PHP can. Therefor the status page might be right after all that it works fine, because the test on the status page is run using the PHP user.

Ok, but I have to install the

Ok, but I have to install the server on the production environment all over. How can I be sure it will be working then?

Status page

Thats why we made the status page. Also I would strongly suggest running MediaMosa 3.2 and not 2.3, as this version is only updated if there are security issues.

Ok, but is it easy to upgrade

Ok, but is it easy to upgrade from 2.3.17 to 3.2? I encoutered several problems migrating from 1.7 to 2.3.

1.7 was made with Drupal 6,

1.7 was made with Drupal 6, so upgrade to 2.x (made with Drupal 7) is a much bigger step than 2.3 to 3.2, both are Drupal 7...

But always make backup of your database and make sure you 'replace' the source code and not just copy over the old version.

Ok thanks for your help. I

Ok thanks for your help. I used a clea install of our RedHat server and installed Lua en Lpeg using the rpm files and it works. Thanks again.

Cool good to know you got it

Cool good to know you got it working. We are planning/working to migrate the LUA scripts out in version 4 and replacing it with PHP, so crossing my fingers that we are able to finish it on time.

Also I would strongly suggest

Also I would strongly suggest running MediaMosa 3.2 and not 2.3, as this version is only updated if there are security issues.-Arthur van der Vant

Comment viewing options

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