Dear Johannes,

Thank you for your reply,
In order to run Fenics with dolfin-nonnewtonian I decided to upgrade the Ubuntu 13.04 to Ubuntu 13.10 Saucy Salamander.
(because you said

Ubuntu 13.04 (raring) is now obsolete and I was not able to
upload a new package for this version of Ubuntu.

So, after updating I can't run Fenics anymore .
The message it shows is
*$python de**mo.py*/
...
Exception: Incompatible swig versions detected. UFC swig version is not the same as extension module swig version: '2.0.10' != '2.0.8' //
/*

*To see the package dependencies I run
*$apt-cache showpk**g python-dolfin*
....
1.3.0+dfsg-2~ppa2~saucy1 - libdolfin1.3-dev (5 1.3.0+dfsg-2~ppa2~saucy1) libdolfin1.3 (5 1.3.0+dfsg-2~ppa2~saucy1) python-ufc (2 2.3.0) python-ffc (2 1.3.0) python-ufl (2 1.3.0) python-instant (2 1.3.0) python-numpy (2 1:1.7-0~b1) python-netcdf (0 (null)) python-ply (0 (null)) *swig2.0 (2 2.0.10) swig2.0 (3 2.0.11~) *python-numpy-abi9 (0 (null)) python (2 2.7) python (3 2.8) python (2 2.7.1-0ubuntu2) libboost-mpi1.53.0 (0 (null)) libc6 (2 2.4) libgcc1 (2 1:4.1.1) libopenmpi1.3 (0 (null)) libpetsc3.4.2 (0 (null)) libpython2.7 (2 2.7) libstdc++6 (2 4.6) dolfin-doc (0 (null)) 1.2.0+dfsg-1 - libdolfin1.2-dev (5 1.2.0+dfsg-1) libdolfin1.2 (5 1.2.0+dfsg-1) python-ufc (2 2.2.0) python-ffc (2 1.2.0) python-ufl (2 1.2.0) python-instant (2 1.2.0) python-numpy (2 1:1.7-0~b1) python-netcdf (0 (null)) python-ply (0 (null))*swig2.0 (2 2.0.10) swig2.0 (3 2.0.11~)* python-numpy-abi9 (0 (null)) python (2 2.7.1-0ubuntu2) python (3 2.8) dolfin-doc (0 (null))

I tried to install an older version of swig of versions 2.0.8 and 2.0.10(from source) but still I can't run the simulation. Is that the issue of Ubuntu 13.10? Or it has something to do with my process of installation?

Thank you very much,
Vasiliy.



On 14-02-17 06:23 AM, Johannes Ring wrote:
On Sun, Feb 9, 2014 at 11:10 PM, Vasiliy <[email protected]> wrote:
Hello dear Fenics community,

I am a new Fenics user and I would like to get some advice from you,
i have downloaded Fenics using sudo apt-get install fenics for ubuntu,
and it was successful - i can run simulations using both python and c++.

Recently i bumped into a project called Non-newtonian solver

https://bitbucket.org/aterrel/dolfin-nonnewtonian

to install they say I need to write
$ scons

when I do that
dolfin-nonnewtonian$ scons
scons: Reading SConscript files ...

Package dolfin was not found in the pkg-config search path.
Perhaps you should add the directory containing `dolfin.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dolfin' found
OSError: 'echo 1>&2; pkg-config dolfin --cflags --libs' exited 1:
   File "/home/vasiliy/Dropbox/FEM/dolfin-nonnewtonian/SConstruct", line 3:
     SConscript(['src/SConstruct'])
   File "/usr/lib/scons/SCons/Script/SConscript.py", line 614:
     return method(*args, **kw)
   File "/usr/lib/scons/SCons/Script/SConscript.py", line 551:
     return _SConscript(self.fs, *files, **subst_kw)
   File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
     exec _file_ in call_stack[-1].globals
   File "/home/vasiliy/Dropbox/FEM/dolfin-nonnewtonian/src/SConstruct", line
12:
     env.ParseConfig("echo $PKG_CONFIG_PATH 1>&2; pkg-config dolfin --cflags
--libs")
   File "/usr/lib/scons/SCons/Environment.py", line 1554:
     return function(self, self.backtick(command))
   File "/usr/lib/scons/SCons/Environment.py", line 596:
     raise OSError("'%s' exited %d" % (command, status))

I suspect that because i installed using apt-get install it didn't add all
the variables to the path.
What should I do to make it work?
I decided to not include the pkg-config file dolfin.pc in the Ubuntu
package for DOLFIN 1.3.0 because there were some problems with
multiarch and I thought that nobody used it anymore (CMake files
should be used instead). However, I have now uploaded a new package
that includes the pkg-config file. This should be available from the
FEniCS PPA within the next few hours. Please let me know if this fixes
your problem.

BTW, Ubuntu 13.04 (raring) is now obsolete and I was not able to
upload a new package for this version of Ubuntu.

Johannes

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to