Page 1 of 3

"make install" does nothing

Posted: Mon Oct 30, 2006 2:59 pm
by Barbado
Hello gentlemen,

Iam a Brazilian Java developer trying to install ZoneMinder 1.22.2 along with MySQL within a stable Debian (Sarge) box, kernel v. 2.6.16.

Using packages apache2 and php5.

Please note that I'm not used to databases. I'm sorry if I skipped some essential step.

Here is the sequence used untill this problem appeared:

Code: Select all

# echo kernel.shmmax = 134217728 >> /etc/sysctl.conf
Since I already had MySQL installed with proper root user password defined, I logged in:

Code: Select all

# mysql -u root -p

> grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by '<my_root_passwd>';

> quit

# mysqladmin reload -u root -p
And, inside the following directory,

Code: Select all

ZoneMinder-1.22.2# ls
acinclude.m4  ChangeLog    configure     db       install-sh   missing        README       README.rtf  src   zm.conf.in
aclocal.m4    config.h.in  configure.in  depcomp  Makefile.am  mkinstalldirs  README.html  README.txt  TODO
AUTHORS       config.log   COPYING       INSTALL  Makefile.in  NEWS           README.pdf   scripts     web
I provided the following commands:

Code: Select all

# ./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin

# make install
This last command returns me:

Code: Select all

make: *** Without rule for processing `install' target.  Stop.
I know little about make and I would really appreciatte any help.

Thank you very much for your attention.

Posted: Mon Oct 30, 2006 10:13 pm
by malarcy
I too am a compete newbie - but I have got ZM up and running - I am using ubuntu dapper - but I don't think that's relevent - looking at your posting I think you have missed something on the .configure line. The howto I used gave it as this:

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

HTH

Malarcy

Posted: Wed Nov 01, 2006 8:42 pm
by Barbado
started all over again, carefully following README and INSTALL files.

by this time, my configure command was:

Code: Select all

# ./configure --with-webdir=/var/www/zm –-with-cgidir=/var/www/cgi-bin –-with-webuser=www-data –-with-webgroup=www-data ZM_DB_HOST=vigilancia
the error returned:

Code: Select all

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
any ideas?

Posted: Wed Nov 01, 2006 10:40 pm
by malarcy
Guess the c++ compiler isn't installed - seems to be a bit of discussion here....

http://www.linuxquestions.org/questions ... tid=647188

HTH

Malarcy

Posted: Thu Nov 02, 2006 5:37 am
by cordel
Make sure you have cpp installed.
[cordel@builder64 ~]$ rpm -q --whatprovides /lib/cpp
cpp-4.1.1-1.fc5
Regards,
Corey

Posted: Fri Nov 03, 2006 5:52 pm
by Barbado
Thanks Malarcy and Corey,

think I've passed that level but a new problem has just showed up.

Remembering my configure command:

Code: Select all

# ./configure --with-webdir=/var/www/zm –-with-cgidir=/var/www/cgi-bin –-with-webuser=www-data –-with-webgroup=www-data ZM_DB_HOST=vigilancia
and this is the new error message I'm receiving:

Code: Select all

checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
configure: error: zm requires mysql/mysql.h
See, I've already installed package mysql-server.
What's wrong here?

Thank you.

Posted: Fri Nov 03, 2006 6:44 pm
by cordel
It needs the client and devel. A list of the prerequisites is in the hints and tips topic ZoneMinder Dependencies That may be of some use to you.

Regards,
Corey

2 new errors

Posted: Mon Nov 06, 2006 5:08 pm
by Barbado
Ok thank you Corey,
I really appreciate your help.

I'm checking the list you provided to eliminate these new errors I'm receiving. They say my system lacks some stuff but the referred packages are in there.

1st error:
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
I installed both libpcre3-dev and perl packages so I'm a bit confused here.

2nd error
checking whether MD5 is declared... no
configure: error: zm requires openssl/md5.h
Again I have the current openssl package version installed.

Posted: Mon Nov 06, 2006 5:22 pm
by cordel
Some program requirements have several tests in configure ( to account for the different distros and the differance on where things are placed) so there are three different tests for pcre and all but one should fail. As long as one of the tests pass, your good to go.
Other wise you will have to add the path into configue.

Regards,
Corey

make install

Posted: Tue Nov 07, 2006 4:06 pm
by Barbado
my newest error

make install error: now this topic's main subject starts to "make" sense =)
zm_mpeg.cpp:88: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' in initialization
zm_mpeg.cpp:109: error: 'struct AVCodecContext' has no member named 'frame_rate'
zm_mpeg.cpp:110: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
zm_mpeg.cpp: In member function 'void VideoStream::OpenStream()':
zm_mpeg.cpp:161: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' in initialization
zm_mpeg.cpp: In destructor 'VideoStream::~VideoStream()':
zm_mpeg.cpp:256: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' for argument '1' to 'int avcodec_close(AVCodecContext*)'
zm_mpeg.cpp: In member function 'double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:303: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' in initialization
make[1]: ** [zm_mpeg.o] Erro 1
make[1]: Leaving directory `/home/mbarbado/ZoneMinder-1.22.2/src'
make: ** [install-recursive] Erro 1
help?

Posted: Tue Nov 07, 2006 4:09 pm
by jameswilson
see wiki re ffmpeg patch

Posted: Tue Nov 07, 2006 4:24 pm
by Barbado
Shall I just download zm-1.22.2-ffmpeg.patch into ZM's directory and rerun make install? Is it the correct thing to do?

Posted: Tue Nov 07, 2006 4:39 pm
by jameswilson
Sorry mate i dont know i only use rpm's

Posted: Tue Nov 07, 2006 5:09 pm
by zoneminder
No, follow the instructions in the Patches section at http://www.zoneminder.com/wiki/index.php/Patches

Cambozola now

Posted: Wed Nov 08, 2006 3:14 pm
by Barbado
Thanx again,

about Cambozola:
I need to put it in the web directory I specified in my ./configure command, right?
In my case,
--with-webdir=/var/www/zm
By that time, do I have to rebuild and reinstall ZM?