# There are some problems when i install aspect-2.5.0

**URL:** https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652
**Category:** ASPECT
**Created:** [September 9, 2024, 2:26pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652 "2024-09-09T14:26:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![lij24](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/lij24/32/2138_2.png) [@lij24](https://community.geodynamics.org/u/lij24)
#### Post date: [September 9, 2024, 2:26pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/1 "2024-09-09T14:26:35Z")

</div>

Hello, everyone!  
I need to install aspect-2.5.0 on my computer. I install the dependency as follows:  
gcc - 9.5.0  
cmake - 3.28.3  
openmpi - 4.1.6

/home/lij/soft/aspect/aspect/aspect-2.5.0/source/simulator/core.cc:456:5: error: expected ‘;’ before ‘global\_Omega\_diameter’  
456 | global\_Omega\_diameter = GridTools::diameter (triangulation);  
| ^ ~~~~~~~~~~~~~~~~~~~~  
In file included from /home/lij/soft/aspect/aspect/aspect-2.5.0/build/CMakeFiles/aspect.dir/Unity/unity\_42\_cxx.cxx:10:  
/home/lij/soft/aspect/aspect/aspect-2.5.0/source/volume\_of\_fluid/handler.cc: In member function ‘void aspect::VolumeOfFluidHandler::initialize(dealii::ParameterHandler&)’:  
/home/lij/soft/aspect/aspect/aspect-2.5.0/source/volume\_of\_fluid/handler.cc:433:5: error: expected ‘;’ before ‘if’  
433 | if ( this-\>get\_parameters().initial\_adaptive\_refinement \> 0 ||  
| ^~  
make[2]: \*\*\* [CMakeFiles/aspect.dir/build.make:93：CMakeFiles/aspect.dir/Unity/unity\_42\_cxx.cxx.o] error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:927：CMakeFiles/aspect.dir/all] error 2  
make: \*\*\* [Makefile:136：all] error 2

Cheers  
Jing

---

<div class="post-metadata">

### Author: ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)
#### Post date: [September 9, 2024, 3:01pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/2 "2024-09-09T15:01:34Z")

</div>

Hi Jing,

Can you please specify:

1. What operating system you are using?
2. How you installed the listed dependencies (cmake, openmpi, gnu)?
3. How you installed deal.II before building ASPECT?
4. What instructions you followed for the installation? [This section of the manual](https://aspect-documentation.readthedocs.io/en/latest/user/install/index.html) is a great place to start, if you have not already seen it.

Cheers,  
John

---

<div class="post-metadata">

### Author: ![lij24](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/lij24/32/2138_2.png) [@lij24](https://community.geodynamics.org/u/lij24)
#### Post date: [September 10, 2024, 2:03am UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/3 "2024-09-10T02:03:08Z")

</div>

Hi John,

Thank for sharing the instructions. When I was installing, I followed the [manual-2.5.0](https://aspect-documentation.readthedocs.io/en/v2.5.0/user/install/local-installation/using-candi.html) partially.

When I install :  
1. I am using Ubuntu 24.04.1 LTS.  
2. The listed dependencies, cmake is installed from source and openmpi is installed by apt-get.  
3. Before installed deal.II-9.6.0, I had installed trillinos-13.2.0, p4est-2.8.5.5-9ddbb. And I have tested the deal.II installation by commands :  
`mpirun -n 2 ./step-32.debug` and `mpirun -n 2 ./step-32.release`,

the output is (part of it is as follows) seemingly reasonable…I’m not sure:

```auto
Number of active cells: 12,288 (on 6 levels)
Number of degrees of freedom: 186,624 (99,840+36,864+49,920)

Timestep 0: t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 41 iterations.
   Maximal velocity: 60.4963 cm/year
   Time step: 18166.5 years
   17 CG iterations for temperature
   Temperature range: 973 4273.16
 
Number of active cells: 17,709 (on 7 levels)
Number of degrees of freedom: 277,707 (149,720+53,127+74,860)

Timestep 0: t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 23 iterations.
   Maximal velocity: 60.4698 cm/year
   Time step: 10640.6 years
   18 CG iterations for temperature
   Temperature range: 973 4273.16

Number of active cells: 20,559 (on 8 levels)
Number of degrees of freedom: 334,593 (181,944+61,677+90,972)

Timestep 0: t=0 years

   Rebuilding Stokes preconditioner...
   Solving Stokes system... 27 iterations.
   Maximal velocity: 60.5302 cm/year
   Time step: 5320.23 years
   18 CG iterations for temperature
   Temperature range: 973 4273.43

```

Should I reinstall the dependencies?  
Thanks for you assistance!

Cheers  
Jing

---

<div class="post-metadata">

### Author: ![bangerth](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/bangerth/32/52_2.png) [@bangerth](https://community.geodynamics.org/u/bangerth)
#### Post date: [September 10, 2024, 2:04pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/4 "2024-09-10T14:04:17Z")

</div>

@lij24 This looks reasonable. I think @jbnaliboff (and I) are confused why you get these errors when compiling ASPECT. That’s because at the places where your compiler complains about missing semicolons, there really _are_ semicolons. The error message simply doesn’t make any sense.

Are these the first errors you get? Or is there anything above it? If the latter, can you show us a screenshot of the first errors you get when you call `make`?

Best  
W.

---

<div class="post-metadata">

### Author: ![lij24](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/lij24/32/2138_2.png) [@lij24](https://community.geodynamics.org/u/lij24)
#### Post date: [September 10, 2024, 5:45pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/5 "2024-09-10T17:45:45Z")

</div>

Sorry, I am confused by the semicolon, too. I  
really don’t understand. But it is the first error after I use command `make`, and it even is ther first error I have meet after I make directory _build_ in directory _aspect-2.5.0_. Without else error reported before it.  
And…I check the file _core.cc_ which firstly appears in the error message, there is not a semicolon. After added a semicolon, THIS error disappeared, with more NEW _semicolon_ errors.  
What makes me more confused is that my college use same _semicolon lack_ file to `make`, the error didn’ t appear.

For gcc, I am a beginner…I’m sorry…I don’t understand why.

 ![Screenshot_2024-09-11-01-25-51-770_com.android.chrome](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/4/481c6b344078ddd6d2798d9dd3c4108546a80657.jpeg)

Thanks for helping!

Sincere,  
Jing

---

<div class="post-metadata">

### Author: ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)
#### Post date: [September 10, 2024, 7:16pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/6 "2024-09-10T19:16:25Z")

</div>

Hi Jing,

I’m also not sure what the source of the error is.

Here is my recommendation on how to proceed:

1. Try to install deal.II and dependencies via candi ([instructions](https://aspect-documentation.readthedocs.io/en/latest/user/install/local-installation/using-candi.html))
2. Install the deal.II 9.5.1 ubuntu package ([instructions](https://aspect-documentation.readthedocs.io/en/latest/user/install/local-installation/using-candi.html))

Please let us know if either options works.

Cheers,  
John

---

<div class="post-metadata">

### Author: ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)
#### Post date: [September 10, 2024, 9:10pm UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/7 "2024-09-10T21:10:21Z")

</div>

Hi again Jing,

FYI, I just updated an ubuntu system to 24.04 LTS, and installation of deal.II via candi and then ASPECT (current main) went smoothly.

Cheers,  
John

---

<div class="post-metadata">

### Author: ![bangerth](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/bangerth/32/52_2.png) [@bangerth](https://community.geodynamics.org/u/bangerth)
#### Post date: [September 11, 2024, 1:59am UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/8 "2024-09-11T01:59:44Z")

</div>

@lij24 This is an interaction between a new deal.II version and an old ASPECT version. It’s just really unfortunate you’re running into this.

The issue was fixed here: [Add semicolon to asserts that were missing it. by gassmoeller · Pull Request #5464 · geodynamics/aspect · GitHub](https://github.com/geodynamics/aspect/pull/5464). Your options are to either use the current ASPECT `main` branch instead of the ASPECT 2.5 release, or to add the semicolons where indicated in the patch mentioned in the previous sentence.

Best  
W.

---

<div class="post-metadata">

### Author: ![lij24](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/lij24/32/2138_2.png) [@lij24](https://community.geodynamics.org/u/lij24)
#### Post date: [September 12, 2024, 6:24am UTC](https://community.geodynamics.org/t/there-are-some-problems-when-i-install-aspect-2-5-0/3652/9 "2024-09-12T06:24:16Z")

</div>

@bangerth and @jbnaliboff Thank you soooooo much for kindful help. Now I installed ASPECT sucessfully 🙂 .

Sincere,  
Jing
