2008-05-14 Pidgin and Twitter

I was trying to use twitter.pl from pidgin-twitterstatus according to a blog post by Daily Gian but had some problems. Here’s how I solved them. I’ve sent this stuff to the plugin maintainer; I’m not sure what he’ll do with this.

Anyway... Gian says the following:

  1. Install Pidgin. Done. 👌
  2. Install Perl. Done. Twice. ;)
  3. Install XML::XPath. Done. But as it turns out, not ok. ⚠
  4. Launch Pidgin and check Help → About, scroll to the bottom of the page. You should see a line saying Perl: Enabled.
  5. Download twitter.pl and put it into your Pidgin plugins folder.
  6. Restart Pidgin and go to Tools → Plugins. There will be a new plugin named “Twitter Status Feed”. Enable it and click on Configure Plugin. Enter your twitter user name in the dialog box that pops up.
  7. Done. Soon you will find that your Pidgin status bar reads the same as your last Twitted message.

When I check my Pidgin About box, I see that Perl is enabled. I have a Cygwin Perl and an ActivePerl installed. When I run perl from the command line, I get Cygwin Perl. I don’t see the Twitter plugin in my list at Tools → Plugins. :(

When I switch to C:\Program Files\Pidgin\plugins and try to run Perl on twitter.el (just to check that everything works fine) I get the following problem:

C:\Program Files\Pidgin\plugins>perl -I ../perlmod twitter.pl
Can't load '../perlmod/Purple.dll' for module Purple: No such file or directory
at /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230.
 at twitter.pl line 1
Compilation failed in require at twitter.pl line 1.
BEGIN failed--compilation aborted at twitter.pl line 1.


Try again:

C:\Program Files\Pidgin\plugins>set Path=C:/Perl/bin;%Path%

C:\Program Files\Pidgin\plugins>perl -I ../perlmod twitter.pl
Can't load '../perlmod/Purple.dll' for module Purple: load_file:The specified mo
dule could not be found at C:/Perl/lib/DynaLoader.pm line 230.
 at twitter.pl line 1
Compilation failed in require at twitter.pl line 1.
BEGIN failed--compilation aborted at twitter.pl line 1.

Plus I get a message box about failing to start because libglib-2.0-0.dll was not found.

I find that Gimp comes with this library.

Try again:

C:\Program Files\Pidgin\plugins>set Path=C:\Program Files\GIMP-2.0\bin;%Path%

C:\Program Files\Pidgin\plugins>perl -I ../perlmod twitter.pl

Same output but now I get a message box about failing to start because libpurple.dll was not found. This one comes with Pidgin!

Try again, this time in the same directory as purple.dll:

C:\Program Files\Pidgin>perl -I perlmod plugins\twitter.pl

Same output but now I get a message box about failing to start because perl.dll was not found. This one is in the plugins directory.

Try again, adding all the paths:

C:\Program Files\Pidgin\plugins>set Path=C:\Program Files\Pidgin;C:\Program Files\Pidgin\plugins;%Path%

Now we’re getting somewhere:

C:\Program Files\Pidgin>perl -I perlmod plugins\twitter.pl
Can't locate XML/XPath.pm in @INC (@INC contains: perlmod C:/Perl/lib C:/Perl/si
te/lib .) at plugins\twitter.pl line 4.
BEGIN failed--compilation aborted at plugins\twitter.pl line 4.

I probably installed XML::XPath for the other Perl installation. Using ppm3.bat to install XML-XPath and trying again...

Now I finally get no output.

So now I’m prepending this to my system’s Path environment variable: C:\Program Files\Pidgin;C:\Program Files\Pidgin\plugins;C:\Program Files\GIMP-2.0\bin;C:\Perl\bin

And I get a Twitter Status Feed 0.1 plugin listed! ✌

I configured it by setting my Twitter name, added myself as my own buddy just to double check, waited for a minute, but apparently my latest Twitter status is not showing up. I check http://code.google.com/p/pidgin-twitterstatus/downloads/list again and find that there is a 0.2.1 version listed that doesn’t match what I downloaded. Weird. :question:

I close Pidgin, copy the new one into my plugins directory, delete the existing twitter.pl, restart Pidgin, reenable the plugin, check the configuration (my name is still there), and it works! My Pidgin status message is changed to my latest Twitter status message. 👌 💡



I could add twitter in gtalk and aim without much problem. Did you try that? http://twitter.com/devices

v 2008-05-14 20:52 UTC

Well, I don’t use separate clients for GTalk and AIM. I use Pidgin on Windows (at work) and Adium on a Mac (at home) for all my instant messaging needs. Both are multi-protocol clients based on libpurple (formerly libgaim).

AlexSchroeder 2008-05-14 22:52 UTC

Apparently this no longer works with the latest Active Perl which uses 5.10 – I wasted way too much time on this other Windows box trying to get it to work. Gaaah!

Also note pidgin-identica-status – which I also can’t get to work on this Windows box. Damn.

After tracking down all the stuff I still get this:

c:/Programme/Pidgin $ perl -I . -I perlmod plugins/identica.pl
Can't find 'boot_Purple' symbol in ./libPurple.dll
 at plugins/identica.pl line 1
Compilation failed in require at plugins/identica.pl line 1.
BEGIN failed--compilation aborted at plugins/identica.pl line 1.

AlexSchroeder 2008-08-13 10:20 UTC

Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.