| 29 | * [陽明] Parallel::MPI::Simple 安裝 |
| 30 | * 錯誤訊息:找不到 mpi.h 當然也無法正常用 -lmpi 的方式鏈結函式庫 |
| 31 | {{{ |
| 32 | Note (probably harmless): No library found for -lmpi |
| 33 | |
| 34 | Simple.xs:8:18: error: mpi.h: No such file or directory |
| 35 | }}} |
| 36 | * 官方解法: |
| 37 | {{{ |
| 38 | If you find you cannot build this module, or that the tests fail, you |
| 39 | may be on an odd system where you need to do more than pass -lmpi to |
| 40 | your C compiler to build MPI applications. If this is the case, rerun |
| 41 | perl Makefile.PL with appropriate LDFLAGS= and CCFLAGS= arguments. |
| 42 | }}} |
| 43 | * 癟腳解法: |
| 44 | * 進 .cpan/build/Parallel-MPI-Simple-0.03-*/ 編輯 Makefile |
| 45 | * 修改 LDFLAGS 加入 -L/opt/mpich2/lib |
| 46 | * 修改 CCFLAGS 加入 -I/opt/mpich2/include |
| 47 | * 執行 sudo make 編譯 |
| 48 | * 執行 sudo make install 安裝 |