Error when install aspect 2.4.0

Ubuntu 22.01, cmake 3.5.1, deal.ii 9.6.1. Have problem when make aspect 2.4.0.
I know it’s about version out of time, but for some reasons I have to use it. Some error like “;” loss can be easily correct while some are not.

/aspect-2.4.0/source/particle/world.cc:1169:157: error: wrong number of template arguments (3, should be at least 4)
 1169 | tion::EvaluatorTypeTraits<dim, n_compositional_fields, double>::access(composition_values,j);
      |                     
aspect-2.4.0/source/particle/property/strain_rate.cc:49:15: error: cannot bind non-const lvalue reference of type ‘dealii::ArrayView<double, dealii::MemorySpace::Host>&’ to an rvalue of type ‘dealii::ArrayView<double, dealii::MemorySpace::Host>’
   49 |         auto &data = particle->get_properties();
      |               ^~~~

Is there any method to switching these to codes cmake can run?
Thanks.

Hi KIVY,
ASPECT 2.4 was released way before the release of deal.II 9.6 and only supports deal.II versions up to release 9.4. Since we cannot prepare in ASPECT for changes in deal.II that are only about to happen in the future, you always want to use a deal.II version that is older than the ASPECT release you are using (in this case deal.II 9.4 for aspect 2.4). Alternatively, you can use a newer ASPECT version instead.
Hope that helps
Rene

Thank you all the same.