<div dir="ltr"><div>Good morning Satish,</div><div><br></div><div>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?<br></div><div> I am looking forward to hearing from you.</div><div><br></div><div>Best regards,<br><br></div><div>Sebastian</div><div><br></div><div><img src="cid:ii_l63c3uk40" alt="imagen.png" width="507" height="133"><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue, 21 jul 2022 a las 15:36, Satish Balay (<<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You can try:<br>
<br>
ldd your-executable<br>
<br>
And copy over all the .so files listed by it [ignoring the system libraries - that might be present on the remote machine<br>
<br>
<br>
Try setting LD_LIBRARY_PATH to this location [n the new machine]<br>
<br>
and retry 'ldd your-executable' on the new machine - and make sure there are no 'not found' libraries in that list<br>
<br>
then your-executable is likely to work.<br>
<br>
Note: this might not work parallely - as you would need mpiexec for a parallel run<br>
<br>
Satish<br>
<br>
On Thu, 21 Jul 2022, Sebastian Gutierrez wrote:<br>
<br>
> <br>
> <br>
> <br>
> Good afternoon PETSc Development Team,<br>
> <br>
> <br>
> <br>
> 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<br>
> 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<br>
> installed petsc.<br>
> <br>
> <br>
> <br>
> I honestly have no idea to solve this. I wrote this email in hopes that you kindly help me out with this.<br>
> <br>
> I am looking forward to your answer.<br>
> <br>
> <br>
> <br>
> Best regards,<br>
> <br>
> <br>
> <br>
> Sebastian Gutierrez<br>
> <br>
> <br>
> <br>
</blockquote></div>