Problem with libple.so.2

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: Problem with libple.so.2

Post by jgd23 »

Hello Yvan,

I have the folder of OpenMPI installed in the same path than you : /usr/lib/x86_64-linux-gnu/openmpi

I try the command line:

Code_Saturne configure --with-mpi=/usr/lib/x86_64-linux-gnu/openmpi

but it doesnt do nothing, only the message with all the command associated with the use of CS.

The error when I try to run a case in parallel is stil the same.

Best regards

Julien
niuniuaba
Posts: 18
Joined: Mon May 17, 2021 10:22 am

Re: Problem with libple.so.2

Post by niuniuaba »

Hello,
I try the command line:

Code_Saturne configure --with-mpi=/usr/lib/x86_64-linux-gnu/openmpi
It sounds like you didn't do it the right way. You have to rebuild code_saturne with mpi support before you can use it.

Step1: be sure you have necessary development packages installed:

Code: Select all

sudo apt install libopenmpi-dev openmpi-bin
Step2: configure code_saturne with mpi support (please note the last 3 lines):

Code: Select all

configure \
--prefix=/home/julien/code_saturne/7.2.0/code_saturne-7.2.0/arch/Linux_x86_64 \
--with-hdf5=/home/julien/code_saturne/7.2.0/hdf5-1.10.6/arch/Linux_x86_64 \
--with-cgns=/home/julien/code_saturne/7.2.0/cgns-4.3.0/arch/Linux_x86_64 \
--with-med=/home/julien/code_saturne/7.2.0/med-4.1.1/arch/Linux_x86_64 \
--without-metis \
--without-scotch \
PYTHON=/usr/bin/python3 \
--disable-static \
CXX=mpicxx \
CC=mpicc \
--with-mpi=/usr/lib/x86_64-linux-gnu/openmpi
Step3: make and make install as usual.

It should work. If not, give the error message or upload config.log again.

Good luck.
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: Problem with libple.so.2

Post by jgd23 »

Hello,

Thank you for your help.

I have done

./configure
CXX=mpicxx \
CC=mpicc \
--with-mpi=/usr/lib/x86_64-linux-gnu/openmpi

make
make install (in admin mode)

But it still complains with the error

/cs_solver was built without MPI support,
so option "--mpi" may not be used.
solver script exited with status 1.
Error running the calculation.
Check run_solver.log and error* files for details.
Domain None (code_saturne):
run_solver.log, error*.

Here is the config.log file

Thank you very much

Julien
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: Problem with libple.so.2

Post by jgd23 »

With the file
Attachments
config.log
(197 KiB) Downloaded 742 times
niuniuaba
Posts: 18
Joined: Mon May 17, 2021 10:22 am

Re: Problem with libple.so.2

Post by niuniuaba »

I have done

./configure
CXX=mpicxx \
CC=mpicc \
--with-mpi=/usr/lib/x86_64-linux-gnu/openmpi
No, you didn't. Otherwise you have uploaded a wrong config.log.
make
make install (in admin mode)
Don't install as root. Not necessary because you install to your own home directory
(-- refix=/home/julien/code_saturne/7.2.0/code_saturne-7.2.0/arch/Linux_x86_64) nor a good idea because there may be some side effects when you launch as ordinary user.
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: Problem with libple.so.2

Post by jgd23 »

Hello,
I have start a fresh install of CS7.2. I try Debian but I have several freeze so I come back on Ubuntu.

I have follow each steps of this video
https://www.youtube.com/watch?v=iwke0YRpMrE

I have errors during installation.

See my config.log file.

What I have done wrong?

Best regards

Julien
Attachments
config.log
(16.89 KiB) Downloaded 751 times
Yvan Fournier
Posts: 4153
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem with libple.so.2

Post by Yvan Fournier »

Hello,

The important part in your config.log is here:

Code: Select all

configure:4952: error: in `/home/julien/Code_Saturne/code_saturne-7.2.0.build':
configure:4954: error: C compiler cannot create executables
See `config.log' for more details
With, a few lines earlier:

Code: Select all

configure:4883: checking whether the C compiler works
configure:4905: /usr/bin/mpicc    conftest.c  >&5
/usr/bin/ld: cannot find -lmpi: No such file or directory
/usr/bin/ld: cannot find -lopen-rte: No such file or directory
/usr/bin/ld: cannot find -lopen-pal: No such file or directory
/usr/bin/ld: cannot find -lhwloc: No such file or directory
/usr/bin/ld: cannot find -levent_core: No such file or directory
/usr/bin/ld: cannot find -levent_pthreads: No such file or directory
So it seems your "/usr/bin/mpicc" wrapper is not working. You may want to reinstall the Ubuntu MPI wrappers / packages.
Otherwise, try compiling any simple "hello world" C program (MPI or not) with it, and if it fails, this might be an Ubuntu packaging bug...

Best regards,

Yvan
niuniuaba
Posts: 18
Joined: Mon May 17, 2021 10:22 am

Re: Problem with libple.so.2

Post by niuniuaba »

Hello,

Did you try Step1~Step3 in my previous post? It should work for Ubuntu 22.04. But from your latest config.log it seems you didn't. Without Step1, you won't have compiler wrappers (/usr/bin/mpicc and /usr/bin/mpicxx) and mpi header files; withou setting '--with-mpi=/usr/lib/x86_64-linux-gnu/openmpi' in Step3 the mpi library and header files won't be found.

Best regards
jgd23
Posts: 141
Joined: Mon Jun 06, 2016 10:00 am

Re: Problem with libple.so.2

Post by jgd23 »

Hello,

I have re-install properly CS7.2 on Ubuntu 22.10, everything works well none.

Thank you for your help.

Julien
User avatar
jcharris
Posts: 49
Joined: Tue Apr 16, 2019 7:28 pm

Re: Problem with libple.so.2

Post by jcharris »

As a "I have the same" comment, on Ubuntu I see the same problem. While not that big of a deal, if there was a general solution that fit into the install stage, it would be preferred; for now I just run "export LD_LIBRARY_PATH..." each time in a new shell, as I keep multiple versions on my machine, and anyway don't like messing with bashrc unless necessary. With older code_saturne, it was never an issue.
Post Reply