Install ESyS-Particle on Ubuntu14.04

Asked by Zhenyu Han

I could not install ESySparticle on Ubuntu 14.04

I install ESySparticle on Ubuntu 14.04. When I ran

sh autogen.sh

There were some errors

     Model/Makefile.am:26: warning: source file '$(top_srcdir)/Fields/FieldMaster.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    automake: warning: possible forward-incompatibility.
    automake: At least a source file is in a subdirectory, but the 'subdir-objects'
    automake: automake option hasn't been enabled. For now, the corresponding output
    automake: object file(s) will be placed in the top-level directory. However,
    automake: this behaviour will change in future Automake versions: they will
    automake: unconditionally cause object files to be placed in the same subdirectory
    automake: of the corresponding sources.
    automake: You are advised to start using 'subdir-objects' option throughout your
    automake: project, to avoid future incompatibilities.
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Fields/FieldSlave.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Fields/WallFieldMaster.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Fields/WallFieldSlave.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/CheckPointable.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/Mesh2DReader.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/Mesh2DReaderImpl.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/MeshReader.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/MeshReaderImpl.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    Model/Makefile.am:26: warning: source file '$(top_srcdir)/Parallel/vec3_mpi.cpp' is in a subdirectory,
    Model/Makefile.am:26: but option 'subdir-objects' is disabled
    revision-id: <email address hidden>
    date: 2014-06-12 10:28:10 +1000
    build-date: 2014-06-20 12:46:46 +1000
    revno: 1131
    branch-nick: esys-particle
    bzr version header generated

So I searched some information for that.

http://stackoverflow.com/questions/11438613/conditional-subdir-objects

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c8a624cc85630796c245852fc7c60fc2d5874d37

Then I knew, maybe the new Automake module of Ubuntu 14.04 caused this problem. I modified configure.ac

AM_INIT_AUTOMAKE([subdir-objects])
#AM_PATH_CPPUNIT([1.10.0], ,[AC_MSG_ERROR([Dud CppUnit version found, must be >= 1.10.0.])])
AM_PATH_PYTHON([2.6])

After, all errors above did not appear again. But I have no idea how to continue the installation next.

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
Justin Rahardjo
Solved:
Last query:
Last reply:
Revision history for this message
Justin Rahardjo (j-rahardjo) said :
#1

Hi Zhenyu,

You should be able to follow this guide from step 7 onwards.

https://answers.launchpad.net/esys-particle/+faq/1613

Cheers,

Justin

Revision history for this message
Zhenyu Han (z-han2) said :
#2

Hi Justin,

I have used ESyS-Particle for more than half a year and installed it many times. Every time, I followed the steps as https://answers.launchpad.net/esys-particle/+faq/1613.

Once, I have installed ESyS-Particle on Ubuntu 14.04 successfully. But after I re-installed Ubuntu, I could not install esys-particle again. And installation only could be done by "sudo apt-get install esys-particle".

This time, after I executed "make", the screen showed me these:

make[2]: Leaving directory `/home/zyhan/Documents/esys-particle/Geometry'
Making all in Model
make[2]: Entering directory `/home/zyhan/Documents/esys-particle/Model'
Makefile:761: ../Fields/.deps/FieldMaster.Plo: No such file or directory
Makefile:762: ../Fields/.deps/FieldSlave.Plo: No such file or directory
Makefile:763: ../Fields/.deps/WallFieldMaster.Plo: No such file or directory
Makefile:764: ../Fields/.deps/WallFieldSlave.Plo: No such file or directory
Makefile:765: ../Parallel/.deps/CheckPointable.Plo: No such file or directory
Makefile:766: ../Parallel/.deps/Mesh2DReader.Plo: No such file or directory
Makefile:767: ../Parallel/.deps/Mesh2DReaderImpl.Plo: No such file or directory
Makefile:768: ../Parallel/.deps/MeshReader.Plo: No such file or directory
Makefile:769: ../Parallel/.deps/MeshReaderImpl.Plo: No such file or directory
Makefile:770: ../Parallel/.deps/vec3_mpi.Plo: No such file or directory
make[2]: *** No rule to make target `../Parallel/.deps/vec3_mpi.Plo'. Stop.
make[2]: Leaving directory `/home/zyhan/Documents/esys-particle/Model'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zyhan/Documents/esys-particle'
make: *** [all] Error 2

Then I executed "sudo make install":

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/zyhan/Documents/esys-particle/Geometry'
make[1]: Leaving directory `/home/zyhan/Documents/esys-particle/Geometry'
Making install in Model
make[1]: Entering directory `/home/zyhan/Documents/esys-particle/Model'
Makefile:761: ../Fields/.deps/FieldMaster.Plo: No such file or directory
Makefile:762: ../Fields/.deps/FieldSlave.Plo: No such file or directory
Makefile:763: ../Fields/.deps/WallFieldMaster.Plo: No such file or directory
Makefile:764: ../Fields/.deps/WallFieldSlave.Plo: No such file or directory
Makefile:765: ../Parallel/.deps/CheckPointable.Plo: No such file or directory
Makefile:766: ../Parallel/.deps/Mesh2DReader.Plo: No such file or directory
Makefile:767: ../Parallel/.deps/Mesh2DReaderImpl.Plo: No such file or directory
Makefile:768: ../Parallel/.deps/MeshReader.Plo: No such file or directory
Makefile:769: ../Parallel/.deps/MeshReaderImpl.Plo: No such file or directory
Makefile:770: ../Parallel/.deps/vec3_mpi.Plo: No such file or directory
make[1]: *** No rule to make target `../Parallel/.deps/vec3_mpi.Plo'. Stop.
make[1]: Leaving directory `/home/zyhan/Documents/esys-particle/Model'
make: *** [install-recursive] Error 1

Revision history for this message
Best Justin Rahardjo (j-rahardjo) said :
#3

Hi Zhenyu,

This seems to have been a problem with the new version of Autotools. An explanation of the problem is here:
http://stackoverflow.com/questions/21609580/autotools-build-fails-due-to-subdir-objects-option-in-am-init-automake

As suggested in that post, please try adding the --disable-dependency-tracking to the ./configure options.

If you had a previous ESyS-Particle installation, also remember to remove the previous installation and build files before trying to install a new installation:
> cd $HOME/esys-particle/source/
> make uninstall
> make distclean

Cheers,

Justin

Revision history for this message
Zhenyu Han (z-han2) said :
#4

Thanks Justin Rahardjo, that solved my question.