This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Install fenics on cygwin 64bit running on Window 7

0 votes

Hello, I am trying to install fenics on cygwin 64bit running on Window 7.
I just downloaded cygwin last week so I think all the packages are up to date (gcc, etc).

I tried out the script

wget -O - http://fenicsproject.org/fenics-install.sh | bash

and it was successful in installing a lot of components of fenics, ffc (I needed to add swig to cygwin), vkt (I needed to add opengl, etc), but I am stuck on matplotlib. Below is the build.log. By the way, is it possible to provide only the core components of fenics in a build, without all the visualization? I just would like to solve the PDE and save the solution so I'd like to avoid installing anything extra.

Thank you in advance for your help. I've already gotten much further with installing fenics on cygwin with this new script than all my previous attempts of the past years! Sincerely,

2015/07/12 08:26:59 - INFO: [package:run_job] running [u'/bin/bash', '_hashdist/build.sh']
2015/07/12 08:26:59 - INFO: [package:run_job] environment:
2015/07/12 08:26:59 - INFO: [package:run_job] {'ARTIFACT': u'/home/Jing/.hashdist/bld/matplotlib/ayvuahxambp7',
2015/07/12 08:26:59 - INFO: [package:run_job] 'BASH': u'/bin/bash',
2015/07/12 08:26:59 - INFO: [package:run_job] 'BUILD': u'/home/Jing/.hashdist/tmp/matplotlib-ayvuahxambp7-4',
2015/07/12 08:26:59 - INFO: [package:run_job] u'BZIP2_DIR': u'/home/Jing/.hashdist/bld/bzip2/bxiszvx5g3ps',
2015/07/12 08:26:59 - INFO: [package:run_job] u'BZIP2_ID': u'bzip2/bxiszvx5g3psquw42azpe3q3odi4gkl7',
2015/07/12 08:26:59 - INFO: [package:run_job] u'FREETYPE_DIR': u'/home/Jing/.hashdist/bld/freetype/dg2tfjnamcnz',
2015/07/12 08:26:59 - INFO: [package:run_job] u'FREETYPE_ID': u'freetype/dg2tfjnamcnzfcy2jkkzlmuyjoeyh4j3',
2015/07/12 08:26:59 - INFO: [package:run_job] 'HASHDIST_CPU_COUNT': '4',
2015/07/12 08:26:59 - INFO: [package:run_job] 'HDIST_CONFIG': '{"gc_roots":"/home/Jing/.hashdist/gcroots","build_stores":[{"dir":"/home/Jing/.hashdist/bld"}],"source_caches":[{"dir":"/home/Jing/.hashdist/src"}],"cache":"/home/Jing/.hashdist/cache","build_temp":"/home/Jing/.hashdist/tmp"}',
2015/07/12 08:26:59 - INFO: [package:run_job] 'HDIST_IMPORT': u'bzip2/bxiszvx5g3psquw42azpe3q3odi4gkl7 freetype/dg2tfjnamcnzfcy2jkkzlmuyjoeyh4j3 numpy/nzwmnt25foajpcv665tqebacyoxem6vw pkg-config/satmw7zew7c2iuseoajzctg57hgubgjb png/nhgc5kurctteaj6b3z7ajjrzlgtueo4l python/qlvjlzdbishmango7jzlj5b2nnx7qr7q setuptools/v3ljecso2k6ln5omin6zxb5326v3cug5 zlib/5oalmcorn2mrgjvqsdqij2g2t3eo4hro',
2015/07/12 08:26:59 - INFO: [package:run_job] 'HDIST_IMPORT_PATHS': u'/home/Jing/.hashdist/bld/bzip2/bxiszvx5g3ps:/home/Jing/.hashdist/bld/freetype/dg2tfjnamcnz:/home/Jing/.hashdist/bld/numpy/nzwmnt25foaj:/home/Jing/.hashdist/bld/pkg-config/satmw7zew7c2:/home/Jing/.hashdist/bld/png/nhgc5kurctte:/home/Jing/.hashdist/bld/python/qlvjlzdbishm:/home/Jing/.hashdist/bld/setuptools/v3ljecso2k6l:/home/Jing/.hashdist/bld/zlib/5oalmcorn2mr',
2015/07/12 08:26:59 - INFO: [package:run_job] 'HDIST_VIRTUALS': '',
2015/07/12 08:26:59 - INFO: [package:run_job] u'NUMPY_DIR': u'/home/Jing/.hashdist/bld/numpy/nzwmnt25foaj',
2015/07/12 08:26:59 - INFO: [package:run_job] u'NUMPY_ID': u'numpy/nzwmnt25foajpcv665tqebacyoxem6vw',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PATH': u'/home/Jing/.hashdist/bld/freetype/dg2tfjnamcnz/bin:/usr/bin:/bin',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PKG_CONFIG_DIR': u'/home/Jing/.hashdist/bld/pkg-config/satmw7zew7c2',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PKG_CONFIG_EXECUTABLE': u'/usr/bin/pkgconfig',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PKG_CONFIG_ID': u'pkg-config/satmw7zew7c2iuseoajzctg57hgubgjb',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PKG_CONFIG_PATH': u'/home/Jing/.hashdist/bld/png/nhgc5kurctte/lib/pkgconfig:/home/Jing/.hashdist/bld/freetype/dg2tfjnamcnz/lib/pkgconfig',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PNG_DIR': u'/home/Jing/.hashdist/bld/png/nhgc5kurctte',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PNG_ID': u'png/nhgc5kurctteaj6b3z7ajjrzlgtueo4l',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PWD': u'/home/Jing/.hashdist/tmp/matplotlib-ayvuahxambp7-4',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PYTHON': u'/home/Jing/.hashdist/bld/python/qlvjlzdbishm/bin/python',
2015/07/12 08:26:59 - INFO: [package:run_job] 'PYTHONPATH': u'/home/Jing/.hashdist/bld/setuptools/v3ljecso2k6l/lib/python2.7/site-packages:/home/Jing/.hashdist/bld/numpy/nzwmnt25foaj/lib/python2.7/site-packages',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PYTHON_DIR': u'/home/Jing/.hashdist/bld/python/qlvjlzdbishm',
2015/07/12 08:26:59 - INFO: [package:run_job] u'PYTHON_ID': u'python/qlvjlzdbishmango7jzlj5b2nnx7qr7q',
2015/07/12 08:26:59 - INFO: [package:run_job] u'SETUPTOOLS_DIR': u'/home/Jing/.hashdist/bld/setuptools/v3ljecso2k6l',
2015/07/12 08:26:59 - INFO: [package:run_job] u'SETUPTOOLS_ID': u'setuptools/v3ljecso2k6ln5omin6zxb5326v3cug5',
2015/07/12 08:26:59 - INFO: [package:run_job] u'ZLIB_DIR': u'/home/Jing/.hashdist/bld/zlib/5oalmcorn2mr',
2015/07/12 08:26:59 - INFO: [package:run_job] u'ZLIB_ID': u'zlib/5oalmcorn2mrgjvqsdqij2g2t3eo4hro'}
2015/07/12 08:26:59 - INFO: [package:run_job] patching file lib/matplotlib/tri/_tri.cpp
2015/07/12 08:26:59 - INFO: [package:run_job] Reversed (or previously applied) patch detected! Assume -R? [n]
2015/07/12 08:26:59 - INFO: [package:run_job] Apply anyway? [n]
2015/07/12 08:26:59 - INFO: [package:run_job] Skipping patch.
2015/07/12 08:26:59 - INFO: [package:run_job] 1 out of 1 hunk ignored -- saving rejects to file lib/matplotlib/tri/_tri.cpp.rej
2015/07/12 08:26:59 - INFO: [package:run_job] patching file lib/matplotlib/tri/_tri.h
2015/07/12 08:26:59 - INFO: [package:run_job] Reversed (or previously applied) patch detected! Assume -R? [n]
2015/07/12 08:26:59 - INFO: [package:run_job] Apply anyway? [n]
2015/07/12 08:26:59 - INFO: [package:run_job] Skipping patch.
2015/07/12 08:26:59 - INFO: [package:run_job] 1 out of 1 hunk ignored -- saving rejects to file lib/matplotlib/tri/_tri.h.rej
2015/07/12 08:26:59 - ERROR: [package:run_job] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
2015/07/12 08:26:59 - ERROR: [package:run_job] command failed (code=1); raising

asked Jul 12, 2015 by dang.1032170 FEniCS Novice (180 points)

Also if you prefer use C++ interface of dolfin you could use Visual Studio compiled libraries.

It support PETSc and MSMPI.

In near future I am planning to add Python interface to it.
Any help appreciated.
If we do this we will have ability to use dolfin under a windows with the same functionality as in a ubuntu.

Link:
https://bitbucket.org/vlasovmaksim/fenics_project_vs

Hello, I was the person who asked the original question about cygwin.
[For some reason I wasn't able to register using my work address so I asked
Dang to submit the question for me. Now I registered using my personal
email address.]

We have written a code based on fenics and we would like to distribute
our code. But since the users of our code will be physicists and may not
be used to HPC and solving PDEs, we like to make the installation of
our code as painless as possible for a range of platforms. This is why
I am testing on cygwin. I think if the code installs on cygwin, it would
install on any linux platform. And I think it would help me understand what
is the minimal set of dependent packages to download since I am starting
with a bare bones installation of cygwin and if I see I'm missing a package
when installing fenics, I make a note of the necessary packages...

Thanks for your comment and take care.

Jing-Rebecca Li

If you develop your software for linux then how a size of a virtual machine correlate with clients of your software?
Could your elaborate the answer.

Also it depends on which language your software is written (python or C++).

If your software will be used in a linux then you could develop it on a linux or a windows with a virtual machine.
If you would like to develop cross platform software, which will be used on the both OS then don't forget about that the dolfin doesn't have any new windows version since 1.0.
And dolfin 1.0 doen't have PETSc and MPI support.

Also you could try to compile dolfin on a windows with mingw, but I think you will have trouble with PETSc.
Also if you will compile dolfin on a windows with cygwin then you will get a GPL (not LGPL) license automatically, if it's important for you.

I my opinion, the best way for you in the case you want to have a cross platform app:
1) linux: download/use standart dolfin libraries (http://fenicsproject.org/download/ubuntu_details.html).
2) windows: use my Visual Studio C++ libraries (https://bitbucket.org/vlasovmaksim/fenics_project_vs).
3) Mac OS: download/use standart dolfin libraries (http://fenicsproject.org/download/osx_details.html).

1 Answer

0 votes

My solution for working on a windows machine has been to use a virtual machine. They even offer an image for you to download:

http://fenicsproject.org/download/

It's much easier. I think the cygwin route is painful enough it prevents a windows release from being readily available.

I use vmware and it's absurdly efficient with the CPU

answered Jul 13, 2015 by Charles FEniCS User (4,220 points)

Hello, thanks for your comment. I wrote a comment above basically
explaining that we have a PDE code based on fenics that we would
like to distribute and we are trying to see how easy it is to install
fenics on different platforms. Dang (who submitted the question for me)
has set up a virtual machine download that includes our code and it's 2 gigabytes,
which I think is too large to ask the users of our code to download.
I think it's reasonable to ask our users to download something that's
in the range of 100 megabytes, but not more than that..., at least for the
physics application that we are working on...

Thanks for your help! Jing

...