歡迎您光臨本站 註冊首頁

編譯pidgin時的依賴問題解決方法

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

每次剛裝系統,需要到pidgin上Q。

因為源裡面沒有pidgin,所以要自己編譯一個,但卻每次都要面對煩人的依賴問題,搞得很煩。

寫這個為了不用每次編譯的時候都要查資料,也讓後面的人參考一下。

首先,我們要安裝編譯環境(我沒有試過不安裝的情況下編譯pidgin,不知道具體會出現什麼錯誤)

sudo apt-get install build-essential
sudo apt-get install gcc-3.4
sudo apt-get install linux-headers-`uname -r` export CC=gcc-3.4

然後編譯pidgin
./configure
出錯:checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
解決: sudo apt-get install libc6-dev

出錯:The msgfmt command is required to build libpurple. If it is installed
on your system, ensure that it is in your path. If it is not, install
GNU gettext to continue.
解決:sudo apt-get install gettext

出錯:You must have the GLib 2.0 development headers installed to build.
解決:sudo apt-get install libglib2.0-dev

出錯:You must have the GTK+ 2.0 development headers installed to compile Pidgin.
解決: sudo aptitude install libgtk2.0-dev

出錯:You must have libxml2 >= 2.6.0 development headers installed to build.
解決:sudo apt-get install libxml2-dev

make
sudo make install

總結:需要安裝的編譯環境是

sudo apt-get install build-essential
sudo apt-get install gcc-3.4
sudo apt-get install linux-headers-`uname -r` export CC=gcc-3.4
sudo apt-get install libc6-dev
sudo apt-get install gettext
sudo apt-get install libglib2.0-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libxml2-dev

MSN 支持 :
apt-get install libgnutls-dev
apt-get install libnss3-dev
--
XML依賴:libxml-parser-perl

gettext依賴:gettext

GTK+ 2.0依賴:libgtk2.0-dev

[火星人 ] 編譯pidgin時的依賴問題解決方法已經有385次圍觀

http://coctec.com/docs/linux/show-post-178455.html