configure problem on Mandrake 10.1, zm 1.20

Support and queries relating to all previous versions of ZoneMinder
billlion1
Posts: 4
Joined: Sat Feb 26, 2005 3:53 pm

configure problem on Mandrake 10.1, zm 1.20

Post by billlion1 »

I am trying to install zm 1.20 on Mandrake 10.1 Official. There seems to be a problem with the config script finding some functions in libraries. My first problem is that although I have libjpeg installed,
(check here with rpm)
  • $ rpm -ql libjpeg62-6b-33mdk
    /usr/lib/libjpeg.so.62
    /usr/lib/libjpeg.so.62.0.0
    /usr/share/doc/libjpeg62-6b
    /usr/share/doc/libjpeg62-6b/README
    /usr/share/doc/libjpeg62-6b/change.log
and it has a function called jpeg_start_compress
  • $ strings /usr/lib/libjpeg.so.62|grep jpeg_start_compress
    jpeg_start_compress
configure can't find it.
  • ./configure --with-mysql=/usr/share/mysql --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin
    ......
    checking whether strsignal is declared... yes
    checking whether MD5 is declared... no
    checking for jpeg_start_compress in -ljpeg... no
    configure: error: zm requires libjpeg.a

Anyone got any ideas?

Billlion
[/list]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That is a header file I think is what you call it with .a and you will find it in the devel package.
So install libjpeg-devel and you should be able to move on.
Cheers,
Cordel
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

If you would like to go the rpm route you can get zm packages and a few required perl packages here:

http://www.elltel.net/melins/mdk_10.1/RPMS/

Best regards,

Ross
billlion1
Posts: 4
Joined: Sat Feb 26, 2005 3:53 pm

Post by billlion1 »

rdmelin's suggestion got me in to one of those escalating dependenceies where I needed more and more rpms but cordel's suggestion was more on track. Thos .a files are statically linked libraries and I needed libjpeg-devel and libmysql-devel rpms to get them.

I found them on ftp://ftp.chg.ru/, although it has also prompted me to join Mandrake club to find this sort of thing more easily (I had been meaning to).

Thanks I have now got on to the next stage of configuration

Billlion
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

Hi all,
It is my first post to the forum :lol: . As I read rdmelin's post, I installed zm via rpm on my mdk 10.1 distrib. As a newbee to zm , I read the README file but dunno how to start since I think the RPM has "configured" some stuff for me.

After installation , I started with this:
[root@tuxedo root]# service zm start
ERROR 1045: Access denied for user: 'demo@localhost' (Using password: YES)
ERROR 1045: Access denied for user: 'demo@localhost' (Using password: YES)
Don't access to ZoneMinder database. Run /usr/lib/zm/bin/zminit manually.

I tried zminit but with no succes.

Any help appreciated, TIA
Chris
billlion1
Posts: 4
Joined: Sat Feb 26, 2005 3:53 pm

Post by billlion1 »

chris-tux wrote: [root@tuxedo root]# service zm start
ERROR 1045: Access denied for user: 'demo@localhost' (Using password: YES)
ERROR 1045: Access denied for user: 'demo@localhost' (Using password: YES)
Don't access to ZoneMinder database. Run /usr/lib/zm/bin/zminit manually.
I tried zminit but with no succes.
Any help appreciated, TIA
Chris
Hi Chris. I had to do so much fiddling and installing of rpms and perl modules and stuff that I can't remember at what stage I got past this error message. I think its because you have n't finished configuring your mysql data base. See end of section 3 of the readme.

http://www.zoneminder.com/fileadmin/dow ... EADME.html

I had to log in as root to create the data-base then grant privileges to my userid.

At least I do have a working ZM on Mandrake 10.1 so take heart! The only problem I have at the moment is that the pictures all disappear if I set

"Authenticate user logins to ZoneMinder" in options.

Bill
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

thanks bill,
It gives me courage to go on; in fact, I was not sure at what point I needed to follow the README instructions especially after installation of the zm RPM of Ross.

Here are the versions of different packages that I thought needed for zm (hope it is correct !)

perl-Mysql-1.22_19-9mdk
php-mysql-4.3.8-1mdk
php5-mssql-5.0.2-1mdk
libmysql12-4.0.20-3.2.101mdk
php-mssql-4.3.8-1mdk
mod_php-4.3.8-1mdk
libphp_common432-4.3.8-3.2.101mdk
libjpeg62-6b-33mdk
libjpeg62-devel-6b-33mdk
apache2-modules-2.0.50-7.2.101mdk
apache2-2.0.50-7.2.101mdk
apache2-common-2.0.50-7.2.101mdk
apache-conf-2.0.50-4mdk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you edited your /etc/zm.conf and added the user and password to use for your database? These filds can be anything you want then run zminit with the user when it asks as root and don't enter a password unless you changed the root password for the database. MySQL database also needs to be running before you run zminit.
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

