← Back to team overview

dolfin team mailing list archive

dolfin demo in ubuntu8.10

 

hi,
 after typing update-alternatives --display mpi:
-------------------------------------------------------------
gu@gu-laptop:~$ update-alternatives --display mpi
mpi - status is auto.
 link currently points to /usr/lib/openmpi/include
/usr/lib/openmpi/include - priority 5
 slave mpif90.1.gz: /usr/share/man/man1/mpif90.openmpi.1.gz
 slave mpicc: /usr/bin/mpicc.openmpi
 slave libmpi.so: /usr/lib/openmpi/lib/libmpi.so
 slave mpicxx.1.gz: /usr/share/man/man1/mpicxx.openmpi.1.gz
 slave mpicc.1.gz: /usr/share/man/man1/mpicc.openmpi.1.gz
 slave mpiCC: /usr/bin/mpic++.openmpi
 slave mpif77: /usr/bin/mpif77.openmpi
 slave mpic++.1.gz: /usr/share/man/man1/mpic++.openmpi.1.gz
 slave mpiCC.1.gz: /usr/share/man/man1/mpiCC.openmpi.1.gz
 slave mpif90: /usr/bin/mpif90.openmpi
 slave mpic++: /usr/bin/mpic++.openmpi
 slave mpicxx: /usr/bin/mpic++.openmpi
 slave mpif77.1.gz: /usr/share/man/man1/mpif77.openmpi.1.gz
 slave libmpi++.so: /usr/lib/openmpi/lib/libmpi_cxx.so
Current `best' version is /usr/lib/openmpi/include.

----------------------------------------------------------





> Hi,
>
> I'm not sure but it seems that your default MPI implementation is not Open
> MPI. What do you get if you type in
>
>   update-alternatives --display mpi
>
> ?
>
> If it does not point to Open MPI, run
>
>   update-alternatives --config mpi
>
> and select the Open MPI alternative from the list.
>
> Johannes
>
> On Mon, March 16, 2009 10:35, Zongyuan Gu wrote:
>> hi,
>>  I installed dolfin following the http://www.fenics.org/wiki/Download in
>> my ubuntu8.10. But when i want to compile the first demo of
>> dolfin(poisson), some error occur:
>>
>> ----------------------------------------------------------------------------
>> gu@gu-laptop:~/dolfin-doc/demo/pde/poisson/cpp$ scons
>> scons: Reading SConscript files ...
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> mpic++ -o demo -pthread -Wl,--export-dynamic main.o -L/usr/lib/atlas
>> -L/usr/lib/petscdir/2.3.3/lib/linux-gnu-c-opt -ldolfin -lumfpack
>> -lpetscts
>> -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -llapack
>> -lblas -lcholmod -lamd -lcolamd -lgts -lxml2 -lgthread-2.0 -lrt
>> -lgmodule-2.0 -lglib-2.0
>> /usr/lib/libmpi_f77.so.0: undefined reference to
>> `ompi_fortran_multiple_argvs_f2c'
>> /usr/lib/libmpi_f90.so.0: undefined reference to `mpi_wtick_f90_'
>> /usr/lib/libmpi_f77.so.0: undefined reference to
>> `ompi_fortran_string_f2c'
>> /usr/lib/libmpi_f77.so.0: undefined reference to `ompi_fortran_argv_f2c'
>> /usr/lib/libmpi_f77.so.0: undefined reference to
>> `ompi_fortran_string_c2f'
>> /usr/lib/libmpi_f90.so.0: undefined reference to `mpi_wtime_f90_'
>> collect2: ld returned 1 exit status
>> scons: *** [demo] Error 1
>> scons: building terminated because of errors.
>> -------------------------------------------------------------------------
>> Can you help to slove this problem?
>> Thank you
>>
>>
>> --
>> Zongyuan Gu
>> Computational Science and Engineering
>> Department of Mathematical Science
>> Chalmers University of Technology
>> Mobile Phone:0046 70 443 9283
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>
>
>
>





-- 
Zongyuan Gu
Computational Science and Engineering
Department of Mathematical Science
Chalmers University of Technology
Mobile Phone:0046 70 443 9283



Follow ups