• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: MQ Broker : RSMB (Really Small Message Broker) or Mosquitto  (Read 5276 times)
xmlking
Newbie
*

Karma: 2
Posts: 6


View Profile
« on: February 17, 2010, 07:43:13 PM »

Hi
I like to  install MQ Broker :   RSMB (Really Small Message Broker)  or Open source  Mosquitto.
Source code is available for Mosquitto http://mosquitto.atchoo.org/
I am new to Linux.  Looking for help compiling and building Mosquitto on SheevaPlug.
Thanks
Logged

cbxbiker62
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #1 on: February 17, 2010, 11:20:36 PM »

I'm actually cbxbiker61, but I'm posting as cbxbiker62, since my account has some permission issue which locks me out of certain topics at the moment.  Rabeeh, could you fix that for me please?  It's been that way since my account was changed to Global Moderator.

Mosquitto is trivial to compile.  It has a dependency on sqlite3.  I've compiled a version for you in the testing directory of http://sheeva.with-linux.com/sheeva/.  It's a tar.xz file as .txz.  Extract it in the root directory.  Anyway you should run ldd against the binary to make sure it doesn't have any missing dependencies.  It may not work since my Sheeva is running with an EGLibC 2.11 clib and my sqlite3 is current also.  I can't help you if the dependencies don't work out.  At some point I may release a distribution that makes it extremely easy to add/build new packages (such as Mosquitto).
Logged

xmlking
Newbie
*

Karma: 2
Posts: 6


View Profile
« Reply #2 on: February 19, 2010, 02:15:56 AM »

I had no luck installing Mosqitto-0.4.2.txz. Here are the steps I followed.
1.)   Uncompressed Mosqitto-0.4.2.txz   to /usr/local/mosquitto/Mosqitto-0.4.2.tar using  7-zip(on windows PC)[donít have XZ Utils on my PogoBox]

2.)   Extracted Mosqitto-0.4.2.tar in root  dir from root dir
          root@Pogoplug /]# tar -xvf /usr/local/mosquitto/Mosqitto-0.4.2.tar
          ./
          ./usr/
          ./usr/share/
          ./usr/share/man/
          ./usr/share/man/man8/
          ./usr/share/man/man8/mosquitto.8.gz
          ./usr/share/man/man5/
          ./usr/share/man/man5/mosquitto.conf.5.gz
          ./usr/share/doc/
          ./usr/share/doc/Mosqitto/
          ./usr/share/doc/Mosqitto/COPYING
          ./usr/share/doc/Mosqitto/ChangeLog.txt
          ./usr/sbin/
          ./usr/sbin/mosquitto
          ./etc/
          ./etc/mosquitto.conf

3.)   Run ldd
[root@Pogoplug sbin]# ldd mosquitto
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x40027000)
        libc.so.6 => /lib/libc.so.6 (0x400a4000)
        libdl.so.2 => /lib/libdl.so.2 (0x401ed000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401f9000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x4021b000)
        /lib/ld-linux.so.3 (0x40000000)

4.)   From /usr/sbin run ./mosquitto
         [root@Pogoplug sbin]# ./mosquitto
         Error: Invalid user 'mosquitto'

5.)   Added user [adduser mosquito]

6.)   From /usr/sbin run ./mosquito
        [root@Pogoplug sbin]# ./mosquitto
        Segmentation fault

7.)   Also tried after adding sqlite3-pcre.so[git://github.com/oojah/sqlite3-pcre.git]
        [root@Pogoplug sbin]# ./mosquitto
        Segmentation fault

PS: My Hardware : DockStar OS : Linux Pogoplug 2.6.22.18 #57 Mon Aug 31 16:31:01 PDT 2009 armv5tejl ARM926EJ-S rev 1 (v5l) Feroceon-KW GNU/Linux
Logged

xmlking
Newbie
*

Karma: 2
Posts: 6


View Profile
« Reply #3 on: February 19, 2010, 03:28:44 AM »

well after updating system [pacman -Syu] and reboot it worked

-------------------
/usr/sbin
[root@Pogoplug sbin]# ./mosquitto
Error: ./sqlite3-pcre.so: cannot open shared object file: No such file or directory
Retrying with regex_ext_path=/usr/lib/sqlite3-pcre.so
mosquitto version 0.4.2 (build date 2010-02-17 21:33:29-0700) starting
Opening listen socket on port 1883.
-----------------


Note: I had sqlite3-pcre.so compiled and copied to /usr/lib/

hope "Error: ./sqlite3-pcre.so: cannot open shared object file: No such file or directory" can be fixed in final release...

Thanks
Logged

Pages: [1]
Print
Jump to: