Error 255 amongst other things

Forum for questions and support relating to the 1.24.x releases only.
Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Fri Nov 06, 2009 7:08 pm

Latest try on Zoneminder 1.23
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... yes
checking for struct sigcontext.eip... yes
checking for ucontext_t... yes
checking how to run the C++ preprocessor... g++ -E
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a

Where does that come from?

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Fri Nov 06, 2009 7:26 pm

OK.
I downloaded and installed PHP
Then I downloaded and installed libjpeg7

Then I did:
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data

and it actually said:
"looks good"

So I did:
make install ZoneMinder
and then the thing came up with hundreds of lines and ended as shown below:

make[3]: Entering directory `/root/Downloads/ZoneMinder'
( cd /usr/local/etc; chown www-data:www-data zm.conf; chmod 600 zm.conf )
( if ! test -e /var/run; then mkdir /var/run; fi )
( if ! test -e /var/run/zm; then mkdir /var/run/zm; fi; chown www-data:www-data /var/run/zm; chmod u+w /var/run/zm )
make[3]: Leaving directory `/root/Downloads/ZoneMinder'
make[2]: Leaving directory `/root/Downloads/ZoneMinder'
make[1]: Leaving directory `/root/Downloads/ZoneMinder'
make: *** No rule to make target `ZoneMinder'. Stop.

Is this good or bad?

littlej
Posts: 68
Joined: Sun Oct 18, 2009 11:46 am

Post by littlej » Fri Nov 06, 2009 8:20 pm

afther config do :
"make"
if this goes well
do :
"make install"

gl

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Fri Nov 06, 2009 8:48 pm

The ./config seemed to go very well

The make seemed to go O.K. It said it was leaving the directories and then finished.

this is the last load of lines after the make install:

Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
make[2]: Leaving directory `/root/Downloads/ZoneMinder/scripts/ZoneMinder'
make[1]: Leaving directory `/root/Downloads/ZoneMinder/scripts'
Making install in db
make[1]: Entering directory `/root/Downloads/ZoneMinder/db'
make[2]: Entering directory `/root/Downloads/ZoneMinder/db'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/Downloads/ZoneMinder/db'
make[1]: Leaving directory `/root/Downloads/ZoneMinder/db'
make[1]: Entering directory `/root/Downloads/ZoneMinder'
make[2]: Entering directory `/root/Downloads/ZoneMinder'
test -z "/usr/local/etc" || /bin/mkdir -p "/usr/local/etc"
/usr/bin/install -c -m 644 'zm.conf' '/usr/local/etc/zm.conf'
make install-data-hook
make[3]: Entering directory `/root/Downloads/ZoneMinder'
( cd /usr/local/etc; chown www-data:www-data zm.conf; chmod 600 zm.conf )
( if ! test -e /var/run; then mkdir /var/run; fi )
( if ! test -e /var/run/zm; then mkdir /var/run/zm; fi; chown www-data:www-data /var/run/zm; chmod u+w /var/run/zm )
make[3]: Leaving directory `/root/Downloads/ZoneMinder'
make[2]: Leaving directory `/root/Downloads/ZoneMinder'
make[1]: Leaving directory `/root/Downloads/ZoneMinder'
root@Cameras:~/Downloads/ZoneMinder#

Is this good?

littlej
Posts: 68
Joined: Sun Oct 18, 2009 11:46 am

Post by littlej » Sat Nov 07, 2009 7:14 am

yea it seems to be ok

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sat Nov 07, 2009 10:47 am

Great!!


But,sorry to be a pain, but shouldn't it come up on one of the menus? e.g. Applications/Sound & Video/ZoneMinder, or am I just being naive (Sorry, extreme newbie here, Installed Linux about a week ago)

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sat Nov 07, 2009 1:36 pm

After perusing through the wiki page for Ubuntu, and doing the path change as directed in:

http://www.zoneminder.com/wiki/index.ph ... _interface

I opened the web page http://localhost as instructed and got:

Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/zoneminder/includes/database.php on line 32
Could not connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Again as per 7 posts ago (last post on page 1), this directory is empty,
I've eaten the sausages
Nada
Zilch
etc.

B*gg*r!

littlej
Posts: 68
Joined: Sun Oct 18, 2009 11:46 am

Post by littlej » Sat Nov 07, 2009 2:28 pm

do you have mysql instaled ?

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sat Nov 07, 2009 3:20 pm

Mysql administrator and mysql query browser both come up under Applications/Programming and mysql Navigator comes up under Accessories.
The Ubuntu Software Centre also confirms that I have Mysql Client and Mysql Server installed.
But when I open a terminal and type it in, I get the following:

