Page 1 of 1

Problem configuring source

Posted: Tue May 17, 2011 6:12 pm
by cmendes0101
This is my first time installing ZoneMinder and im having an issue doing the ./configure. Here is the line I'm using:

Code: Select all

./configure --with-mysql=/usr/include/mysql/ --with-ffmpeg=/usr/src/ffmpeg --with-extralibs --with-webdir=/var/www/zm --with-cgidir=/var/www/zm/cgi-bin --with-libarch=lib
This is the error that im getting from the config.log:

Code: Select all

configure:3387: checking whether the C++ compiler works
configure:3409: g++  -I/usr/src/ffmpeg/include  -L/usr/src/ffmpeg/lib -L/usr/include/mysql//lib/mysql  yes conftest.cpp  >&5
g++: yes: No such file or directory
configure:3413: $? = 1
configure:3451: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.24.3"
| #define PACKAGE_STRING "zm 1.24.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.24.3"
| #define ZM_MEM_MAPPED 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3456: error: in `/usr/src/ZoneMinder-1.24.3':
configure:3460: error: C++ compiler cannot create executables
See `config.log' for more details.
It appears to be the 2nd line in the log but not sure what I can do to correct that. Any info would help. Thanks

Re: Problem configuring source

Posted: Tue May 17, 2011 9:04 pm
by mastertheknife
It complains about g++ not being available on your system, which is actually part of gcc.

mastertheknife.

Re: Problem configuring source

Posted: Fri May 20, 2011 5:24 am
by cmendes0101
I have g++ already installed. I've compiled a few other pieces of software with out any issue that used g++ and gcc.

Is there really a file that is called "yes" that is put in the command for g++?

Code: Select all

g++: yes: No such file or directory

Re: Problem configuring source

Posted: Fri May 20, 2011 7:52 am
by zoneminder
What happens if you manually reproduce the steps that configure does? In other words create a file with the same contents and try and compile it with the same command.

Re: Problem configuring source

Posted: Sun May 22, 2011 9:38 pm
by cmendes0101
I'm not really sure what contents to put in the file to try and put in there. Would you be able to suggest what its trying to run so I could try that out?

Re: Problem configuring source

Posted: Mon May 23, 2011 6:59 am
by cmendes0101
Found it!

I has left this "--with-extralibs" on the ./configure line. When I took it out it was able to complete

Thanks