Menu

pyMPI and shared MPI libraries

Help
cable
2012-06-07
2013-04-17
  • cable

    cable - 2012-06-07

    First, much thanks to Pat Miller.  I was able to get pyMPI going on my first system.

    But now I have a second one to worry about.  I was able to compile and link, but when I fired up the pyMPI executable, it crashed immediately, telling me that it couldn't find the MPI shared library libmpi.so.1.

    Well, it definitely exists, and other codes running MPI on this new platform have not had a problem finding it.

    I was able to get past this problem by adding the library location to LD_LIBRARY_PATH.  But I don't like doing this.  It means asking my users to do one more thing to use this executable, and I understand that it involves some security issues.

    Any idea why this would work on one platform and not another similar (both Linux) platform?  Most importantly, is there a cleaner solution to this problem than editing LD_LIBRARY_PATH?  Thanks!

     
  • Patrick Miller

    Patrick Miller - 2012-06-08

    You can hack the location using -rpath in the final link stage

    Something like running ./configure with -with-libs=-Wl,-rpath,/path/to/where/missing/lib/is

     
  • cable

    cable - 2012-06-08

    Thanks, Pat.  Apparently, I'm good to go now.  Much obliged!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.