> I got this request re ANUGA, but it turns out he has got similar issues
> like you have with pypar.
> I have cross posted to the discussion groups, but thought that maybe you
> could give him a hand ?
>
> Many thanks
> Ole
>
> ---------- Forwarded message ----------
> From: Zhe Weng <
weng...@gmail.com>
> Date: Tue, Aug 14, 2012 at 6:25 PM
> Subject: Problems when install ANUGA
> To:
Ole.Molle...@gmail.com
>
>
> Hi Ole,
>
> I'm trying to install ajuga_parallel, but get stuck.
>
> When I try to install the pypar to my local lib dir (since I have not
> access to sudo command), I run
> $python setup.py install --user
> it shows:
> running mpicc -show
> /usr/bin/mpicc: line 266: echo: write error: Broken pipe
> running mpicc -compile_info -link_info
> /usr/bin/mpicc: line 266: echo: write error: Broken pipe
> running mpicc -show;mpicc -echo -c /tmp/tmpQov5Kx.c -o
> /tmp/tmpQov5Kx.o
> /usr/bin/mpicc: line 266: echo: write error: Broken pipe
> ……
>
> Then I imported pypar to python, it raised errors:
> >>> import pypar
> ERROR: C extension mpiext could not be imported.
> Please compile mpiext.c e.g. by running
> python compile_pypar_locally.py
> in the pypar directory, or by using
> python setup.py install
>
> WARNING: MPI library could not be initialised - running sequentially
>
> So I follow the instruction to compile pypar locally, and errors following:
> mpicc -c mpiext.c -I/usr/include/python2.7
> -I/usr/lib/python2.7/dist -packages/numpy/core/include -o mpiext.o -Wall
> -fPIC
> mpiext.c: In function ‘type_map’:
> mpiext.c:124:12: warning: cast from pointer to integer of different
> size [-Wpointer-to-int-cast]
> mpiext.c: In function ‘op_map’:
> mpiext.c:165:12: warning: cast from pointer to integer of different
> size [-Wpointer-to-int-cast]
> mpicc -shared mpiext.o -o mpiext.so -mcmodel=medium
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: /usr/lib/libmpich.so.3: undefined symbol: MPL_trid
> Traceback (most recent call last):
> File "compile_pypar_locally.py", line 61, in <module>
> raise Exception(msg)
> Exception: MPI could not be initialised.
>
> I think MPI is installed well, as mpirun command works well.
>
> I can't figure this problem out, hope you can give me some guide.
>
> Thanks!
>
> Sincerely,
> John