sudo aptget install mosquitto だけで OK でした
結果
pi@raspberrypi ~ $ sudo apt-get install mosquitto
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mosquitto
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 64.3 kB of archives.
After this operation, 180 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mosquitto armhf 0.15-2 [64.3 kB]
Fetched 64.3 kB in 1s (41.6 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package mosquitto.
(Reading database ... 93832 files and directories currently installed.)
Unpacking mosquitto (from .../mosquitto_0.15-2_armhf.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up mosquitto (0.15-2) ...
insserv: warning: script 'uv4l_uvc' missing LSB tags and overrides
[ ok ] Starting Mosquitto message broker: mosquitto.
pi@raspberrypi ~ $
しかし、これにはクライアント(mosquitto_sub, mosquitto_pub) が含まれていませんでした!
そこで、ソースからビルド、以下を参考にさせていただきました
http://flyerback.blogspot.jp/2014_04_01_archive.html
sudo apt-get install libwrap0-dev libssl-dev
wget http://mosquitto.org/files/source/mosquitto-1.3.4.tar.gz
tar zxf mosquitto-1.3.4.tar.gz
cd mosquitto-1.3.4/
make
しかし、ares.h がない、というエラーになるのでこれもインストールして再度 make
sudo apt-get install libc-ares-dev
make
sudo make install
sudo ldconfig
これで、mosquito_sub も mosquito_pub もできました