Re: [問題] 套件安裝版本未更新已刪文
※ 引述《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
推
01/30 13:53, , 1F
01/30 13:53, 1F
→
01/30 15:05, , 2F
01/30 15:05, 2F
→
01/30 16:57, , 3F
01/30 16:57, 3F
→
01/30 16:58, , 4F
01/30 16:58, 4F
→
01/30 18:10, , 5F
01/30 18:10, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章