Hi wang

Ubuntu 16 is too outdate, and you can do something like:

   1. use new version of ubuntu, ubuntu 2004, ubuntu 22.04 for example
   2. install a new gcc compiler which support new c++ Standard
   3. use spack to install dealii
   4. install old version of dealii (dealii 9.0.0 for example) in ubuntu 16

Best
Chen

王艺康 <[email protected]> 于2024年5月28日周二 21:07写道:

> Hello, everyone.
> I'm having a problem installing dealii with candi.I'm installing
> dealii-9.5.1 on Ubuntu 16.0.4 via candi, only then all the dependencies I
> need can be downloaded and installed correctly but I get an error when
> installing dealii.
>
>
>
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 1; T =
> dealii::Point<1>; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_point_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<dealii::Point<spacedim> >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim =
> 1]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1289:12:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
>        return {std::move(ranks), std::move(ptr), std::move(indices)};
>                                                                    ^
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 2; T =
> dealii::Point<2, double>; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_point_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<dealii::Point<spacedim> >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim =
> 2]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1388:12:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 3; T =
> dealii::Point<3, double>; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_point_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<dealii::Point<spacedim> >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim =
> 3]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1487:12:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 1; T =
> std::vector<dealii::Point<1> >; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_intersection_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<std::vector<dealii::Point<spacedim> > >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int
> spacedim = 1]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2240:14:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 2; T =
> std::vector<dealii::Point<2, double>, std::allocator<dealii::Point<2,
> double> > >; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_intersection_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<std::vector<dealii::Point<spacedim> > >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int
> spacedim = 2]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2272:14:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:
> In instantiation of ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >
> dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<ContainedType>&, double) [with int spacedim = 3; T =
> std::vector<dealii::Point<3, double>, std::allocator<dealii::Point<3,
> double> > >; MPI_Comm = int]’:
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:
>   required from
> ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim,
> spacedim>
> dealii::GridTools::internal::distributed_compute_intersection_locations(const
> dealii::GridTools::Cache<dim, spacedim>&, const
> std::vector<std::vector<dealii::Point<spacedim> > >&, const
> std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const
> std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int
> spacedim = 3]’
> /home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2304:14:
>   required from here
> /home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67:
> error: converting to ‘std::tuple<std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> > >’ from initializer list would use explicit
> constructor ‘constexpr std::tuple< <template-parameter-1-1>
> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >, std::vector<unsigned int,
> std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements
> = {std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >,
> std::vector<unsigned int, std::allocator<unsigned int> >}]’
>
> source/grid/CMakeFiles/object_grid_release.dir/build.make:355: recipe for
> target 'source/grid/CMakeFiles/object_grid_release.dir/grid_tools.cc.o'
> failed
> make[2]: ***
> [source/grid/CMakeFiles/object_grid_release.dir/grid_tools.cc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
>
>
>
>
>
>
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/e08e22fc-5877-43a6-b469-7a4170ae5cfdn%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/e08e22fc-5877-43a6-b469-7a4170ae5cfdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CADr3OdJC6WDWNF2u0vTBLWB38BJ0YcW6qtJ9A%2B%3D0SvDW_hQtwA%40mail.gmail.com.

Reply via email to