configure: error: Could not find Boost headers

333 views
Skip to first unread message

researcher1

unread,
Mar 10, 2011, 3:12:46 AM3/10/11
to randomjungle
Hi

I am trying to compile RJ with MPI on a large cluster that I am able
to access but the compilation terminated with the above error.

checking for Boost headers... no
configure: error: Could not find Boost headers

Compiling it with out MPI did not result in the same problem and I
have checked with my admin who insisted that the problem lies in the
sourcecode.


Can someone help me in resolving this issue?

Thanks for your kind attention and time!

Best Regards,

Daniel Schwarz

unread,
Mar 11, 2011, 2:31:26 AM3/11/11
to randomjungle
Hi!

Was the Boost library installed?

researcher1

unread,
Mar 11, 2011, 6:10:04 AM3/11/11
to randomjungle
In latest version of boost library was installed on DIR on the server

On using

./configure --enable-mpi --with-boost=DIR

it still returns the same error.

I am using a system on x86_64 is there a precompiled version for this?

Thanks!

Daniel Schwarz

unread,
Mar 11, 2011, 9:05:35 AM3/11/11
to randomjungle
Could you upload the config.log file?

researcher1

unread,
Mar 12, 2011, 2:56:30 AM3/12/11
to randomjungle
Hi,

It seems like running the ./configure does not result in the error for
boost headers while running it with --enable-mpi does.

I have sent you the config.log .

Thanks for your help!

Best Regards

researcher1

unread,
Mar 14, 2011, 10:47:04 PM3/14/11
to randomjungle
Hi,

According to my admin it seems that there is a problem in the
configure file in path linking to the boost headers.

There seem to be no way of instructing the configuration file to point
to look for the boost headers at another directory once --enable-mpi
is invoked.

Can you look into that please? Thanks!

Daniel Schwarz

unread,
Mar 18, 2011, 2:31:52 PM3/18/11
to random...@googlegroups.com, Zehao Tan

Hi!

 

Looks good to me. It seems that the output of both processes (2 nodes) was put to the *.o file. So, don’t specify  –v.

 

Best regards,

Daniel

 

Von: Zehao Tan [mailto:tanz...@gmail.com]
Gesendet: Freitag, 18. März 2011 09:03
An: dafr...@googlemail.com
Betreff: Re: Re: Re: Re: [randomjungle] Re: configure: error: Could not find Boost headers

 

Hi Daniel,

 

I did that using the following command:

 

./configure --prefix=/scratch/i2r/i2rzehao/ --with-boost=/pvfs2/i2r/i2rzehao/rj-ken/boost_1_46_0 CC=/scratch/i2r/i2rzehao/bin/mpicc CXX=/scratch/i2r/i2rzehao/bin/mpicxx F77=/scratch/i2r/i2rzehao/bin/mpif77 CPPFLAGS=-I/usr/include/gsl

 

And subsequently set the HAVE_MPI variable to 1 in the config.h

 

Finally compiled it with "make install"

 

The program compiled but output verbose had more than 1 entry which is not typical of the MPI enable version I had on another cluster.

 

You can see this in the .o file I attached in this email.

 

Besides that I have also encountered an error in the file .e I have attached. The program exited so is it safe to assume the error did not matter in the actual function of the program?

 

Apologies for the long email.

 

Thanks for your kind help and attention!

 

Best Regards,

 

Zehao 

On Thu, Mar 17, 2011 at 5:57 PM, <dafr...@googlemail.com> wrote:

