On Sat, 27 Jun 2015 19:53:11 +0200 Julian Andrej <[email protected]> wrote:
> I can do a writeup on the procedure. If this is going to be published, > maybe there is a style guide or template I can use? You could possibly fit it into http://fenicsproject.org/download and make a pull request https://bitbucket.org/fenics-project/fenics-web/pull-requests Jan > > On Sat, Jun 27, 2015 at 7:23 PM, Rafał Skolasiński > <[email protected]> wrote: > > Hi Guys, > > > > Is anyone going to do some tutorial / wiki / page about how to > > finally install dolfin inside virtual environment without problems > > and polluting global installation? > > It would be super useful. > > > > Best, > > Rafal > > > > 2015-06-22 17:26 GMT+02:00 Julian Andrej <[email protected]>: > >> > >> With the prefix option it works flawlessly. > >> > >> Maybe this installation method should be noted on the webpage, > >> because it is way easier than any other method besides a > >> distribution package. > >> > >> On Mon, Jun 22, 2015 at 9:00 AM, Johannes Ring <[email protected]> > >> wrote: > >> > The problem is that FFC assumes that it will be installed > >> > in /usr/local if > >> > no --prefix option is given, so you end up with the wrong path to > >> > UseUFC.cmake in dolfin-1.5-venv/share/ufc/UFCConfig.cmake. You > >> > can fix this > >> > by running pip with the --prefix option like this: > >> > > >> > pip install --install-option="--prefix=$VIRTUAL_ENV" > >> > https://bitbucket.org/fenics-project/ffc/downloads/ffc-1.5.0.tar.gz > >> > > >> > I am tempted to revert > >> > https://bitbucket.org/fenics-project/ffc/commits/12cb900, which > >> > should fix > >> > this problem. Using sys.prefix as default is better than > >> > hard-coding it to > >> > /usr/local IMO. > >> > > >> > Johannes > >> > > >> > > >> > On Sun, Jun 21, 2015 at 12:11 PM Julian Andrej > >> > <[email protected]> wrote: > >> >> > >> >> My whole installation process is the following > >> >> > >> >> $ virtualenv dolfin-1.5-venv > >> >> $ source dolfin-1.5-venv/bin/activate > >> >> $ pip install numpy sympy six ply > >> >> $ pip install > >> >> https://bitbucket.org/fenics-project/ufl/downloads/ufl-1.5.0.tar.gz > >> >> $ pip install > >> >> > >> >> https://bitbucket.org/fenics-project/instant/downloads/instant-1.5.0.tar.gz > >> >> $ pip install > >> >> https://bitbucket.org/fenics-project/fiat/downloads/fiat-1.5.0.tar.gz > >> >> $ pip install > >> >> https://bitbucket.org/fenics-project/ffc/downloads/ffc-1.5.0.tar.gz > >> >> > >> >> None of these tell me ANY errors. I go on with > >> >> > >> >> $ wget > >> >> > >> >> https://bitbucket.org/fenics-project/dolfin/downloads/dolfin-1.5.0.tar.gz > >> >> $ tar xzvf dolfin-1.5.0.tar.gz > >> >> $ cd dolfin-1.5.0/ > >> >> $ mkdir build > >> >> $ cd build > >> >> $ cmake -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV .. > >> >> $ make -j5 install > >> >> > >> >> Again, no errors i can spot! > >> >> > >> >> Then I am advised to source a PATH config > >> >> > >> >> $ source > >> >> /home/$USERNAME/dev/fenics/dolfin-1.5-venv/share/dolfin/dolfin.conf > >> >> > >> >> on running an example i get this: > >> >> > >> >> $ cat > >> >> > >> >> /home/$USERNAME/.instant/error/ffc_form_ce4f228b8aea5046137150d0bd433bb69019d720/compile.log > >> >> -- The C compiler identification is GNU 4.8.4 > >> >> -- The CXX compiler identification is GNU 4.8.4 > >> >> -- Check for working C compiler: /usr/bin/cc > >> >> -- Check for working C compiler: /usr/bin/cc -- works > >> >> -- Detecting C compiler ABI info > >> >> -- Detecting C compiler ABI info - done > >> >> -- Check for working CXX compiler: /usr/bin/c++ > >> >> -- Check for working CXX compiler: /usr/bin/c++ -- works > >> >> -- Detecting CXX compiler ABI info > >> >> -- Detecting CXX compiler ABI info - done > >> >> CMake Error at CMakeLists.txt:12 (INCLUDE): > >> >> include could not find load file: > >> >> > >> >> /usr/local/share/ufc/UseUFC.cmake > >> >> > >> >> > >> >> -- Found SWIG: /usr/bin/swig (found version "2.0.11") > >> >> -- Configuring incomplete, errors occurred! > >> >> See also > >> >> > >> >> "/tmp/tmpCCDOAD2015-6-19-20-11_instant_21bbb301d6140c6ed460db266a76cff13c305980/ffc_form_ce4f228b8aea5046137150d0bd433bb69019d720/CMakeFiles/CMakeOutput.log". > >> >> > >> >> > >> >> > >> >> On Sat, Jun 20, 2015 at 9:58 AM, Johannes Ring > >> >> <[email protected]> wrote: > >> >> > Try to install FFC again and see if you can spot any errors. > >> >> > > >> >> > Johannes > >> >> > > >> >> > On Fri, Jun 19, 2015 at 9:55 PM Julian Andrej > >> >> > <[email protected]> wrote: > >> >> >> > >> >> >> Hello, > >> >> >> > >> >> >> i installed the dolfin-tools (ufl/ufc/ffc/instant) into a > >> >> >> virtualenv. > >> >> >> On running an example i get the following error > >> >> >> > >> >> >> -- Detecting CXX compiler ABI info > >> >> >> -- Detecting CXX compiler ABI info - done > >> >> >> CMake Error at CMakeLists.txt:12 (INCLUDE): > >> >> >> include could not find load file: > >> >> >> > >> >> >> /usr/local/share/ufc/UseUFC.cmake > >> >> >> > >> >> >> which corresponds to a Debian Bugreport (see > >> >> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782317) > >> >> >> > >> >> >> I installed everything via pip for example with > >> >> >> > >> >> >> pip install > >> >> >> > >> >> >> > >> >> >> https://bitbucket.org/fenics-project/instant/downloads/instant-1.5.0.tar.gz > >> >> >> > >> >> >> Dolfin is installed via > >> >> >> > >> >> >> mkdir build > >> >> >> cd build > >> >> >> cmake -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV .. > >> >> >> make -j5 install > >> >> >> > >> >> >> I cannot build the current git versions (master branches) > >> >> >> because dolfin compilation fails with > >> >> >> In file included from > >> >> >> > >> >> >> > >> >> >> > >> >> >> /home/****/dev/fenics/fenics-project-dolfin-7ca3fda8087c/dolfin/multistage/PointIntegralSolver.cpp:38:0: > >> >> >> > >> >> >> > >> >> >> > >> >> >> /home/atomic/dev/fenics/fenics-project-dolfin-7ca3fda8087c/dolfin/fem/UFC.h:130:33: > >> >> >> error: ‘vertex_integral’ is not a member of ‘ufc’ > >> >> >> _______________________________________________ > >> >> >> fenics-support mailing list > >> >> >> [email protected] > >> >> >> http://fenicsproject.org/mailman/listinfo/fenics-support > >> >> _______________________________________________ > >> >> fenics-support mailing list > >> >> [email protected] > >> >> http://fenicsproject.org/mailman/listinfo/fenics-support > >> _______________________________________________ > >> fenics-support mailing list > >> [email protected] > >> http://fenicsproject.org/mailman/listinfo/fenics-support > > > > > _______________________________________________ > fenics-support mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics-support _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
