Discussion:
[問題] 套件安裝版本未更新
(时间太久无法回复)
Brian!~
2014-01-29 08:43:18 UTC
Permalink
小弟是linux新手 有些問題想請問板上各位高手們

最近想在mac下編譯一支程式 此程式需要的套件有兩個

1. SDL 2. Freetype

但因為freetype在mac底下原本就有安裝 只是因為版本不合

他需要2.1.0以上之板本 我也下載了最新的版本安裝完畢

安裝在/usr/local 底下

但在欲編譯的程式目錄底下./configure時 仍出現


checking for FreeType -- version >= 2.1.0... no
configure: WARNING:

The FreeType test program failed to run. If your system uses
shared libraries and they are installed outside the normal
system library path, make sure the variable LD_LIBRARY_PATH
(or whatever is appropriate for your system) is correctly set.

configure: error: *** Freetype2 version 2.1.0 not found!

於是我 export LD_LIBRARY_PATH=/usr/local 再編譯 結果還是一樣


有人可以幫忙解決嗎? 感謝

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.38.66.5
Neisseria
2014-01-29 10:18:19 UTC
Permalink
※ 引述《wwf90322 (Brian!~)》之銘言:
: 小弟是linux新手 有些問題想請問板上各位高手們
: 最近想在mac下編譯一支程式 此程式需要的套件有兩個
: 1. SDL 2. Freetype
: 但因為freetype在mac底下原本就有安裝 只是因為版本不合
: 他需要2.1.0以上之板本 我也下載了最新的版本安裝完畢
: 安裝在/usr/local 底下
: 但在欲編譯的程式目錄底下./configure時 仍出現
: checking for FreeType -- version >= 2.1.0... no
: configure: WARNING:
: The FreeType test program failed to run. If your system uses
: shared libraries and they are installed outside the normal
: system library path, make sure the variable LD_LIBRARY_PATH
: (or whatever is appropriate for your system) is correctly set.
: configure: error: *** Freetype2 version 2.1.0 not found!
: 於是我 export LD_LIBRARY_PATH=/usr/local 再編譯 結果還是一樣
: 有人可以幫忙解決嗎? 感謝
試試 或許要設一下 PATH 改一下優先順序
$ which freetype-config
$ freetype-config --ftversion

題外話
如果在 mac 底下 建議用 Homebrew 來當做套件管理程式
如果時常要在 mac 底下安裝一些工具或函式庫等等 用這個比較方便
如果你的 /usr/local 底下東西還不是很多時
花點時間砍掉重練是值得的
自己的東西可以搭配 paco 裝在 $HOME 底下 和 Homebrew 共存

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.166.212.209

Loading...