Thats right (don't forget to export), and you have to switch HAVE_MPI to 1 in the config.h file.

Sent via BlackBerry from E-Plus


From: Zehao Tan <tanz...@gmail.com>

Date: Thu, 17 Mar 2011 17:10:51 +0800

Subject: Re: Re: Re: [randomjungle] Re: configure: error: Could not find Boost headers

 

So if I specify the options for mpi compilers I do not have to invoke the --enable-mpi option?

 

As for specifying the compiler, what I understand from ./configure --help is that the environment variable such CXX, XX and F77 are used to point to the respective compilers.

 

Is that right?

 

Thanks for your help!

 

On Thu, Mar 17, 2011 at 5:05 PM, <dafr...@googlemail.com> wrote:

Yes, see configure --help. You have to specify the c compiler, c++ compiler and fortran compiler (rj needs all 3). When doing that don't use "Enablempi" option. (It is not necessary, because it switches to mpicc, mpic++ and mpifortran compiler. If you have your own mpi compilers, then specify them but donnot use the enablempi option)

Sent via BlackBerry from E-Plus


From: Zehao Tan <tanz...@gmail.com>

Date: Thu, 17 Mar 2011 16:42:18 +0800

Subject: Re: Re: [randomjungle] Re: configure: error: Could not find Boost headers

 

Can I check if there is an option in ./configure to control the compiler used.

 

According to my admin, there are various version of gcc installed on the system latest being 4.3.2 which can be invoked by gcc43.

 

I am trying to see if there is a way to point ./configure to that.

 

Thanks!

 

On Thu, Mar 17, 2011 at 4:06 PM, <dafr...@googlemail.com> wrote:

Could be, and I would install openmpi as well.
Rgds,
Daniel

Sent via BlackBerry from E-Plus


From: Zehao Tan <tanz...@gmail.com>

Date: Thu, 17 Mar 2011 13:21:38 +0800

To: Daniel Schwarz<dafr...@googlemail.com>

Subject: Re: [randomjungle] Re: configure: error: Could not find Boost headers

 

Hi Daniel,

 

My admin wants me to check if installing gcc 4.4 will resolve the problem for the installation of the RJ.

 

May I know your opinion on this?

 

Thanks!

 

Best Regards,

 

Zehao

On Wed, Mar 16, 2011 at 10:36 AM, Zehao Tan <tanz...@gmail.com> wrote:

Hi Daniel,

 

I did a check and got this.

 

[i2rzehao@fuji rjsrc]$ mpicc -v

mpigcc for the Intel(R) MPI Library 4.0 for Linux*

Copyright(C) 2003-2010, Intel Corporation.  All rights reserved.

Using built-in specs.

Target: x86_64-redhat-linux

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux

Thread model: posix

gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)

 

 

Would this help?

 

On Wed, Mar 16, 2011 at 2:25 AM, Daniel Schwarz <dafr...@googlemail.com> wrote:

The log files states that the mpic++ compiler is missing (./configure: line 1679: mpic++: command not found)

What is the name of your compiler?

 

Von: Zehao Tan [mailto:tanz...@gmail.com]

Gesendet: Dienstag, 15. März 2011 10:17
An: Daniel Schwarz

Betreff: Re: [randomjungle] Re: configure: error: Could not find Boost headers

 

Hey,

Nope. I tried that and that option only works without --enable-mpi

 

one --enable-mpi was invoked the option seems to be ignored.

 

I have attached the config files with boost option invoked.

 

Rgds,

 

Zehao

 

On Tue, Mar 15, 2011 at 5:10 PM, Daniel Schwarz <dafr...@googlemail.com> wrote:

Hi,

there is the option --with-boost=DIR for the configure script. Does that
work?

Cheers,
Daniel
-----Ursprüngliche Nachricht-----
Von: random...@googlegroups.com [mailto:random...@googlegroups.com] Im
Auftrag von researcher1
Gesendet: Dienstag, 15. März 2011 03:47
An: randomjungle
Betreff: [randomjungle] Re: configure: error: Could not find Boost headers

--
You received this message because you are subscribed to the Google Groups
"randomjungle" group.
To post to this group, send email to random...@googlegroups.com.
To unsubscribe from this group, send email to
randomjungle...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/randomjungle?hl=en.

 

 

 

 

 

 

Reply all
Reply to author
Forward
0 new messages