Adios’ Notes

Adios’ Notes

Adios Tsai  //  

Dec 7 / 7:19am

FreeBSD amd64 使用 32bit libpcre.so.0

在 FreeBSD amd64 下,用 ports 安裝 pcre,會是 amd64 架構的 pcre,雖然用「ldconfig -32 /usr/local/lib」可以讀到 hint 裡,但是好像不能用(?)。

目前的解法是在從 FreeBSD i386 的機器中,複製「libpcre.so.0」並放在 FreeBSD amd64 的「/usr/local/lib32」中,並且在「/usr/local/libdata/ldconfig32/」加一個檔案「pcre」,內容只有一行:「/usr/local/lib32」。

這樣在開機的時候,「/etc/rc.d/ldconfig」便會正確的以「ldconifg -32 -m」讀入這個 32bit 的「libpcre.so.0」。

不知道有沒有其它的方法,例如在 FC4(?) 下,就另外有 pcre-i386 的套件可以裝…。

Loading mentions Retweet

0 comments

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter