make not "making"

Support and queries relating to all previous versions of ZoneMinder
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

make not "making"

Post by sick347 »

I'll bet that my last problem I posted is due to the fact that I did not have a successful make.

Not sure why either.

What should I do to get this to make?

frank@wdshss:~/ZoneMinder-1.22.0/scripts> make
make: *** No targets specified and no makefile found. Stop.
frank@wdshss:~/ZoneMinder-1.22.0/scripts>


thanks
-frank
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

Frank,

What was your ./configure command and the output? It has a number of components....

Here is my command only as an EXAMPLE:

./configure --with-mysql=/usr/local/mysql --with-ffmpeg=/home/src/ffmpeg-0.4.9-pre1 --with-lame=/home/src/lame-3.96.1/libmp3lame --with-webdir=/home/sites/Security.658Ridgecrest.com/web --with-cgidir=/home/sites/Security.658Ridgecrest.com/web --with-webuser=httpd --with-webgroup=httpd --with-libarch=lib --enable-debug=yes

-WAM
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

my ./configure line was this:

./configure --with-webdir=/srv/www/htdocs/ --with-cgidir=/srv/www/cgi-bin/ --with-webgroup=www --with-webuser=wwwrun ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zm --with-libarch=lib64

I don't recall any errors as such.

thanks
-frank
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

humm..

I would re-run the configure command and capture and post the output. If you were error free, then maybe you have a permissions issue that prevented ./configure from writing the make file. More likely, I would think, is a failed ./configure.

A make distclean or a make clean, then a re-run of the ./configure command should be harmless if your want to re-create the output.

-WAM
tommy
Posts: 45
Joined: Sun Aug 17, 2003 2:58 am

Post by tommy »

Your first post shows you in the "scripts" directory. Shouldn't you be up a level to run Make?

thanks
tommy
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

tommy wrote:Your first post shows you in the "scripts" directory. Shouldn't you be up a level to run Make?

thanks
tommy

Yeah...it does show me there...I was pretty desperate, I was in every directory I could see that made sense....including the top level (/home/frank/zoneminder/)

thanks for checking me!
-frank
got my eye on you!
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

wmoore wrote:humm..

I would re-run the configure command and capture and post the output. If you were error free, then maybe you have a permissions issue that prevented ./configure from writing the make file. More likely, I would think, is a failed ./configure.

A make distclean or a make clean, then a re-run of the ./configure command should be harmless if your want to re-create the output.

-WAM
wmoore,
I will give this a shot when I get home tonight...seems like I missed a massive point...what a newb :roll:

thanks
-frank
got my eye on you!
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

wmoore wrote:humm..

I would re-run the configure command and capture and post the output. If you were error free, then maybe you have a permissions issue that prevented ./configure from writing the make file. More likely, I would think, is a failed ./configure.

A make distclean or a make clean, then a re-run of the ./configure command should be harmless if your want to re-create the output.

-WAM
ok....done!!!

You were right! warnings!

see below:::

