[Sobbing, wiping away tears] Installation question
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
[Sobbing, wiping away tears] Installation question
I will sing on tall buildings the day when wonderful open source programs like this are nice to people like me (dummy non-programmers). Okay, so I finally figured out how to install MySQL development in SUSE -- it's simple, for the record use the YAST2 software update. And I spent a whole night figuring out how to install ffmpeg (haven't a clue how to test it). Now I'm on to Zoneminder itself, yay!
I logged in as root and typed this configure command (as per the readme -- I looked around my directories and I THINK I've got everything correct -- there is no MySQL dir in USR, but it is in several subdirs like bin -- I tried to configure with that dir too...)
"./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=/usr/local/bin/ffmpeg"
But I got this error, where it stopped, after a few hundred lines of output:
"zm requires libz.a"
HELP - Greek to me!
To be sure, I tried the next step,
perl ./zmconfig.pl
But I got this result:
Can't open perl script "./zmconfig.pl": No such file or directory
Why? Again, Greek... HELP!! [tears]
Using SUSE 9.1
Thank you!!
I logged in as root and typed this configure command (as per the readme -- I looked around my directories and I THINK I've got everything correct -- there is no MySQL dir in USR, but it is in several subdirs like bin -- I tried to configure with that dir too...)
"./configure --with-mysql=/usr --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --with-ffmpeg=/usr/local/bin/ffmpeg"
But I got this error, where it stopped, after a few hundred lines of output:
"zm requires libz.a"
HELP - Greek to me!
To be sure, I tried the next step,
perl ./zmconfig.pl
But I got this result:
Can't open perl script "./zmconfig.pl": No such file or directory
Why? Again, Greek... HELP!! [tears]
Using SUSE 9.1
Thank you!!
The zlib-devel package provides the libz.a file (at least in RH it does). A general rule is if the extension is .a it's a library file that other programs can build on to have the ability to use that program (devel -> development). I haven't had a chance as of yet to get into suse but it should be the same.
Your second error is because of the first error.
Regards,
Cordel
Your second error is because of the first error.
Regards,
Cordel
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
'mysql mysql' results in "ERROR 2002: Can't connect to
Thank you, Cordel!!!! You're wonderful. I found and installed zlib-devel via Yast2. And it worked. Now I'm running the Perl thingy. Following instructions....
says I need to create a mysql database user by typing 'mysql mysql', then more stuff at prompt. Sadly, I'm not getting to that prompt -- this is what I get:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
(Oh God, you think it will be like this every step of the way?)
Help!
says I need to create a mysql database user by typing 'mysql mysql', then more stuff at prompt. Sadly, I'm not getting to that prompt -- this is what I get:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
(Oh God, you think it will be like this every step of the way?)
Help!
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
Okay, MySQL problem solved - Start the dang db in runlevel e
First I found this article:
http://www.tech-recipes.com/mysql_tips762.html
(could be useful to somebody, that would be nice...)
But then I found it odd that I seem to have no mysql.sock file ANYWHERE on my system. So I got the cobwebby idea to go lurk in a scarey place. In the runlevel editor I found MySQL, turned it on (and also assigned it to runlevel 5 in hopes that it will continue to run in the future??)
http://www.tech-recipes.com/mysql_tips762.html
(could be useful to somebody, that would be nice...)
But then I found it odd that I seem to have no mysql.sock file ANYWHERE on my system. So I got the cobwebby idea to go lurk in a scarey place. In the runlevel editor I found MySQL, turned it on (and also assigned it to runlevel 5 in hopes that it will continue to run in the future??)
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
Live CD
Will it work better than this process? Do tell more!
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
ok then the wonders of live cd
Install as follows
Download live cd via torrent
Burn live cd from iso
Take virgin machine with as little as you need in it (ie no fancy cards, usb devices etc)
Set pc to boot from cd
Put live cd into machine
Partition drive and format as required (note i use a 2gig root partition, swap partition size of intsalled ram, rest of drive as var
Write boot record to mbr
turn off machine
turn on machine
remove cd
You now have a zm machine setup properly with mysql, zm, all required dependancies etc.
The above list is not exhaustive but you will get the idea. The only problem i have hgad with live cd is not setting my partitions correctly (is root not big enought) and the installation stalled. Also i have a problem with various cards and webcams but this is a linux problem not a live cd problem.
You have Ross to thank for bringing zm (live cd) to the masses. You will still need to read up on how zm works as there are tonnes of poptions to turn on off change etc. Let me know how you get on
James
Install as follows
Download live cd via torrent
Burn live cd from iso
Take virgin machine with as little as you need in it (ie no fancy cards, usb devices etc)
Set pc to boot from cd
Put live cd into machine
Partition drive and format as required (note i use a 2gig root partition, swap partition size of intsalled ram, rest of drive as var
Write boot record to mbr
turn off machine
turn on machine
remove cd
You now have a zm machine setup properly with mysql, zm, all required dependancies etc.
The above list is not exhaustive but you will get the idea. The only problem i have hgad with live cd is not setting my partitions correctly (is root not big enought) and the installation stalled. Also i have a problem with various cards and webcams but this is a linux problem not a live cd problem.
You have Ross to thank for bringing zm (live cd) to the masses. You will still need to read up on how zm works as there are tonnes of poptions to turn on off change etc. Let me know how you get on
James
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
Live CD, very interesting
Oh I see, that's pretty cool! and encourages me to consider setting up a zm lunchbox the moment I have the excuse. Hmmm, my office?...
Sadly, in the meantime, my machine I'm trying to zmify currently already has other purposes. It's my house print server and a personal webserver (via Suse 9.1).
Sadly, in the meantime, my machine I'm trying to zmify currently already has other purposes. It's my house print server and a personal webserver (via Suse 9.1).
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
-
- Posts: 29
- Joined: Fri Aug 05, 2005 9:46 pm
Never-ending.... Make returned errors
Thanks once again, Cordel!! I appreciate all you've done for me. Yes, problem was that MySQL was not running. I've made a successful visit to the runlevel editor. Re: mysql-server? The readme doesn't mention the server, just mysql plus devel (took me a while to figure that all out). The only MySQL software left available via the SUSE Yast2 installation is "MySQL - Max, server with Berkeley db 4mb". Am I in need of that?
The configure step seems good now, and the perl config step thingies seems good now too. Next hitch is when I type 'make'. I've been stuck on that since the wee hours (when I finally went to bed). Output looks like this:
make all-recursive
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3'
Making all in src
make[2]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3'
make: *** [all] Error 2
Also, for the heck it I then ran 'make install' and got the following output. I assume this is because the 'make' wizardry went badly? Thank you!
Making install in src
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[1]: *** [zmc.o] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make: *** [install-recursive] Error 1
The configure step seems good now, and the perl config step thingies seems good now too. Next hitch is when I type 'make'. I've been stuck on that since the wee hours (when I finally went to bed). Output looks like this:
make all-recursive
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3'
Making all in src
make[2]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3'
make: *** [all] Error 2
Also, for the heck it I then ran 'make install' and got the following output. I assume this is because the 'make' wizardry went badly? Thank you!
Making install in src
make[1]: Entering directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/ffmpeg/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
cc1plus: /usr/local/bin/ffmpeg/include: Not a directory
make[1]: *** [zmc.o] Error 1
make[1]: Leaving directory `/home/boop/installs/zoneminder/zm-1.21.3/src'
make: *** [install-recursive] Error 1
I reponded to this in yoiur other thread.
http://www.zoneminder.com/forums/viewtopic.php?t=4860
Regards,
Cordel
http://www.zoneminder.com/forums/viewtopic.php?t=4860
Regards,
Cordel
Live CD don't work
Hi,
I've tried to use LiveCD, but during booting i:
1) had to press 'I' to make it go on
2) after all X didn't start and login promt appeared.
On the other machine it went nice, but unfortunately i have to install ZM on this "problematic" one.
Any suggestions?
Live CD woudl help me a lot, because I wasted already 2 weeks to install zm in 'traditional' way (from rpm), and i can't make it.
I've all dependencies installed, httpd, mysqld, zm runs, batebase is created, users are added to datebase (i can work on zm bd and mysql bd using mysql client or GUI MySQL Administrator). But if i try get access the ZM console through the web browser http://localhost/zm then appeared
Czaba
I've tried to use LiveCD, but during booting i:
1) had to press 'I' to make it go on
2) after all X didn't start and login promt appeared.
On the other machine it went nice, but unfortunately i have to install ZM on this "problematic" one.
Any suggestions?
Live CD woudl help me a lot, because I wasted already 2 weeks to install zm in 'traditional' way (from rpm), and i can't make it.
I've all dependencies installed, httpd, mysqld, zm runs, batebase is created, users are added to datebase (i can work on zm bd and mysql bd using mysql client or GUI MySQL Administrator). But if i try get access the ZM console through the web browser http://localhost/zm then appeared
Thanks in advanceCan't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
Czaba
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
jameswilson,
It's new machine:
MB Asus P5GD2-X
P4 2,66GHz (LGA-775)
512MB DDR2
Radeon X300SE
Serial-ATA HDD
When installing FC3 in standard way I notice that Radeon graphics adapter is not properly detect (default drivers are instaled and max resolusion is 800x600). Maby this is the problem?
I've tried various options e.g. nosound, nodevice, nonetwork, etc. when booting from LiveCD.
Regards,
Czaba
It's new machine:
MB Asus P5GD2-X
P4 2,66GHz (LGA-775)
512MB DDR2
Radeon X300SE
Serial-ATA HDD
When installing FC3 in standard way I notice that Radeon graphics adapter is not properly detect (default drivers are instaled and max resolusion is 800x600). Maby this is the problem?
I've tried various options e.g. nosound, nodevice, nonetwork, etc. when booting from LiveCD.
Regards,
Czaba