# Freefem not starting in ubuntu 18.04 after installing via apt

**URL:** <https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458>\
**Category:** FreeFEM installation\
**Created:** [January 28, 2022, 4:35pm UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458 "2022-01-28T16:35:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbletry](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@mbletry](https://community.freefem.org/u/mbletry)\
**Post date:** [January 28, 2022, 4:35pm UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458/1 "2022-01-28T16:35:22Z")

</div>

Hello,

I have installed freefem using apt in ubuntu 18.04 and I try to execute a first example , pretty much straight from the manual:

```auto
 bool debug= true;

border C(t=0, 2*pi){x=cos(t); y=sin(t);}
mesh Th = buildmesh(C(50));
fespace Vh(Th, P1);
Vh u, v;
func f= x*y;
real cpu=clock();
solve Poisson(u, v, solver=LU) = int2d(Th)( dx(u)*dx(v) + dy(u)*dy(v)) - int2d(Th)( f*v) + on(C, u=0);
plot(u);
cout << "CPU time = " << (clock()-cpu) << endl;

```

Then I get this :

```auto
 > freefem ex1.pde 
 file : ex1.pde
line 1: Unexpected symbol: 'new variable' Instead of 'fonction' 
Segmentation fault (core dumped)

```

which does not seem right at all, but I really don’t understand what is going on… Any help would be appreciated !  
Best regards,  
Marc

---

<div class="post-metadata">

**Author:** ![vlaude](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/vlaude/32/939_2.png) [@vlaude](https://community.freefem.org/u/vlaude)\
**Post date:** [January 30, 2022, 11:18am UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458/2 "2022-01-30T11:18:23Z")

</div>

Hello,  
The apt package seems quite old (version 3.5). Try command `apt show freefem`, on my Ubuntu 20.04 it yields:

```auto
Package: freefem
Version: 3.5.8-7build1
Priority: optional
Section: universe/math
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian QA Group <packages@qa.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 37,9 kB
Depends: libfreefem0 (= 3.5.8-7build1), libc6 (>= 2.3.4), libgcc-s1 (>= 3.0), libstdc++6 (>= 5)
Suggests: freefem-examples (= 3.5.8-7build1), freefem-doc (= 3.5.8-7build1)
Homepage: http://kfem.sourceforge.net
Download-Size: 6 508 B
APT-Sources: http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: langage orienté vers un environnement de développement, utilisant la méthode des éléments finis
 FreeFEM est un langage adapté aux équations aux dérivées partielles. La
 méthode sous-jacente utilisée est celle des éléments finis. Cet outil a
 été utilisé avec succès comme outil d’enseignement et même comme outil de
 recherche.

```

I suggest installing ff++ from source following the instructions at [https://doc.freefem.org/introduction/installation.html#compilation-on-ubuntu](https://doc.freefem.org/introduction/installation.html#compilation-on-ubuntu).  
Vincent

---

<div class="post-metadata">

**Author:** ![mbletry](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@mbletry](https://community.freefem.org/u/mbletry)\
**Post date:** [January 31, 2022, 2:49pm UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458/3 "2022-01-31T14:49:50Z")

</div>

OK, thanks a lot for your answer Vincent : I’ll try that asap !!

Have a god day,

Marc

---

<div class="post-metadata">

**Author:** ![mbletry](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@mbletry](https://community.freefem.org/u/mbletry)\
**Post date:** [February 9, 2022, 3:04pm UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458/4 "2022-02-09T15:04:38Z")

</div>

This installation was the way to go, thanks a lot !!!

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [February 12, 2022, 2:16pm UTC](https://community.freefem.org/t/freefem-not-starting-in-ubuntu-18-04-after-installing-via-apt/1458/5 "2022-02-12T14:16:02Z")

</div>


