1. 程式人生 > 其它 >gloox連線openfire伺服器-裝置端編譯gloox

gloox連線openfire伺服器-裝置端編譯gloox

技術標籤:linuxcentospythonjavahadoop

目錄[-]


1、下載 gloox

gloox官方網站:https://camaya.net/gloox

2、安裝 gloox

•對下載的檔案進行解壓
•進入解壓的檔案路徑

cd gloox/gloox-1.0.22

•配置檔案 -此步驟主要是針對特定平臺進行軟體編譯器配置

./configure
# 編譯檔案
make
# 安裝 gloox
sudo make install

3、使用 gloox

# 將gloox/gloox-1.0.22/src/.libs目錄下的 libgloox.so 拷貝至系統lib目錄下
sudo cp gloox/gloox-1.0.22/src/.libs/libgloox.so /lib

4、安裝過程可能出現的問題

•warning: 'aclocal-1.15' is missing on your system

解決步驟如下:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
tar xzf autoconf-2.68.tar.gz
cd autoconf-2.68
./configure
make
sudo make install

checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.

解決步驟如下:

wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
tar -zxvf m4-1.4.18.tar.gz
cd m4-1.4.18/
./configure
make
sudo make install

warning: 'aclocal-1.15' is missing on your system 持續出現

sudo apt-get install automake # for Ubuntu