Installl fails on FC3 (RPMs)

Support and queries relating to all previous versions of ZoneMinder
Locked
jdbeyers
Posts: 2
Joined: Wed May 11, 2005 12:45 am

Installl fails on FC3 (RPMs)

Post by jdbeyers »

This started off as an excerise to install ZoneMinder 1.21.0 onto a fresh install of Fedora Core 3.
The whole project started off with me having downloaded the tar.gz file, and trying to compile the program
from there. I started loosing it when, although the files were installed, and I could see them, the
LIBAVCODEC, etc. could not be found. I then turned to the RPM solution after having read http://www.zoneminder.com/forums/viewtopic.php?t=3974.

This even log is very detailed, hopefully if I have made a mistake, it should be easily spotted by another person.

1. Performed a full install of Fedora Core 3, selecting to install "everything".

2. Download and install the following files from http://dag.wieers.com/packages/

-rwxr-xr-x 1 root root 1184122 May 4 12:42 ffmpeg-0.4.9-0.20050427.1.1.fc3.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 1248656 May 10 21:43 ffmpeg-devel-0.4.9-0.20050427.1.1.fc3.i386.rpm (From http://dag.wieers.com/packages/)

rpm -ivh ffmpeg-0.4.9-0.20050427.1.1.fc3.i386.rpm
warning: ffmpeg-0.4.9-0.20050427.1.1.fc3.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
libImlib2.so.1 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
liba52.so.0 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
libfaac.so.0 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
libfaad.so.0 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
libmp3lame.so.0 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
libpostproc.so.0 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386
libxvidcore.so.4 is needed by ffmpeg-0.4.9-0.20050427.1.1.fc3.i386

3. Download and install the following libraries to get the install going:

-rwxr-xr-x 1 root root 72807 May 10 16:12 a52dec-0.7.4-7.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 23249 May 10 16:12 a52dec-devel-0.7.4-7.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 115434 May 10 16:13 faac-1.24-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 39114 May 10 16:13 faac-devel-1.24-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 333275 May 10 16:15 faad2-2.0-2.20040923.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 6637 May 10 16:15 faad2-devel-2.0-2.20040923.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 638045 May 10 16:11 imlib2-1.2.0-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 158846 May 10 16:11 imlib2-devel-1.2.0-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 499448 May 8 21:29 lame-3.96.1-2.1.fc3.fr.i386.rpm (From http://freshrpms.net)
-rwxr-xr-x 1 root root 161519 May 10 21:48 lame-devel-3.96.1-2.1.fc3.fr.i386.rpm (From http://freshrpms.net)
-rwxr-xr-x 1 root root 21940 May 10 16:17 libpostproc-0.4.9-0.20050427.1.1.fc3.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 265508 May 10 16:19 xvidcore-1.0.3-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 348178 May 10 16:20 xvidcore-devel-1.0.3-1.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)

4. Issue the following commands to begin with the installation:

rpm -ivh imlib2-1.2.0-1.1.fc3.rf.i386.rpm
warning: imlib2-1.2.0-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:imlib2 ########################################### [100%]
rpm -ivh imlib2-devel-1.2.0-1.1.fc3.rf.i386.rpm
warning: imlib2-devel-1.2.0-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:imlib2-devel ########################################### [100%]

rpm -ivh a52dec-0.7.4-7.1.fc3.rf.i386.rpm
warning: a52dec-0.7.4-7.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:a52dec ########################################### [100%]
rpm -ivh a52dec-devel-0.7.4-7.1.fc3.rf.i386.rpm
warning: a52dec-devel-0.7.4-7.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:a52dec-devel ########################################### [100%]

rpm -ivh faac-1.24-1.1.fc3.rf.i386.rpm
warning: faac-1.24-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:faac ########################################### [100%]
rpm -ivh faac-devel-1.24-1.1.fc3.rf.i386.rpm
warning: faac-devel-1.24-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:faac-devel ########################################### [100%]

rpm -ivh faad2-2.0-2.20040923.1.fc3.rf.i386.rpm
warning: faad2-2.0-2.20040923.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:faad2 ########################################### [100%]
rpm -ivh faad2-devel-2.0-2.20040923.1.fc3.rf.i386.rpm
warning: faad2-devel-2.0-2.20040923.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:faad2-devel ########################################### [100%]

rpm -ivh lame-3.96.1-2.1.fc3.fr.i386.rpm
warning: lame-3.96.1-2.1.fc3.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:lame ########################################### [100%]
rpm -ivh lame-devel-3.96.1-2.1.fc3.fr.i386.rpm
warning: lame-devel-3.96.1-2.1.fc3.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:lame-devel ########################################### [100%]

rpm -ivh libpostproc-0.4.9-0.20050427.1.1.fc3.i386.rpm
warning: libpostproc-0.4.9-0.20050427.1.1.fc3.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:libpostproc ########################################### [100%]

rpm -ivh xvidcore-1.0.3-1.1.fc3.rf.i386.rpm
warning: xvidcore-1.0.3-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:xvidcore ########################################### [100%]
rpm -ivh xvidcore-devel-1.0.3-1.1.fc3.rf.i386.rpm
warning: xvidcore-devel-1.0.3-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:xvidcore-devel ########################################### [100%]

rpm -ivh ffmpeg-0.4.9-0.20050427.1.1.fc3.i386.rpm
warning: ffmpeg-0.4.9-0.20050427.1.1.fc3.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:ffmpeg ########################################### [100%]
rpm -ivh ffmpeg-devel-0.4.9-0.20050427.1.1.fc3.i386.rpm
warning: ffmpeg-devel-0.4.9-0.20050427.1.1.fc3.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing... ########################################### [100%]
1:ffmpeg-devel ########################################### [100%]

5. By now I am satisfied that FFMPEG and all its dependencies are resolved and installed. Now to try and get ZoneMinder installed.

Download the following:
http://oskin.ru/pub/linux/RedHat/MyRPMS ... 3.i386.rpm

Now I run the following commands:

rpm -ivh zm-1.21.0-304.FC3.i386.rpm
error: Failed dependencies:
libmysqlclient.so.14 is needed by zm-1.21.0-304.FC3.i386
perl(MIME::Entity) is needed by zm-1.21.0-304.FC3.i386
perl-IO-stringy is needed by zm-1.21.0-304.FC3.i386
perl-MIME-tools is needed by zm-1.21.0-304.FC3.i386
perl-MailTools is needed by zm-1.21.0-304.FC3.i386
perl-Unicode-Map is needed by zm-1.21.0-304.FC3.i386
perl-Unicode-String is needed by zm-1.21.0-304.FC3.i386

To satisfy libmysqlclient.so.14, I need to download and upgrade the current MySQL (mysql-3.23.58-13) to
version 4.1. From http://dev.mysql.com/downloads/mysql/4.1.html, I download the following RPMs:

-rwxr-xr-x 1 root root 3321890 Apr 15 12:36 MySQL-bench-4.1.11-0.i386.rpm
-rwxr-xr-x 1 root root 5523410 Apr 15 12:25 MySQL-client-4.1.11-0.i386.rpm
-rwxr-xr-x 1 root root 2823944 Apr 15 12:23 MySQL-devel-4.1.11-0.i386.rpm
-rwxr-xr-x 1 root root 15504128 Apr 12 14:36 MySQL-server-4.1.11-0.i386.rpm
-rwxr-xr-x 1 root root 1605942 Apr 15 12:31 MySQL-shared-compat-4.1.11-0.i386.rpm

I then update the mysql database by running the following command:

rpm -Uvh *
warning: MySQL-bench-4.1.11-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [ 20%]
050511 1:28:41 [Warning] Asked for 196608 thread stack, but got 126976
050511 1:28:41 [Warning] Asked for 196608 thread stack, but got 126976
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting MySQL...[ OK ]
2:MySQL-shared-compat ########################################### [ 40%]
3:MySQL-client ########################################### [ 60%]
4:MySQL-bench ########################################### [ 80%]
5:MySQL-devel ########################################### [100%]

6. Then in order to correctly finalise the MySQL setup, I change root's password on the database using the
following commands:

mysqladmin -u root password 'password'
mysqladmin -u root -h localhost.localdomain password 'password'

I can then then log into the mysql DB using the following command:

mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

So MySQL is working fine.

7. Now to install the rest of the files needed to get ZoneMinder to install. Next I downloaded the following files:

-rwxr-xr-x 1 root root 34650 May 10 21:11 perl-Convert-BinHex-1.119-1.1.fc1.rf.noarch.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 101234 May 10 20:32 perl-IO-stringy-2.109-1.1.fc3.rf.noarch.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 83903 May 10 20:34 perl-MailTools-1.66-1.1.fc3.rf.noarch.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 275113 May 10 20:30 perl-MIME-tools-5.417-1.1.fc3.rf.noarch.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 492495 May 10 20:36 perl-Unicode-Map-0.112-0.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)
-rwxr-xr-x 1 root root 95767 May 10 20:36 perl-Unicode-String-2.07-0.1.fc3.rf.i386.rpm (From http://dag.wieers.com/packages/)

The I run the following commands:

rpm -ivh perl-IO-stringy-2.109-1.1.fc3.rf.noarch.rpm
warning: perl-IO-stringy-2.109-1.1.fc3.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-IO-stringy ########################################### [100%]

rpm -ivh perl-MailTools-1.66-1.1.fc3.rf.noarch.rpm
warning: perl-MailTools-1.66-1.1.fc3.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-MailTools ########################################### [100%]

rpm -ivh perl-Convert-BinHex-1.119-1.1.fc1.rf.noarch.rpm
warning: perl-Convert-BinHex-1.119-1.1.fc1.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-Convert-BinHex ########################################### [100%]

rpm -ivh perl-MIME-tools-5.417-1.1.fc3.rf.noarch.rpm
warning: perl-MIME-tools-5.417-1.1.fc3.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-MIME-tools ########################################### [100%]

rpm -ivh perl-Unicode-Map-0.112-0.1.fc3.rf.i386.rpm
warning: perl-Unicode-Map-0.112-0.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-Unicode-Map ########################################### [100%]

rpm -ivh perl-Unicode-String-2.07-0.1.fc3.rf.i386.rpm
warning: perl-Unicode-String-2.07-0.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-Unicode-String ########################################### [100%]

8. Now that all the dependencies have been satisfied, I can now install ZoneMinder. Now I run the following command:

rpm -ivh zm-1.21.0-304.FC3.i386.rpm
Preparing... ########################################### [100%]
1:zm ########################################### [100%]

9. So far everything is looking fine. No errors have been presented to screen, and neither in the syslog.
I have edited the /etc/zm.conf file to look like this:

cat /etc/zm.conf
# ZoneMinder config
ZM_DB_SERVER=localhost
ZM_DB_NAME=zm
ZM_DB_USER=root
ZM_DB_PASS=password

When I try to start ZM, I get this error:

service zm start
In /etc/zm.conf there should not be null values.
[root@localhost zm]# service zm start
ERROR 1049 (42000): Unknown database 'zm'
ERROR 1049 (42000): Unknown database 'zm'
Don't access to ZoneMinder database. Run /usr/lib/zm/bin/zminit manually.

No problem. I'll just go and run this command, create the DB and then start ZM.

/usr/lib/zm/bin/zminit
Enter MySQL Administrator username: root
Enter password:
Loading config from '/usr/lib/zm/init/zmconfig.txt'
Loading config from '/etc/zm.conf'
Loading config from DB
DBI connect('database=zm;host=localhost','root',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at /usr/lib/zm/init/zmoptions line 1481
Error: unable to load options from database: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Saving config to DB
DBI connect('database=zm;host=localhost','root',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at /usr/lib/zm/init/zmoptions line 1392
Error: unable to save options to database: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Bang! The wheels fall off!

So, if I consider that I have updates MySQL, I may as well update PHP, YUM, and a few others to see if I can
get the ZMINIT to create the database. After checking YUM's repositories, I see that all I can really update
is the MyODBC RPM. The MySQL client is the one shipped from MySQL's website, and according to YUM, there are
no new releases on the MySQL Client application. Although when I log into MySQL, I can see that the ZM
database has been created, together with some tables:

mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.1.11-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+----------+
| Database |
+----------+
| mysql |
| test |
| zm |
+----------+
3 rows in set (0.07 sec)

mysql> use zm;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+--------------+
| Tables_in_zm |
+--------------+
| Config |
| Controls |
| Events |
| Filters |
| Frames |
| Groups |
| Monitors |
| States |
| Stats |
| TriggersX10 |
| Users |
| Zones |
+--------------+
12 rows in set (0.00 sec)

10. I run the following commands to perform the updates:
yum update yum
yum update MyODBC
yum update php*

Transaction Listing:
Update: php.i386 0:4.3.11-2.4 - updates-released
Update: php-devel.i386 0:4.3.11-2.4 - updates-released
Update: php-domxml.i386 0:4.3.11-2.4 - updates-released
Update: php-gd.i386 0:4.3.11-2.4 - updates-released
Update: php-imap.i386 0:4.3.11-2.4 - updates-released
Update: php-ldap.i386 0:4.3.11-2.4 - updates-released
Update: php-mbstring.i386 0:4.3.11-2.4 - updates-released
Update: php-mysql.i386 0:4.3.11-2.4 - updates-released
Update: php-ncurses.i386 0:4.3.11-2.4 - updates-released
Update: php-odbc.i386 0:4.3.11-2.4 - updates-released
Update: php-pear.i386 0:4.3.11-2.4 - updates-released
Update: php-pgsql.i386 0:4.3.11-2.4 - updates-released
Update: php-snmp.i386 0:4.3.11-2.4 - updates-released
Update: php-xmlrpc.i386 0:4.3.11-2.4 - updates-released

Updated: php.i386 0:4.3.11-2.4 php-devel.i386 0:4.3.11-2.4 php-domxml.i386 0:4.3.11-2.4 php-gd.i386 0:4.3.11-2.4 php-imap.i386 0:4.3.11-2.4 php-ldap.i386 0:4.3.11-2.4 php-mbstring.i386 0:4.3.11-2.4 php-mysql.i386 0:4.3.11-2.4 php-ncurses.i386 0:4.3.11-2.4 php-odbc.i386 0:4.3.11-2.4 php-pear.i386 0:4.3.11-2.4 php-pgsql.i386 0:4.3.11-2.4 php-snmp.i386 0:4.3.11-2.4 php-xmlrpc.i386 0:4.3.11-2.4
Complete!

After this I run ldconfig to rebuild the /etc/ld.so.conf file.

When I rerun the zminit I get the same error.

After going back to http://oskin.ru/pub/linux/RedHat/MyRPMS ... ore/3/RPMS, I download and update the following:

-rw-r--r-- 1 root root 126612 May 11 02:12 MyODBC-3.51.09-1.FC3.i386.rpm
-rw-r--r-- 1 root root 85676 May 11 02:11 MySQL-python-1.1.6-1.FC3.i386.rpm

rpm -Uvh MyODBC-3.51.09-1.FC3.i386.rpm
Preparing... ########################################### [100%]
1:MyODBC ########################################### [100%]

rpm -Uvh MySQL-python-1.1.6-1.FC3.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-python ########################################### [100%]

and then for good measure, I get YUM to update PERL, seeing that ZMINIT is written in PERL (I am getting desperate)

Update: perl.i386 3:5.8.5-11.FC3 - updates-released
Update: perl-Cyrus.i386 0:2.2.12-1.1.fc3 - updates-released
Update: perl-suidperl.i386 3:5.8.5-11.FC3.1 - updates-released

Updated: perl.i386 3:5.8.5-11.FC3 perl-Cyrus.i386 0:2.2.12-1.1.fc3 perl-suidperl.i386 3:5.8.5-11.FC3.1
Dependency Updated: cyrus-imapd-utils.i386 0:2.2.12-1.1.fc3
Complete!

Could someone help me with this?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

For Oskins rpm's you need to update MySQL to 4.1 to work and I'm not sure what version of ffmpeg he compiled against.
If you want an easy way to install see:
http://www.zoneminder.com/forums/viewtopic.php?t=4225
Also I have all the packages up on my server:
http://www.computerntelecom.com in the downloads section are all for the install of zm.
Regards,
Cordel
Last edited by cordel on Sun Jul 17, 2005 7:37 am, edited 1 time in total.
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Post by oskin »

mysql it is preferable to take with oskin.ru. All packages it is required which libmysqlclient.so.10 too are on oskin.ru.
During creation of a package it was used ffmpeg-0.4.9-0.20041110.1.1.fc3.fr
Locked