Page 1 of 2

how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 12 May 2017, 23:19
by AlfredBerger
Dear Sirs,

I run a VM running Ubuntu 16.04 LTS with Windows as host to be able to compile Elmerfem.
Could some write down the steps in a simple way, because what I find in wiki or in the forum seems to be outdated.
kind regards,
Alfred.

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 17 May 2017, 13:45
by annier
Hi Alfred,
Please use launchpad to install and use Elmer in Ubuntu 16.04.
viewtopic.php?f=2&t=4413&start=0&sid=8e ... 456b5da4d8

Yours Sincerely,
Anil Kunwar

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 30 May 2017, 19:25
by drtspc
I would like to install a new version of Elmer on Ubuntu 16.04. And would like to uninstall the version I currently have installed.

I am using a older version of Elmer (from 2013 - 6*), which I installed on Ubuntu 13.04 (vm on an early 2011 MacBook Pro). Over the years, I have installed new versions of Ubuntu, and have had to change my .bashrc to keep Elmer running.

I have been hesitant about updating, as I have bad memories of the 2013 installation process - at least the codes required by Elmer were "troublesome".

I ran across this posting/topic, and it seems to answer the installation question.

I would like to know how to uninstall the version I have installed, while keeping the materials file and project files. I can certainly back the existing files/directories up, but how aggressive is the uninstall procedure? (If there is an automated process.)

Thanks,
Tim

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 31 May 2017, 06:07
by annier
Hi Tim,
1. If you have not installed Elmer in the system files of the computer and have set the path of the Elmer libraries in the bash file, virtually you do not need to remove elmer files. You just need to comment the elmer path in the bashrc file of Ubuntu 16.04. (In 2013 it was a lengthy process to complete files as there were no procedures such as cmake and launchpad but now with these facilities Elmer installation is very quick and easy. With Elmer, please use the fresher versions as the developers are always using newest methods and libraries.).

2. Then you install Elmer using launchpad, one post earlier than your latest post. It is a very easy procedure and will finish quickly and this will install elmer libraries in computer's system files, which can be uninstalled or reinstalled in accordance to dpkg commands in Ubuntu (later on).


Yours SIncerely,
Anil Kunwar

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 05 Jun 2017, 16:43
by AlfredBerger
Der Sirs,
thank you for the info of how-to-install Elmer in Ubuntu 16.04.
But I am interested in how-to-compile it under Ubuntu 16.04 (I need to write a New solver).
Alfred

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 06 Jun 2017, 13:33
by annier
Hi Alfred,
- I understand your aspects. Writing elmersolvers, it is readable and linked to other elmer libraries by creating shared object (so) files with elmerf90 compiler.
- Whether you install from (1) launchpad (as mentioned above in my previous post) or (2) you compile step by step as Ubuntu 16.04 installation using Cmake, the end results in case of both is the generation of Elmer executables such as ElmerSolver, ElmerGui, ElmerGrid, etc. and availability of elmerf90 wrapper/compiler. By both steps you can write Elmer Solvers/Subroutines (refer User Defined Solvers in Elmer Programer's Manual http://www.nic.funet.fi/pub/sci/physics ... torial.pdf) and compile them with elmerf90 wrapper/compiler.


Yours Sincerely,
Anil Kunwar

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 24 Jul 2019, 08:32
by sameer21101970
I have install elmer from $ sudo apt-get install elmerfem-csc on ubuntu 16.04.

cmake is showing project files are not available.

I am totally confused, is there a video or proper presentation on how to install & Use Elmer. Because for First Time USer Installation itself is headache, SO what about Operating the software.

Kindly give me information, I want to use ElmerFem and understand its advantages in Structure Design.

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 24 Jul 2019, 11:05
by mzenker
Hi,

I would advise to install Elmer with ElmerGUI, see here viewtopic.php?f=2&t=1#p19826 for instructions.
If the installation is successful, you can start ElmerGUI directly, either from the Start menu or from the command line. Then there is no need to compile.

HTH,
Matthias

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 24 Jul 2019, 13:10
by sameer21101970
below error shows, can't locate package.. for information, i am using lubuntu 16.04 64 bit. kindly guide.

E: Unable to locate package elmerfem-csc-eg

followed below command line from your link post
CODE: SELECT ALL

sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
sudo apt-get update
sudo apt-get install elmerfem-csc-eg

sameer@sameer-desktop:~$ sudo apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Hit:3 http://ppa.launchpad.net/canonical-chro ... age/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:5 http://ppa.launchpad.net/elmer-csc-ubun ... ppa/ubuntu xenial InRelease
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [995 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [704 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [843 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [392 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [757 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [573 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [691 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [316 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [280 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [449 kB]
Fetched 6,324 kB in 57s (110 kB/s)
Reading package lists... Done
sameer@sameer-desktop:~$ sudo apt-get install elmerfem-csc-eg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package elmerfem-csc-eg
sameer@sameer-desktop:~$

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Posted: 24 Jul 2019, 13:28
by kevinarden
lubuntu uses apt-secure and won't install packages that are not 'authorized'
viewtopic.php?f=2&t=6583&p=20413&hilit=lubuntu#p20413