Re: [問題].Boost 請教一個安裝選項問題

看板Programming作者 (蝦蝦蝦蝦 來玩圍棋吧)時間17年前 (2008/05/10 08:52), 編輯推噓1(106)
留言7則, 1人參與, 最新討論串2/2 (看更多)

05/10 02:51,
lib不是binary嗎...XD
05/10 02:51
由 ./configure --help 來看,並不是啊! 關於目標目錄的設定有二: 1. --prefix=PREFIX install Boost into the given PREFIX 2. --exec-prefix=EPREFIX install Boost binaries into the given EPREFIX 而其中有更精確的設定選項: More precise control over installation directories: --libdir=DIR install libraries here [EPREFIX/lib] --includedir=DIR install headers here [PREFIX/include] 還是說在下誤解了英文的意思呢? 還請高手開釋。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.100.86.180

05/10 10:39, , 1F
正常來說如果你不想裝在/usr/local
05/10 10:39, 1F

05/10 10:39, , 2F
那你就輸入./configure --prefix=/usr
05/10 10:39, 2F

05/10 10:40, , 3F
--libexecdir=/usr/lib --sysconfdir=/etc
05/10 10:40, 3F

05/10 10:40, , 4F
--localstatedir=/var 這樣就能應付大部
05/10 10:40, 4F

05/10 10:40, , 5F
分由autoconf生出來的configure script
05/10 10:40, 5F

05/10 10:41, , 6F
其他還有什麼額外要enable/with的東西再
05/10 10:41, 6F

05/10 10:42, , 7F
再加上就好了。
05/10 10:42, 7F
文章代碼(AID): #189F7dBI (Programming)
文章代碼(AID): #189F7dBI (Programming)