I have some problems with installing Palabos on both Ubuntu and Kubuntu 11.10. I have the new version of Palabos 1.0r1. I get this erroe message:
hedvig@ubuntu:~/program/palabos-v1.0r1/pythonic/examples$ ./cavity2d.py
Traceback (most recent call last):
File “./cavity2d.py”, line 13, in
from pypal import *
File “…/src/pypal/init.py”, line 1, in
import blocks
File “…/src/pypal/blocks.py”, line 40, in
import plb
File “…/src/pypal/plb/init.py”, line 2, in
import core
File “…/src/pypal/plb/core.py”, line 25, in
_core = swig_import_helper()
File “…/src/pypal/plb/core.py”, line 21, in swig_import_helper
_mod = imp.load_module(’_core’, fp, pathname, description)
ImportError: dynamic module does not define init function (init_core)
This what I have done:
sudo apt-get install g++
sudo apt-get install swig mpi-default-bin mpi-default-dev python-numpy python-scipy python-matplotlib python-setuptools python2.7-dev libcr-dev mpich2 mayavi2
sudo easy_install mpi4py
cd ~/program
tar xfz ~/tmp/palabos-v0.7r3.tgz
cd palabos-v0.7r3/pythonic/src
export PALABOS_ROOT=/home/hedvig/program/palabos-v1.0r1
On my ubuntu 11.10 the problem was the same and after having replaced (all the) gcc by gcc -Wl,–no-as-needed in the file “postprocess” and re-compiled pythonic with “make” in the pythonic/src/ directory, now I have a segmentation fault on cavity2d.py :