Problem configuring source

Forum for questions and support relating to the 1.24.x releases only.
Locked
cmendes0101
Posts: 6
Joined: Mon May 16, 2011 7:41 pm

Problem configuring source

Post 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
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Problem configuring source

Post by mastertheknife »

It complains about g++ not being available on your system, which is actually part of gcc.

mastertheknife.
Kfir Itzhak.
cmendes0101
Posts: 6
Joined: Mon May 16, 2011 7:41 pm

Re: Problem configuring source

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Problem configuring source

Post 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.
Phil
cmendes0101
Posts: 6
Joined: Mon May 16, 2011 7:41 pm

Re: Problem configuring source

Post 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?
cmendes0101
Posts: 6
Joined: Mon May 16, 2011 7:41 pm

Re: Problem configuring source

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