thanks for the help!
let me summarize for people like me beginnig with zm (@zm pros, don't hesitate to correct..):
1- verification of the missing dependances
rpm -i --test zm-1.20.1-1_mdk.i586.rpm
2- installation of the missing packages
3- installation of the zm rpm
rpm -i zm-1.20.1-1_mdk.i586.rpm
4- as root, modification of /etc/zm.conf:
choose a user name and a password,
5- as root, initialization of the sql database:
cd /usr/lib/zm/bin
./zminit
enter root as sql administrator then do not enter a password
6- service zm start now is ok
7- I need to read the README file now or follow the help of some gurus...
end of the story at next post :lol:
thanks,
chris
gungner
Posts: 35
Joined: Tue Feb 08, 2005 8:24 pm

Post by gungner »

the only thing I want to add is my setup on MDK 10.1OE For whatever reasons I have to use a tick in the box for ZM_OPT_USE_AUTH and also ZM_AUTH_METHOD 'hashed' and a included secret in ZM_AUTH_SECRET. The last tick was for ZM_RAND_STREAM, I did have problems without this tick.

Since I'm using firefox it was not a problem receiving a live stream. I then added cabmozola and it now works for IE as well.

My last problem right now is to generate mpeg with ffmpeg which for some reasons dosn't work.

It will work on MDK10.1! and it's a killer app!

/Tord
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

Well, I read the README file and did a search in the forum, I thought that (if I understood well!) that as soon as zm is started as service with no problem, I can begin with zm with:
http://localhost/zm
but I got that:

Not Found

The requested URL /zm was not found on this server.
Apache-AdvancedExtranetServer/2.0.50 (Mandrakelinux/7.2.101mdk) Server at ***** Port 80

here are some logs:
/var/log/httpd/access_log
127.0.0.1 - - [09/Mar/2005:20:21:03 +0100] "GET /zm HTTP/1.1" 404 324 "-" "Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.2) Gecko/20040804"

/var/log/httpd/error_log
[Wed Mar 09 00:13:01 2005] [warn] child process 4371 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [warn] child process 4372 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [warn] child process 4373 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [warn] child process 4374 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [warn] child process 4375 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [warn] child process 5860 still did not exit, sending a SIGTERM
[Wed Mar 09 00:13:01 2005] [notice] caught SIGTERM, shutting down
[Wed Mar 09 19:51:05 2005] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 09 19:51:05 2005] [notice] Digest: done
[Wed Mar 09 19:51:05 2005] [notice] Apache-AdvancedExtranetServer/2.0.50 (Mandrakelinux/7.2.101mdk) configured -- resuming normal operations
[Wed Mar 09 20:21:03 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/zm

edit: why the rpm didn't copy these files in /var/www/html ?

any help appreciated
chris
gungner
Posts: 35
Joined: Tue Feb 08, 2005 8:24 pm

Post by gungner »

You are sure that you do have something at /var/www/html/zm ?
Have you checked permissions?
Are you sure you have PHP installed and working?

cheers, tord
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

thanks for the help,
php, apache, sql are installed and running :)
as I mentionned before, I believed that the rpm package would have installed everything in /var/www/html; but it seems that everything is in /usr/lib/zm/html.
If anyuser of the mdk rpm package could show me the right way
thanks again :wink:
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Hi Chris,
The rpm should have installed /etc/httpd/conf.d/zm.conf which will tell apache that /zm/ is an alias for /usr/lib/zm/html/

Apache will have to be restarted to recognize this, or just reboot. After this http://localhost/zm/ should get you there.

Don't forget the trailing slash.

Hope this gets you going :)

Ross
chris-tux
Posts: 14
Joined: Sun Mar 06, 2005 6:20 pm

Post by chris-tux »

Thanks for your help, Ross,
Effectively with the trailing slash, I can access to the login page :oops:
but sorry to bother you with such a basic problem, I can't login using the user name and pw defined in zm.conf (same case).
I search for login pb in the forum but I have read that normally with mdk 10.1 there is no login problem !
AHA, I hope I could play with this rocking apps soon...
chris
Locked