# Installing on ubuntu22

**URL:** <https://discourse.channelflow.ch/t/installing-on-ubuntu22/180>\
**Category:** Installation\
**Created:** [March 20, 2024, 7:42pm UTC](https://discourse.channelflow.ch/t/installing-on-ubuntu22/180 "2024-03-20T19:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://discourse.channelflow.ch/u/Michael)\
**Post date:** [March 20, 2024, 7:42pm UTC](https://discourse.channelflow.ch/t/installing-on-ubuntu22/180/1 "2024-03-20T19:42:59Z")

</div>

Hi All,

Perhaps someone can share how to successfully install channeflow on Ubuntu22?  
Installing all the default packages and using the cmake command below

cmake /home/user/Tools/channelflow/source -DCMAKE\_BUILD\_TYPE=release -DCMAKE\_CXX\_COMPILER=mpic++ -DCMAKE\_INSTALL\_PREFIX=$HOME/Tools/channelflow/release

the compilation completed successfully, but when trying to run I get the error:

Abort(939074819) on node 0 (rank 0 in comm 0): Fatal error in internal\_Bcast: Invalid datatype, error stack:  
internal\_Bcast(107): MPI\_Bcast(buffer=0x7ffc0e736d00, count=1, INVALID DATATYPE, 0, comm=0x84000000) failed  
internal\_Bcast(67).: Invalid datatype

Any comments will be appreciated,  
Thanks  
Michael

---

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://discourse.channelflow.ch/u/Michael)\
**Post date:** [March 26, 2024, 3:26pm UTC](https://discourse.channelflow.ch/t/installing-on-ubuntu22/180/2 "2024-03-26T15:26:51Z")

</div>

Solved it, and documenting here in case someone is experiencing the same problem:

For some reason the default mpi in ubuntu22 is mpich. Switching to openmpi before compilation solves the problem.

Best  
Michael
