Problem with installation - archlinux

Forum for questions and support relating to the 1.25.x releases only.
Locked
TheTester
Posts: 6
Joined: Thu Aug 11, 2011 2:00 pm

Problem with installation - archlinux

Post by TheTester »

Hello
I need some help with installing zoneminder on archlinux. There is package in AUR but at the end of install process I got this:

Code: Select all

==> You must edit /etc/httpd/conf/httpd.conf and uncomment/add the line
==> LoadModule php5_module modules/libphp5.so
==> You must also add these lines:
==> Include conf/extra/php5_module.conf
==> Include /etc/httpd/conf/extra/httpd-zm.conf
touch: cannot touch `/var/lib/zm/zm_backup.sql': No such file or directory
error: command failed to execute correctly
When I try to execute installation again script finds previous installation and try to upgrade but without success:

Code: Select all

Proceed with installation? [Y/n]
(1/1) checking package integrity                   [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) upgrading zoneminder                         [######################] 100%
/tmp/alpm_bhwugV/.INSTALL: line 53: /usr/lib/zm/bin/zmupdate.pl: No such file or directory
error: command failed to execute correctly
Could you tell me what should I do to find what is causing those problems?

I've also noticed this at begging of installation:

Code: Select all

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
TheTester
Posts: 6
Joined: Thu Aug 11, 2011 2:00 pm

Re: Problem with installation - archlinux

Post by TheTester »

It's seems that there was problem with /var/lib/zm beacuse this dir wasn't present at the time of installation and touch can't create dirs.
Installation was successful...now I had to check if it works...
TheTester
Posts: 6
Joined: Thu Aug 11, 2011 2:00 pm

Re: Problem with installation - archlinux

Post by TheTester »

Now, whenever I try to execute /etc/rc.d/zm start, I get this:

Code: Select all

Upgrade %s database:  ZoneMinder
DBD::mysql::st execute failed: Table 'zoneminder.Logs' doesn't exist at /usr/share/perl5/site_perl/ZoneMinder/Logger.pm line 609.
I have DB installed and I changed zm.conf so I have no idea what's going on. :(
TheTester
Posts: 6
Joined: Thu Aug 11, 2011 2:00 pm

Re: Problem with installation - archlinux

Post by TheTester »

Blah...my fault. I had DB installed from previous attempts and it didn't contained all tables.

But right now I get:

Code: Select all

:: Starting ZoneMinder                                              [BUSY]
/etc/rc.d/zm: line 111: /usr/lib/zm/bin/zmpkg.pl: No such file or directory                                                                   [FAIL]
Which is correct in a way that this..hm...file really doesn't exist. Why? Shouldn't it be there after installation? Can I copy it from src?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Problem with installation - archlinux

Post by PacoLM »

Find where do you have zmpkg.pl, then modify your zm startup script for the path where the zm python scripts are.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
TheTester
Posts: 6
Joined: Thu Aug 11, 2011 2:00 pm

Re: Problem with installation - archlinux

Post by TheTester »

The funny thing is...I can't find it anywhere...So what should I do? There is no zmpkg.pl in src either but it probably correct as it's not compiled. Any suggestions?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Problem with installation - archlinux

Post by PacoLM »

If these scripts are not anywhere, I believe the installation has not been made properly, or you are searching the file from another user, not root.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked