Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution problem in Ubuntu 18.04 #52

Closed
paolopiers opened this issue Nov 26, 2018 · 11 comments
Closed

Execution problem in Ubuntu 18.04 #52

paolopiers opened this issue Nov 26, 2018 · 11 comments

Comments

@paolopiers
Copy link

Hi. I have downloaded the ubuntu-source-master zip file but I cannot run FreeFem++.
I cd into the binaries folder by typing
cd/freefem++-source-master/bin
and then I run
./FreeFem++
However, I am returned a message saying that the library libhdf5_serial.so.10 is missing. Could you please help me out?

@frederichecht
Copy link
Contributor

frederichecht commented Nov 26, 2018 via email

@sgarnotel
Copy link
Member

sgarnotel commented Nov 26, 2018 via email

@Trophime
Copy link

Hi,
your best move is to check with which hdf5 library freefem++ has been compiled:

ldd ./Freefem++ | grep hdf5

then try to install the package that contains the library, possibly libhd5-dev (with the correspond version) on Ubuntu 18.4:

sudo apt install libhdf5-dev

Best

@paolopiers
Copy link
Author

Hi and thanks a lot to everyone for answering.
I tried to link to link the library as Simon suggested and I also tried to install the library that Trophime suggested.
However, I keep up receiving the same error message about that missing library.

Best regards,

Paolo

@sgarnotel
Copy link
Member

I try to build a .deb package as soon as possible

@Trophime
Copy link

@paolopiers could you send the output of ldd command?
By the way, I'm pretty sure that there is an up to date freefem++ package on Ubuntu 18.04.
Why not using it?

@Trophime
Copy link

May be this would do the trick (if your "still" want to use freefem++ latest version):
sudo ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so usr/lib/libhdf5_serial.so.10

@frederichecht
Copy link
Contributor

frederichecht commented Nov 26, 2018 via email

@sgarnotel
Copy link
Member

sgarnotel commented Nov 26, 2018

I just add a deb package

@paolopiers could you try it?

@paolopiers
Copy link
Author

paolopiers commented Nov 27, 2018

I have tried as @Trophime and @frederichecht suggested.
Linking the library DOES the trick and the program is successfully executed.
To recapitulate, this is how the problem related to the .zip bundle was solved:

  1. Run sudo ln -sf /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so usr/lib/libhdf5_serial.so.10

  2. This is the output of ./FreeFem++

 Error parameter: ./FreeFem++ , version :   3.610000 (date Wed Jun 20 19:07:59 CEST 2018) 64bits 
 Syntaxe = ./FreeFem++   [ -v verbosity ] [ -fglut filepath ] [ -glut command ] [ -nw] [ -f] filename  [SCRIPT-arguments]
        -v      verbosity : 0 -- 1000000 level of freefem output 
        -fglut  filepath  : the file name of save all plots (replot with ffglut command ) 
        -glut    command  : change  command  compatible with ffglut  
        -gff     command  : change  command  compatible with ffglut (with space quoting)
        -nowait           : nowait at the end on window   
        -wait             : wait at the end on window   
        -nw  or -ng       : no ffglut, ffmedit  (=> no graphics windows) 
        -wg               : with graphic   (=>  graphics windows) 
        -ne               : no edp script output
        -cd               : Change dir to script dir
        -jc               : just compile
        -cdtmp            : Change dir to tmp dir (for test)

 without     default ffglut : ffglut

I also tried to compile an example and everything works perfectly.
Thanks a lot everyone for your help.

@sgarnotel I have tried your .deb package (version 3.610002) and it works perfectly.
This is the output of FreeFem++ command

paolo@MADept:~/Downloads$ FreeFem++
 Error parameter: FreeFem++ , version :   3.610002 (date lundi 26 novembre 2018, 22:06:53 (UTC+0100)) 64bits 
 Syntaxe = FreeFem++   [ -v verbosity ] [ -fglut filepath ] [ -glut command ] [ -nw] [ -f] filename  [SCRIPT-arguments]
        -v      verbosity : 0 -- 1000000 level of freefem output 
        -fglut  filepath  : the file name of save all plots (replot with ffglut command ) 
        -glut    command  : change  command  compatible with ffglut  
        -gff     command  : change  command  compatible with ffglut (with space quoting)
        -nowait           : nowait at the end on window   
        -wait             : wait at the end on window   
        -nw  or -ng       : no ffglut, ffmedit  (=> no graphics windows) 
        -wg               : with graphic   (=>  graphics windows) 
        -ne               : no edp script output
        -cd               : Change dir to script dir
        -jc               : just compile
        -cdtmp            : Change dir to tmp dir (for test)

 with        default ffglut : ffglut

I tried to compile a basic example (the same as above) and I got the desired output. Thank you very much for your help!

@sgarnotel
Copy link
Member

Thank you for your feedback. I close this issue as it's solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants