
Ubuntu日本語フォーラム

ログインしていません。
Linux Bluettoth stack の bluez-utils-3.36.tar.gz を
configure したのですが Errorとなります
初心者のためどのように手を付けていいのかご指導いただければ
助かります。
環境:
Ubuntu 8.0.4 VMWare on Windows XP SP2
bluez-utils-3.36.tar.gz は以下にあるものです
http://www.bluez.org/
展開後、configureをかけると
$ . ./configure | tee log.txt
...
bash: creating libtool
checking for ppoll... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BLUEZ... yes
checking for GLIB... no
checking for GMODULE... no
checking for dlopen in -ldl... yes
checking for DBUS... no
bash: error: D-Bus library is required
$
エラーとなります
DBUSをインストールしようとすると
$ sudo apt-get install dbus
[sudo] password for ai:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
dbus はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 154 個。
ai@ubuntu-vm:~/BlueZ2/bluez-utils-3.36$
とすでにインストールされていると返ってきます。
configure.logの中を調べると
bash:10544: $PKG_CONFIG --exists --print-errors "gmodule-2.0"
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
bash:10547: $? = 1
No package 'gmodule-2.0' found
bash:10574: result: no
bash:10586: checking for dlopen in -ldl
bash:10621: gcc -o conftest -Wall -O2 conftest.c -ldl >&5
bash:10627: $? = 0
bash:10645: result: yes
bash:10659: checking for DBUS
bash:10666: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0"
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
bash:10669: $? = 1
bash:10682: $PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0"
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
bash:10685: $? = 1
No package 'dbus-1' found
bash:10712: result: no
bash:10714: error: D-Bus library is required
とありました
dbusらしきものはあちこちにあるのですが
dbus-1.pcを探しても見当たりません
非常に初歩的な質問ですが、よろしくお願いします
オフライン
bluez-utils はリポジトリにあります。
sudo apt-get install bluez-utils
でインストール出来ます。
オフライン
yama さん
ありがとうございます
インストールしてみましたが
$sudo apt-get install bluez-utils
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
bluez-utils はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 154 個。
とインストール済みと返ってきました。
実は、UbuntuでBluetoothを使いたいのではなく
単にこのBlueZのパッケージをインストールしたいので
表題もあえてBluetoothとは書きませんでした。
あるいは逆に、インストールされているbluezをアンインストールしないといけないということでしょうか?
オフライン
>bash: error: D-Bus library is required
D-Bus libraryの dev パッケージを入れないとダメでしょう。
configure時に、エラーが出る場合は、そのパッケージの機能を呼び出すよ。
インターフェースが書かれた、dev パッケージをインストールしてね!
ということです。
オフライン
ai による投稿:
実は、UbuntuでBluetoothを使いたいのではなく
単にこのBlueZのパッケージをインストールしたいので
表題もあえてBluetoothとは書きませんでした。
そうでしたか。
sudo apt-get build-dep パッケージ名
でそのパッケージをビルドするのに必要なライブラリなどがインストールできます。
今回の場合、
sudo apt-get build-dep bluez-utils
で関連するパッケージがインストールされますから、それから ./configure してみてください。
オフライン
si さん
si による投稿:
>bash: error: D-Bus library is required
インターフェースが書かれた、dev パッケージをインストールしてね!
ということです。
ありがとうございます、勉強になります。
yama さん
yama による投稿:
コード:
sudo apt-get build-dep bluez-utilsで関連するパッケージがインストールされますから、それから ./configure してみてください。
できました。今まであれこれやっていたのがうそのように、うまくconfigureできました。
ありがとうございます。
オフライン