2011-09-07 47 views

回答

1

正如Boost Getting Started Guide明確提到,通過--prefix調用bootstrap.sh時註明您想要的安裝目標:

除非你有你的系統的/usr/local/目錄寫權限,你可能會想,至少使用

$ ./bootstrap.sh --prefix=path/to/installation/prefix 

安裝在其他地方。

+0

謝謝ildjarn。這種方式構建不能安裝Boost.MPI。每當我用mpi編譯任何程序時,我得到如下錯誤:未定義的引用'boost :: mpi :: communicator :: communicator()' – Tarek

+0

「*這種方式構建不能安裝Boost.MPI *」什麼是b2/bjam的輸出?它爲什麼沒有建立? – ildjarn

+0

這是來自bjam的示例錯誤:_In包含在./boost/mpi/allocator.hpp:15,0, 之內的文件來自./boost/mpi.hpp:22, from ./boost/graph/distributed/mpi_process_group .hpp:30, from libs/graph_parallel/src/mpi_process_group.cpp:14: ./boost/mpi/config.hpp:20:17:schwerwiegender Fehler:mpi.h:Datei oder Verzeichnis nicht gefunden Kompilierung beendet。 _ **翻譯:mpi.h未找到,編譯已終止** – Tarek

相關問題