dorsal team mailing list archive
-
dorsal team
-
Mailing list archive
-
Message #00522
Re: Bug report for dorsal/ubuntu natty
On Thu, May 19, 2011 at 8:30 AM, Johannes Ring <johannr@xxxxxxxxx> wrote:
> On Thu, May 19, 2011 at 8:27 AM, Martin Sandve Alnæs <martinal@xxxxxxxxx> wrote:
>> On 19 May 2011 08:26, Anders Logg <logg@xxxxxxxxx> wrote:
>>> On Thu, May 19, 2011 at 08:22:18AM +0200, Martin Sandve Alnæs wrote:
>>>> On 19 May 2011 08:10, Harish Narayanan <harish.mlists@xxxxxxxxx> wrote:
>>>> > On 5/18/11 11:47 PM, Martin Sandve Alnæs wrote:
>>>> >> When dorsal builds trilinos, I get the following message:
>>>> >>
>>>> >> CMake Error at packages/PyTrilinos/cmake/FindSWIG.cmake:68 (MESSAGE):
>>>> >> SWIG was not found. Please specify Swig executable location
>>>> >> Call Stack (most recent call first):
>>>> >> packages/PyTrilinos/CMakeLists.txt:151 (FIND_PACKAGE)
>>>> >>
>>>> >> I have swig2.0 installed from apt, but removed swig as requested by dorsal.
>>>> >> I can try just making a link swig -> swig2.0 and see if it works.
>>>> >
>>>> > Anders: Does this work on your machine? I think these instructions to
>>>> > replace swig with swig2.0 were added by you.
>>>> >
>>>> > Martin: Could you please sign up for the dorsal mailing list so I don't
>>>> > have to moderate your incoming e-mails?
>>>> >
>>>> > Harish
>>>>
>>>> I did this and reran dorsal (after deleting the half-built directory):
>>>> sudo ln -s /usr/bin/swig2.0 /usr/local/bin/swig
>>>>
>>>> And it worked. I now have a working FEniCS stable on Natty.
>>>
>>> It worked fine for me. I only have the swig2.0 binary on my machine
>>> (installed by swig2.0) and it gets picked up fine by DOLFIN (and the
>>> Dorsal build script).
>>
>> It was trilinos that didn't pick it up.
>
> Yes, and I think a simple solution to that (other than making the
> symbolic link) is to define SWIG_EXECUTABLE=/usr/bin/swig2.0 in
> natty.platform and then add this to the configure options in
> {ufc,dolfin,trilinos}.package. Something like this:
>
> if [ ! -z "${SWIG_EXECUTABLE}" ]; then
> CONFOPTS="${CONFOPTS} -D SWIG_EXECUTABLE:FILEPATH=/usr/bin/swig2.0"
> fi
That should be:
if [ ! -z "${SWIG_EXECUTABLE}" ]; then
CONFOPTS="${CONFOPTS} -D SWIG_EXECUTABLE:FILEPATH=${SWIG_EXECUTABLE}"
fi
Johannes
References