Page 1 of 1

Ubuntu 9.04 Unable to make install

Posted: Wed Jan 13, 2010 4:05 am
by yawgmoth
When I attempt to make install, the task quits with the following errors
( cd yes; chown www-data:www-data index.php )
( cd yes; chown -R www-data:www-data ajax css graphics includes js lang skins tools views )
chown: cannot access `ajax': No such file or directory
chown: cannot access `css': No such file or directory
chown: cannot access `graphics': No such file or directory
chown: cannot access `includes': No such file or directory
chown: cannot access `js': No such file or directory
chown: cannot access `lang': No such file or directory
chown: cannot access `skins': No such file or directory
chown: cannot access `tools': No such file or directory
chown: cannot access `views': No such file or directory
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/levb/zoneminder/ZoneMinder-1.24.2/web'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/levb/zoneminder/ZoneMinder-1.24.2/web'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/levb/zoneminder/ZoneMinder-1.24.2/web'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/levb/zoneminder/ZoneMinder-1.24.2/web'
make: *** [install-recursive] Error 1
./configure --with-webdir /var/www/zm --with-cgidir=/var/www/zm/cgi-bin --with-webuser=www-data --with-webgroup=www-data

However in Makefiles WEB_PREFIX shows up as = yes (probbaly somewhere else too), I can see the CGI_PREFIX being created but nothing in WEB_PREFIX.
I am using the following parameter to for configure

Attempting to find yes yields the following:
levb@levb-desktop:~/zoneminder/ZoneMinder-1.24.2/web/yes$ sudo find / -type d -name yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/js/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/lang/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/css/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/tools/mootools/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/graphics/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/views/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/includes/yes
/ho/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/lang/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/css/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/graphics/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/views/js/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/views/css/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/views/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/includes/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/ajax/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/lang/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/css/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/graphics/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/views/css/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/views/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/includes/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/skins/mobile/ajax/yes
/home/me/zoneminder/ZoneMinder-1.24.2/web/ajax/yesme/me/zoneminder/ZoneMinder-1.24.2/web/skins/classic/js/yes

Posted: Wed Jan 13, 2010 12:15 pm
by yawgmoth
Alright, so I edited configure to do the following:
#WEB_PREFIX="$with_webdir"
WEB_PREFIX=/var/www/zm

The install ran, I am very happy with that, but now the next isssue is that when I go over to http://localhost/zm/index.php I am being offered to download the file as opposed to the script being executed. Looked around some more looks like I am missing the configuration, in fact /etc/zm does not exist.

Any ideas?

Issues solved

Posted: Wed Jan 13, 2010 3:24 pm
by yawgmoth
That last one was a bot of a apache config, for those who install it packaged for their distro is is usually already there

Linked this as zoneminder.con in apache2's conf.d
Alias /zm /var/www/zm

<Directory>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule>
DirectoryIndex index.php
</IfModule>
</Directory>

Then added php5.conf and php5.load in enabled modules
And everything is working. So the only issue in question is where did configure script break? Maybe I'll play around with it some other time. :P :P :P