"make install" does nothing

Support and queries relating to all previous versions of ZoneMinder
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

"make install" does nothing

Post 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.
malarcy
Posts: 6
Joined: Sat Oct 28, 2006 6:12 pm

Post 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
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post 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?
malarcy
Posts: 6
Joined: Sat Oct 28, 2006 6:12 pm

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Make sure you have cpp installed.
[cordel@builder64 ~]$ rpm -q --whatprovides /lib/cpp
cpp-4.1.1-1.fc5
Regards,
Corey
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

2 new errors

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

make install

Post 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?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

see wiki re ffmpeg patch
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Post 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?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Sorry mate i dont know i only use rpm's
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

No, follow the instructions in the Patches section at http://www.zoneminder.com/wiki/index.php/Patches
Phil
User avatar
Barbado
Posts: 58
Joined: Fri Oct 27, 2006 8:01 pm
Location: Sao Paulo, SP Brazil

Cambozola now

Post 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?
Locked