[petsc-users] Doubt about distribution of PETSc in a CMake project

Sebastian Gutierrez sebasgut.5 at gmail.com
Wed Jul 27 03:18:00 CDT 2022


Good morning Satish,

I tried this solution and I could effectively link the libraries to the
executable in a new machine. Nonetheless, I am having now a new problem
when I am trying to execute my program on the new machine. Since the new
machine does not have petsc nor mpi installed, the program throws me this
error message (see image attached), but I do not want the final users to
install mpi their own. Is it any solution to this issue? Can you help me,
please?
 I am looking forward to hearing from you.

Best regards,

Sebastian

[image: imagen.png]


El jue, 21 jul 2022 a las 15:36, Satish Balay (<balay at mcs.anl.gov>)
escribió:

> You can try:
>
> ldd your-executable
>
> And copy over all the .so files listed by it [ignoring the system
> libraries - that might be present on the remote machine
>
>
> Try setting LD_LIBRARY_PATH to this location [n the new machine]
>
> and retry 'ldd your-executable' on the new machine - and make sure there
> are no 'not found' libraries in that list
>
> then your-executable is likely to work.
>
> Note: this might not work parallely - as you would need mpiexec for a
> parallel run
>
> Satish
>
> On Thu, 21 Jul 2022, Sebastian Gutierrez wrote:
>
> >
> >
> >
> > Good afternoon PETSc Development Team,
> >
> >
> >
> > I have been trying to distribute your program as third party library in
> my CMake Project. Because I do not want to my Linux users to have to
> install petsc by their own. I just want them to use my final
> > product that uses petsc dependencies. When I execute make install  of my
> Project in my own machine, it works perfectly but the problem appears when
> I move the executable to another machine that does not have
> > installed petsc.
> >
> >
> >
> > I honestly have no idea to solve this. I wrote this email in hopes that
> you kindly help me out with this.
> >
> > I am looking forward to your answer.
> >
> >
> >
> > Best regards,
> >
> >
> >
> > Sebastian Gutierrez
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220727/4863c494/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagen.png
Type: image/png
Size: 64138 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220727/4863c494/attachment-0001.png>


More information about the petsc-users mailing list