configue syntax error

Asked by Huiqun Zhou

I'm trying to compile ESys on my cluster. I've installed cppunit 1.12.1, boost 1.39.0 in /usr/local/.... When I run configure, I got an syntax error:
./configure: line 1793: syntax error near unexpected token `1.10.0,'
./configure: line 1793: `AM_PATH_CPPUNIT(1.10.0, ,AC_MSG_ERROR([Dud CppUnit version found, version must be >= 1.10.0.]))'

What's wrong?

Huiqun Zhou

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Will (will-hancock) said :
#1

Hi Huiqun Zhou,

I've run into this error before, the issue was that cppunit wasn't being installed correctly. In my case just doing a simple "yum install" wasn't installing the development libraries which are needed for ESyS-Particle. I ended up downloading cppunit and making/installing from scratch, i'm not sure if you did that originally? I think another way would be to use the package manager to make sure the development libraries for cppunit are installed.

Hope that helps.

Will

Revision history for this message
Huiqun Zhou (hqzhou) said :
#2

Will, thank you for your quick response.

In fact, I compiled cppunit and boost from scratch. I did the compilation
from very begining again yesterday, and found the problem came from
autogen:

[chef@geohpclab ESyS-Particle-2.0.1b]$ sh autogen.sh
aclocal:configure.ac:23: warning: macro `AM_PATH_CPPUNIT' not found in
library

Any ideas?

Huiqun

----- Original Message -----
From: "Will" <email address hidden>
To: <email address hidden>
Sent: Wednesday, June 03, 2009 9:52 AM
Subject: Re: [Question #73016]: configue syntax error

Your question #73016 on ESyS-Particle changed:
https://answers.launchpad.net/esys-particle/+question/73016

    Status: Open => Answered

Will proposed the following answer:
Hi Huiqun Zhou,

I've run into this error before, the issue was that cppunit wasn't being
installed correctly. In my case just doing a simple "yum install" wasn't
installing the development libraries which are needed for ESyS-Particle.
I ended up downloading cppunit and making/installing from scratch, i'm
not sure if you did that originally? I think another way would be to use
the package manager to make sure the development libraries for cppunit
are installed.

Hope that helps.

Will

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/esys-particle/+question/73016/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/esys-particle/+question/73016

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dion Weatherley (d-weatherley) said :
#3

Hi Huiqun,

I think your problem might be the same as I experienced on our cluster. The issue is that aclocal cannot find the cppunit macro file during the autogen.sh step. To fix this I had to find the directory containing the "cppunit.m4" file then edit autogen.sh to tell aclocal where to find the file.

In my case, "cppunit.m4" was located in "/sw/apps/cppunit/x86_64/gcc-4.1.2/cppunit-1.12.1/share/aclocal" so I editted autogen.sh and replaced the following line:

aclocal -I Config

with the following:
aclocal -I Config -I /sw/apps/cppunit/x86_64/gcc-4.1.2/cppunit-1.12.1/share/aclocal

Once you've edited autogen.sh, rerun that script then continue to ./configure.

I hope this helps (and thanks to Will for helping with this problem).

Cheers,

Dion.

Revision history for this message
Huiqun Zhou (hqzhou) said :
#4

This indeed helped a lot. Dion, thank you!

Huiqun

> -----Original Message-----
> 发件人: Dion Weatherley <email address hidden>
> 日期: Wed, 03 Jun 2009 11:22:40 -0000
> 收件人: <email address hidden>
> 主题: Re: [Question #73016]: configue syntax error
> Your question #73016 on ESyS-Particle changed:
> https://answers.launchpad.net/esys-particle/+question/73016
>
> Status: Open => Answered
>
> Dion Weatherley proposed the following answer:
> Hi Huiqun,
>
> I think your problem might be the same as I experienced on our cluster.
> The issue is that aclocal cannot find the cppunit macro file during the
> autogen.sh step. To fix this I had to find the directory containing the
> "cppunit.m4" file then edit autogen.sh to tell aclocal where to find the
> file.
>
> In my case, "cppunit.m4" was located in
> "/sw/apps/cppunit/x86_64/gcc-4.1.2/cppunit-1.12.1/share/aclocal" so I
> editted autogen.sh and replaced the following line:
>
> aclocal -I Config
>
> with the following:
> aclocal -I Config -I /sw/apps/cppunit/x86_64/gcc-4.1.2/cppunit-1.12.1/share/aclocal
>
> Once you've edited autogen.sh, rerun that script then continue to
> ./configure.
>
> I hope this helps (and thanks to Will for helping with this problem).
>
> Cheers,
>
> Dion.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/esys-particle/+question/73016/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/esys-particle/+question/73016
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Dion Weatherley (d-weatherley) said :
#5

Have fun with ESyS-Particle Huiqun!

Dion

Can you help with this problem?

Provide an answer of your own, or ask Huiqun Zhou for more information if necessary.

To post a message you must log in.