root@Cameras:~# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@Cameras:~# ^C

or
root@Cameras:~# mysql mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

or even
root@Cameras:~# mysql < db/zm_create.sql
bash: db/zm_create.sql: No such file or directory

If I change directory to /Downloads/ZoneMinder and try the last command:

root@Cameras:/# cd ./usr/share/zoneminder/
root@Cameras:/usr/share/zoneminder# mysql < db/zm_create.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@Cameras:/usr/share/zoneminder#

so, obviously, I haven't done something..

Now if I go into mysql administrator, everything is greyed out, except for the "Add", so is it just a case of sticking something in there?


Is it simply a case of loading mysql, and if so from where? or is there something else I have missed?
Last edited by Fitch on Sat Nov 07, 2009 3:43 pm, edited 1 time in total.

littlej
Posts: 68
Joined: Sun Oct 18, 2009 11:46 am

Post by littlej » Sat Nov 07, 2009 3:39 pm

try : apt-get install mysql
if i remember coreclty this apt-get its in ubuntu,
that way it will install mysql server i hope :P
afther that startup scripts should be in /etc/init.d/

so u should start it up like this :

/etc/init.d/mysqld start or restart

afther that user mysql and if u got a mysql promt than u have mysql runing

gl

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sat Nov 07, 2009 5:32 pm

Tried that a while back, never worked!

But...
After downloading from http://dev.mysql.com/downloads/mysql/5.1.html#source
then going to http://tantos.web.id/blogs/installing-a ... buntu-9-04

doing what it says until the configure bit - which is missing the last bit, finding the last bit from another website to get the code below,

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --without-debug --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --localstatedir=/usr/local/mysql/data --with-extra-charsets=none --enable-assembler --with-unix-socket-path=/tmp/mysql.socket --with-named-curses-libs=/usr/lib/libncurses.a

Then I had to get libncurses5-dev, .configure all over again.
make
make install

Doing the rest of http://tantos.web.id/blogs/installing-a ... buntu-9-04

Only to get

/etc/init.d/mysql start
Starting MySQL
... * Manager of pid-file quit without updating file.
root@Cameras:~/Downloads/mysql-5.1.40# mysql_install_db
Installing MySQL system tables...
091107 17:29:25 [ERROR] /usr/sbin/mysqld: unknown option '--if ($CMD) {'
091107 17:29:25 [ERROR] Aborting

091107 17:29:25 [Warning] Forcing shutdown of 2 plugins
091107 17:29:25 [Note] /usr/sbin/mysqld: Shutdown complete

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sat Nov 07, 2009 9:41 pm

I've had a look at the my.cnf file as per http://www.directadmin.com/forum/showpo ... stcount=33
and found about 6 lines that all had /var/run/mysql instead of /var/lib/mysql
so I changed that and now I get

mysqld
091107 21:32:41 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
091107 21:32:41 [Note] Plugin 'FEDERATED' is disabled.
091107 21:32:41 InnoDB: Started; log sequence number 0 44233
091107 21:32:41 [ERROR] Can't start server : Bind on unix socket: Permission denied
091107 21:32:41 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysqld/mysqld.sock ?
091107 21:32:41 [ERROR] Aborting

091107 21:32:41 InnoDB: Starting shutdown...
091107 21:32:43 InnoDB: Shutdown completed; log sequence number 0 44233
091107 21:32:43 [Warning] Forcing shutdown of 1 plugins
091107 21:32:43 [Note] mysqld: Shutdown complete

Am I going forwards or backwards?

Am I talking to myself again?

Fitch
Posts: 105
Joined: Sat Oct 31, 2009 4:01 pm
Location: Hartlepool, U.K.
Contact:

Post by Fitch » Sun Nov 08, 2009 7:31 pm

Forget it.

I just wiped the hard drive and loaded Ubuntu 9 and Zoneminder 23.

fernandoc
Posts: 1
Joined: Thu Dec 31, 2009 12:00 am

Reinstall

Post by fernandoc » Thu Dec 31, 2009 12:05 am

Hola,
I had the same problem, I solved using synaptic doing a complete uninstall (purge), I guess should be the same from terminal.
Happy New Year
Fernandoc

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Thu Dec 31, 2009 1:48 am

What does sudo service mysqld status give you???

if it stoped runnit /etc/init.d/mysqld start

what does sudo chkconfig mysqld --list gives you???

if all off then chkconfig --level 345 mysqld on

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests