# Plot() doesn't turn up on Linux RedHat 8.0

**URL:** https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244
**Category:** General Discussion
**Created:** [January 25, 2023, 10:40am UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244 "2023-01-25T10:40:49Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 10:40am UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/1 "2023-01-25T10:40:49Z")

</div>

Hi,

Just installed FreeFem++ 4.12 on a Linux Red Hat 8.0 system, and I tried different 2D and 3D examples. It is strange that plot() does NOT show up although there are no errors.

Is this an issue of Linux or FreeFem installation, can someone help please?  
Thank you in advance.

Best,  
Yongxing

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 11:38am UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/2 "2023-01-25T11:38:53Z")

</div>

In some cases you need to use the command line option “-wg” which apparently  
means with graphics. This may relate toe mpirun or something .

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 11:50am UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/3 "2023-01-25T11:50:28Z")

</div>

Thank you @marchywka . Unfortunately, there was still nothing showing up although no errors too. Just to confirm, do you mean this: ?  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/7/7de1fe76c9efff405efcf2af1735d8ddbff767f9.png)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 12:04pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/4 "2023-01-25T12:04:18Z")

</div>

yes, but I just ran the stokes.edp in my examples and it did put up a plot  
without the option. If it did not terminate, you can see if it started ffglut,  
When the plot is up I have this process tree,

```auto
31762 pts/1 S+ 0:00 FreeFem++ stokes.edp
31763 pts/1 S+ 0:00 sh -c ffglut
31764 pts/1 S+ 0:00 ffglut

```

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 12:21pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/5 "2023-01-25T12:21:35Z")

</div>

I don’t have your outputs, which is something like:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/f/ff0b973043d57395fa2bd092a94a914b01af6b0f.png)

Looks something is wrong with command “ffglut”. Where can I find command ffglut? it cannot be found if I directly run it:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/f/fd08a0b336ef6400ec4b04e8dd8227815377f198.png)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 12:26pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/6 "2023-01-25T12:26:48Z")

</div>

The other thing to try is before the plot put in a line “verbosity=1000;”  
although I’m not sure that will help. Check your path- I originally had  
problems with other stuff before the freefem bins/libs.  
“echo $PATH” and see if freefem is on the path, or 'which -a fffglut"

and if you can paste plain text it makes it easier to quote.

```auto
which ffglut
/home/ubuntu/dev/freefem/install2/bin//ffglut
marchywka@happy:/home/documents/cpp/proj/freefem/play$ which -a ffglut
/home/ubuntu/dev/freefem/install2/bin//ffglut
marchywka@happy:/home/documents/cpp/proj/freefem/play$ ffglut
^C
marchywka@happy:/home/documents/cpp/proj/freefem/play$ ffglut --help
 Erreur ffglut [-nv|-v|-vv|-vvv] [-wait 0.5] [-g 512x300+10+10] [-t title] [file]
 err number 100
Aborted (core dumped)

```

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 12:34pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/7 "2023-01-25T12:34:03Z")

</div>

Thank you @marchywka . Yes, I have exported the freefem path, but is ffglut a separate command located in a different directory?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/4/4bb4c432c6c727734e38a9ad2edcfec0327ed285.png)

I can only find these files in my …/FreeFem-install directory:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/7/75340cab25fd7a31ab95daf871f5e227a668b119.png)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 1:01pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/8 "2023-01-25T13:01:54Z")

</div>

Did you try running it with “verbosity=1000;” before the plot?  
Curious if it complains.

If you did just did the steps in the README file I think it would  
have included make, make check and make install along with  
steps to make petsc. A default install probably requires admin/sudo  
and if you put it somewhere else it needs tobe on your path.

Try this or something like “find …/… -name ffglut”

```auto
find `dirname \`which -a FreeFem++ \` `
/home/ubuntu/dev/freefem/install2/bin
/home/ubuntu/dev/freefem/install2/bin/ff-get-dep
/home/ubuntu/dev/freefem/install2/bin/ffmedit
/home/ubuntu/dev/freefem/install2/bin/FreeFem++-mpi
/home/ubuntu/dev/freefem/install2/bin/ffmaster
/home/ubuntu/dev/freefem/install2/bin/ff-pkg-download
/home/ubuntu/dev/freefem/install2/bin/cvmsh2
/home/ubuntu/dev/freefem/install2/bin/ff-c++
/home/ubuntu/dev/freefem/install2/bin/FreeFem++
/home/ubuntu/dev/freefem/install2/bin/ff-mpirun
/home/ubuntu/dev/freefem/install2/bin/bamg
/home/ubuntu/dev/freefem/install2/bin/ffglut
/home/ubuntu/dev/freefem/install2/bin/FreeFem++-nw

```

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 1:29pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/9 "2023-01-25T13:29:34Z")

</div>

Yes, verbosity=1000 prints a lot of things without no complains, but not graphs showing up.  
It might be a problem of my installation, I used

```auto
If you do not have administrator rights or do not want FreeFEM files scattered around on your machine, please use the `--prefix` option, e.g.:
./configure --enable-download --enable-optim --prefix=${HOME}/FreeFem-install

```

It is weird that I c **annot find `ffglut` in any directory** , even in the FreeFem source file directory? :  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/b/b68ce6d2489b551daff508694cf4b7375d0dc7ee.png)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 1:38pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/10 "2023-01-25T13:38:54Z")

</div>

try “which -a FreeFem++”  
and see what is iin whatever directory that lists. Do you have a directory  
called ~/FreeFem-install? I always tried to avoid “make install” but pointing  
into the build directory often becomes a problem 🙂

You can see if it tried to build it, ``

`find ../.. -name "*ffglut*" ../../src/Graphics/.deps/ffglut.Po ../../src/Graphics/ffglut.cpp ../../src/Graphics/ffglut.hpp ../../src/Graphics/ffglut.o ../../src/nw/ffglut ../../cmake/modules/ff_define_ffglut_executable.cmake `

```auto

```

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 2:09pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/11 "2023-01-25T14:09:40Z")

</div>

Yes, I do have FreeFem-install directory, but there is no ffglut\* files. However, why there is no ffglut file in the source file?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/8/8c67851f440c9857450e4cd542042ccf26f09cd1.png)

Look, there are all the files in my ~/src/nw/, which does not have **ffglut** as shown in yours:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/f/fb2a55d10f937b830271bb0e57fcfd54b8ecb952.png)

The following is the ouput of which -a FreeFem++:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/8/882bbf6ef03d8166f88f960e88caf8972689818f.png)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 2:22pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/12 "2023-01-25T14:22:56Z")

</div>

look at config.log and see if it was missing a dependency

```auto
FreeFem-sources-master/examples/mpi$ cat ../../config.log | grep glut | uniq
configure:12664: checking GLUT/glut.h usability
conftest.cpp:62:23: fatal error: GLUT/glut.h: No such file or directory
| #include <GLUT/glut.h>
configure:12664: checking GLUT/glut.h presence
conftest.cpp:29:23: fatal error: GLUT/glut.h: No such file or directory
| #include <GLUT/glut.h>
configure:12664: checking for GLUT/glut.h
configure:12681: checking GL/glut.h usability
configure:12681: checking GL/glut.h presence
configure:12681: checking for GL/glut.h
| char glutInit ();
| return glutInit ();
configure:12731: g++ -o conftest -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR conftest.cpp -lrt -lglut -lGLU -lGL >&5
| #define PROG_FFGLUT "ffglut"
configure:26144: progs: FreeFem++-nw bamg cvmsh2 FreeFem++-mpi ffmedit ffglut 
ac_cv_header_GLUT_glut_h=no
ac_cv_header_GL_glut_h=yes
FFGLUTPROG='ffglut'
LIBSGLUT='-lglut -lGLU -lGL'
#define PROG_FFGLUT "ffglut"
marchywka@happy:/home/ubuntu/dev/freefem/FreeFem-sources-master/examples/mpi$ 

```

---

<div class="post-metadata">

### Author: ![JuillenL](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@JuillenL](https://community.freefem.org/u/JuillenL)
#### Post date: [January 25, 2023, 2:32pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/13 "2023-01-25T14:32:44Z")

</div>

Hello  
can you tell us how you installed FreeFem++4.12 on Red Hat ? ( I have actually issues ☹ )  
built from source compilation ?  
Regards

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 2:33pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/14 "2023-01-25T14:33:29Z")

</div>

Looks like something is missing, what can I do now?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/6/672154c57a9484e908b39cab1a8c1f397bdf581f.png)

---

<div class="post-metadata">

### Author: ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)
#### Post date: [January 25, 2023, 2:34pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/15 "2023-01-25T14:34:37Z")

</div>

follow the instruction at here: [GitHub - FreeFem/FreeFem-sources: FreeFEM source code](https://github.com/FreeFem/FreeFem-sources)

---

<div class="post-metadata">

### Author: ![marchywka](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@marchywka](https://community.freefem.org/u/marchywka)
#### Post date: [January 25, 2023, 2:39pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/16 "2023-01-25T14:39:17Z")

</div>

I dont think config.log is lying, try to install freeglut-dev however you  
do that on redhat.

After you run ./configure the last output should summarize what it can can’t include.  
Make sure you are ok with that.

---

<div class="post-metadata">

### Author: ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)
#### Post date: [January 25, 2023, 4:58pm UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/17 "2023-01-25T16:58:31Z")

</div>

Try to add `fill=true` to your plot options  
It could be related to this:

> [@Segmentation fault due to fill=false option in plots](https://community.freefem.org/t/segmentation-fault-due-to-fill-false-option-in-plots/1348):
>
> Dear all I think I spotted an error in the plot command when using the option fill=false. My FreeFem is the latest version installed from the develop branch, on Ubuntu 20.04. I tested this on two different machines. Does anyone has the same error with the following code? mesh Th=square(10,10,[x,y]); fespace Vh(Th,P2); Vh f = x\*y; plot(f,wait=true,fill=true,cmm=“ok”); plot(f,wait=true,fill=false,cmm=“not ok”); cout \<\< “finished” \<\< endl;

---

<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 9, 2023, 9:02am UTC](https://community.freefem.org/t/plot-doesnt-turn-up-on-linux-redhat-8-0/2244/18 "2023-02-09T09:02:53Z")

</div>

I have no problem on my mac arm M1, I think you open gl and glut library are wrong!
