Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#38013 closed defect (worksforme)

boost +openmpi trouble & possible solution

Reported by: richard.katz@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: boost

Description (last modified by larryv (Lawrence Velázquez))

I tried to run

sudo port install boost +openmpi

but got this error:

:info:configure error: unrecognized option: --with-mpi=/opt/local

so I did

sudo port edit boost

and made the following changes

configure.args      --with-libraries=mpi \
                   #--without-libraries=python \
                   #--with-mpi=${prefix} \
                   #--with-toolset=darwin \
                    --with-icu=${prefix}

The installation seems to have worked after this.

Change History (4)

comment:1 Changed 12 years ago by richard.katz@…

Cc: richard.katz@… added

Cc Me!

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: richard.katz@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to adfernandes@…

Thanks for the ticket. In the future, please Cc relevant port maintainers and use WikiFormatting to format your description.

comment:3 Changed 12 years ago by adfernandes (Andrew Fernandes)

Resolution: worksforme
Status: newclosed

Hmm... I don't know why yours fails; what versions of OS and compilers are you using? Have you updated MacPorts completely?

I've just tried several variations, and they all work for me without change.

comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)

The current version of boost (@1.52.0_1) does not seem to have the configure.args you describe.

% grep -A 5 'configure.args' $(port file boost)
configure.args      --without-libraries=python \
                    --without-libraries=mpi \
                    --with-icu=${prefix}

configure.universal_args

--
            configure.args-delete   --without-libraries=python
            configure.args-append   --with-python=${prefix}/bin/python${v}

            patchfiles-append   patch-tools-build-v2-tools-python.jam.diff \
                                patch-tools-build-v2-tools-python-2.jam.diff

            post-patch {
--
    configure.args-delete   --without-libraries=mpi

    post-configure {
        write_jam "using mpi : ${prefix}/bin/openmpic++ : : ${prefix}/bin/openmpirun ;"
    }

%
Note: See TracTickets for help on using tickets.