frank@wdshss:~/ZoneMinder-1.22.0> ./configure --with-webdir=/srv/www/htdocs/ --w
ith-cgidir=/srv/www/cgi-bin/ --with-webgroup=www --with-webuser=wwwrun ZM_DB_HOS
T=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zm --with-libarch=lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-mysql option.
This tells configure where to find the MySql C library and headers if config
ure cannot
locate them automatically.
e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg root directory within which ar
e the libavcodec
and libavformat files that can be used to build true MPEG streaming into Zon
eMinder. Ensure that
your copy of ffmpeg has installed libraries as well as binaries (use 'make i
nstalllib'). If you
are using a local install of ffmpeg you may have to remove or rename a previ
ous real installation
as the headers and libraries from that will probably be picked up before you
r local copy.
e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-extralibs option.
Ordinarily you will need to use this option only when your copy of ffmpeg ha
s been built
with support for additional formats and you would use this option to detail
which additional
libraries ffmpeg was built with so that it is able to link successfully with
ZoneMinder.
You will need to wrap this option in quotes if it contains any spaces.
e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or -
-disable-debug option.
This tells configure whether to compile ZoneMinder with debug included. Alth
ough debug is included
by default it is not output unless explicitly switched on elsewhere. These c
hecks may induce a
small penalty on performance and if you are after squeezing the maximum poss
ible performance out
of ZoneMinder you may use this switch to prevent debug from being compiled i
n.
e.g. --enable-debug=yes or --disable-debug
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 ANSI C... 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 egrep... 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 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 for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for ff_gcd in -lavutil... no
configure: WARNING: libavutil.a may be required for MPEG streaming
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for perl... perl
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... no
configure: error: zm requires Date::Manip
frank@wdshss:~/ZoneMinder-1.22.0>


thanks
-frank
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

try this:

>cpan -e Date::Manip

Follow prompts...

Then make clean and start over. Let us know is you get any further...

I think this is a complete list of the required modules:

module Sys::Syslog
module DBI
module DBD::mysql
module Getopt::Long
module Time::HiRes
module Date::Manip
module LWP::UserAgent
module Device::SerialPort
module Net::FTP
module Archive::Tar
module Archive::Zip
module Net::SMTP
module MIME::Lite
module MIME::Entity
module X10::ActiveHome


-WAM
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

wmoore wrote:try this:

>cpan -e Date::Manip

Follow prompts...

Then make clean and start over. Let us know is you get any further...

I think this is a complete list of the required modules:

module Sys::Syslog
module DBI
module DBD::mysql
module Getopt::Long
module Time::HiRes
module Date::Manip
module LWP::UserAgent
module Device::SerialPort
module Net::FTP
module Archive::Tar
module Archive::Zip
module Net::SMTP
module MIME::Lite
module MIME::Entity
module X10::ActiveHome


-WAM

ok great got the CPAN stuff in.

I don't understand the 'make clean' command. Do I need to be in a certain dir to issue the command, because it does not seem to be in my PATH.

wdshss:/home/frank # make clean
make: *** No rule to make target `clean'. Stop.
wdshss:/home/frank #

I'm pretty new at this compile / install stuff and I have never used "make" so please forgive the ignorance...
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

My bad...

If you haven't had a successful make, you won't be able to make clean...

Frankly, it may not really be necessary. If you have a previous compile out there, and then you make some chages and want to start over, make clean just cleans everything up and get you ready for a new run.

I do it out of habit, and to ensure that the change I am trying to affect doesen't get caught up with any halmarks from a previous compile.

For now, just skip it and re-run the ./configure command and see how things look.

Sorry about that.

-WAM
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

wmoore wrote:My bad...

If you haven't had a successful make, you won't be able to make clean...

Frankly, it may not really be necessary. If you have a previous compile out there, and then you make some chages and want to start over, make clean just cleans everything up and get you ready for a new run.

I do it out of habit, and to ensure that the change I am trying to affect doesen't get caught up with any halmarks from a previous compile.

For now, just skip it and re-run the ./configure command and see how things look.

Sorry about that.

-WAM
Hey NO WORRIES!!!

I'm just happy you are lending a helping hand here to a total novice.

MANY THANKS!

so, I ran the ./config again and the output looks different...different in a good way I hope...


frank@wdshss:~/ZoneMinder-1.22.0> ./configure --with-webdir=/srv/www/htdocs/ --with-cgidir=/srv/www/cgi-bin/ --with-webgroup=www --with-webuser=wwwrun --with-mysql=/usr/include --with-ffmpeg=/usr/local ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zm --with-libarch=lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-extralibs option.
Ordinarily you will need to use this option only when your copy of ffmpeg has been built
with support for additional formats and you would use this option to detail which additional
libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
You will need to wrap this option in quotes if it contains any spaces.
e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
This tells configure whether to compile ZoneMinder with debug included. Although debug is included
by default it is not output unless explicitly switched on elsewhere. These checks may induce a
small penalty on performance and if you are after squeezing the maximum possible performance out
of ZoneMinder you may use this switch to prevent debug from being compiled in.
e.g. --enable-debug=yes or --disable-debug
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 ANSI C... 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 egrep... 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 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 for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for ff_gcd in -lavutil... no
configure: WARNING: libavutil.a may be required for MPEG streaming
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for perl... perl
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... ok
checking for perl module LWP::UserAgent... ok
checking for perl module Device::SerialPort... no
configure: WARNING: Device::SerialPort is required for RS232/RS485 PTZ camera control
checking for perl module Net::FTP... ok
checking for perl module Archive::Tar... ok
checking for perl module Archive::Zip... ok
checking for perl module Net::SMTP... ok
checking for perl module MIME::Lite... ok
checking for perl module MIME::Entity... ok
checking for perl module X10::ActiveHome... no
configure: WARNING: X10::ActiveHome is required for X.10 support
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating web/graphics/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating web/graphics/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zm.conf
config.status: creating src/zm_config.h
config.status: creating web/zm_config.php
config.status: creating scripts/zm
config.status: creating db/zm_create.sql
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating web/graphics/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zm.conf
config.status: creating src/zm_config.h
config.status: creating web/zm_config.php
config.status: creating scripts/zm
config.status: creating db/zm_create.sql
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for scripts/ZoneMinder/Makefile... no
Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder
frank@wdshss:~/ZoneMinder-1.22.0>
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

I'm just happy you are lending a helping hand here to a total novice.
Hay, I am just a novice who has done this a few more times.... Dont sweat it.
./configure ......
.....
.....
Checking if your kit is complete...
Looks good
I think you are good to try a make, then a make install....

Obviously do the DB stuff inbetween, unless that it is done.

In time, you might want to go back and add some aditional features... I.E. ffmpeg, pcre, etc.

Give it a try and report back if ya can.

-WAM
sick347
Posts: 85
Joined: Tue Mar 28, 2006 5:19 pm

Post by sick347 »

YES!!! it friggin worked! make did anyway...

It appears that I need to be root to do make install?

frank@wdshss:~/ZoneMinder-1.22.0> make install
Making install in src
make[1]: Entering directory `/home/frank/ZoneMinder-1.22.0/src'
make[2]: Entering directory `/home/frank/ZoneMinder-1.22.0/src'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'zmc' '/usr/local/bin/zmc'
/usr/bin/install: cannot remove `/usr/local/bin/zmc': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/frank/ZoneMinder-1.22.0/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/frank/ZoneMinder-1.22.0/src'
make: *** [install-recursive] Error 1
frank@wdshss:~/ZoneMinder-1.22.0>
got my eye on you!
wmoore
Posts: 43
Joined: Mon Mar 29, 2004 2:25 am

Post by wmoore »

Cool.

Do you have root access on this box?

Cuz your right, that make install looks pritty bad.

-WAM
Locked