PPA for ubuntu 22.04

Discussion about building and installing Elmer
tpgillam
Posts: 8
Joined: 06 Dec 2022, 13:35
Antispam: Yes

PPA for ubuntu 22.04

Post by tpgillam »

Hello - is this the correct place to ask about the Ubuntu PPA please?

If so, we are wondering if there are plans to add support 22.04 LTS in the near future? We're using a number of cloud instances which currently are pinned to 20.04, but we'd like to move to 22.04 when possible.

From here: https://launchpad.net/~elmer-csc-ubuntu ... er-csc-ppa I can see that there are builds for 20.04 and 20.10, but not for more recent versions.

Thanks!
Tom
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

This will build Elmer with ElmerGUI MPI Mumps LUA on Ubuntu 22.04

cd $HOME
mkdir elmer
cd elmer
sudo apt install git
git clone https://github.com/ElmerCSC/elmerfem.git
sudo apt install cmake build-essential gfortran libopenmpi-dev libblas-dev liblapack-dev
sudo apt install libqwt-dev
sudo apt install libqt5opengl5-dev
sudo apt install qtscript5-dev
sudo apt install libqt5svg5-dev
sudo apt install qtscript5-dev libqwt-qt5-dev
sudo apt install cmake gcc g++ gfortran libqwt-qt5-dev libmpich-dev libblas-dev liblapack-dev libqt5svg5-dev libnetcdff-dev libmetis-dev libparmetis-dev libmumps-dev netcdf-bin
sudo apt install lua5.3
sudo apt-get install libmumps-dev
sudo apt-get install libparmetis-dev
mkdir build
cd build
cmake -DWITH_QT5=TRUE -DWITH_ELMERGUI:BOOL=TRUE -DWITH_MPI:BOOL=TRUE -DWITH_Mumps:BOOL=TRUE -DWITH_LUA:BOOL=TRUE -DCMAKE_INSTALL_PREFIX=../install ../elmerfem
make install

export ELMER_HOME=$HOME/elmer/install/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ELMER_HOME/lib
export PATH=$PATH:$ELMER_HOME/bin
vnikoofard
Posts: 1
Joined: 02 Apr 2023, 03:12
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by vnikoofard »

Trying to follow this procedure, the line
sudo apt install libqwt-dev
throws an error. It seems this package is removed from Ubuntu 22.04
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

libqwt-qt5-dev should cover it.
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

When installing the libraries just keep going if one doesn't install it probably isn't needed. I will try to clean up the list.
raback
Site Admin
Posts: 4801
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: PPA for ubuntu 22.04

Post by raback »

Hi

I just added some recipes for jammy trying to copy the packages in this thread. However, they would not work out-of-the-box and as I don't have the platform currently available I'm happy to accept fixes for this PPA.

The recipes and instructions are here:
https://github.com/ElmerCSC/elmer-packaging-ubuntu

Specifically Jammy aka Ubuntu 22.04 is here:
https://github.com/ElmerCSC/elmer-packa ... r/jammy-eg

-Peter
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

I tried it and got an error with mumps
elmerfem-csc : Depends: libmumps-5.2.1 but it is not installable
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

when I compile on my own I use
sudo apt-get install libmumps-dev
sudo apt-get install libparmetis-dev
succesfully
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

Looks like jammy is on libmumps-5.4
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: PPA for ubuntu 22.04

Post by kevinarden »

I tried it on a fresh install of jammy, and it worked.
Post Reply