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:
Posted by forgacs on March 2nd, 2012 - 12:44It may help you: http://mediamosa.org/trac/wiki/Installing%20MediaMosa%202.3.x%20on%20RHE...
Thanks for your reply
Posted by demo1987 on March 5th, 2012 - 07:03Thanks 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
Posted by forgacs on March 5th, 2012 - 13:35Do 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
Posted by demo1987 on March 8th, 2012 - 10:21Ok.
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?
.
Posted by Robert on March 8th, 2012 - 11:36Maybe 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
Posted by demo1987 on March 8th, 2012 - 17:16I tried the same package and it still gives me the error with not installed LPeg. Any other ideas?
OK, now the strangest thing
Posted by demo1987 on March 9th, 2012 - 09:17OK, 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
Posted by forgacs on March 9th, 2012 - 09:49$ 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.
.
Posted by Robert on March 9th, 2012 - 10:10Demo, 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
Posted by demo1987 on March 9th, 2012 - 10:13The 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
Posted by Robert on March 9th, 2012 - 10:26If 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
Posted by demo1987 on March 9th, 2012 - 10:33Ok, 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
Posted by Robert on March 9th, 2012 - 11:21Thats 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
Posted by demo1987 on March 9th, 2012 - 11:53Ok, 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,
Posted by Robert on March 9th, 2012 - 13:081.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
Posted by demo1987 on March 15th, 2012 - 13:57Ok 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
Posted by Robert on March 15th, 2012 - 14:01Cool 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
Posted by edgardo3 on August 2nd, 2012 - 21:52Also 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