Page 1 of 2

PPA for ubuntu 22.04

Posted: 15 Dec 2022, 17:21
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

Re: PPA for ubuntu 22.04

Posted: 20 Feb 2023, 01:48
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

Re: PPA for ubuntu 22.04

Posted: 02 Apr 2023, 03:14
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

Re: PPA for ubuntu 22.04

Posted: 02 Apr 2023, 09:04
by kevinarden
libqwt-qt5-dev should cover it.

Re: PPA for ubuntu 22.04

Posted: 02 Apr 2023, 23:17
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.

Re: PPA for ubuntu 22.04

Posted: 06 Apr 2023, 19:30
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

Re: PPA for ubuntu 22.04

Posted: 06 Apr 2023, 20:58
by kevinarden
I tried it and got an error with mumps
elmerfem-csc : Depends: libmumps-5.2.1 but it is not installable

Re: PPA for ubuntu 22.04

Posted: 06 Apr 2023, 20:59
by kevinarden
when I compile on my own I use
sudo apt-get install libmumps-dev
sudo apt-get install libparmetis-dev
succesfully

Re: PPA for ubuntu 22.04

Posted: 07 Apr 2023, 17:02
by kevinarden
Looks like jammy is on libmumps-5.4

Re: PPA for ubuntu 22.04

Posted: 15 Apr 2023, 13:05
by kevinarden
I tried it on a fresh install of jammy, and it worked.