PDA

View Full Version : RSS code/script for Greymatter?



maida
03-25-2005, 11:56 AM
I have installed a Greymatter blog for a client, and have had requests from visitors to have an RSS feed for updates.

Can anyone recommend a good RSS script that will update the feed when he adds a new entry?

If you have used it with Greymatter, that would be a big plus.

Thanks!
Maida

wildjokerdesign
03-25-2005, 02:26 PM
Hello Maida,
Don't know much about RSS and perl or Greymatter and just starting to figure out RSS for php scripts but I did find the following two sites that may lead you to where you want to be. They both seem a bit old and the second one actually suggest switching to Wordpress but thought I would pass them on to you in case they would be of help. It seemed like many pages I found simply lead back to the first link.

Greymatter, RSS, and Syndication - http://webword.com/moving/rss.html

Greymatter - RSS Generator - http://ebanana.orcon.net.nz/gm-rss.html

maida
03-25-2005, 03:25 PM
When I started researching, I saw the first link, but I was looking more for a generator like the 2nd link.

I'll let you know how it goes :)

Thanks again for your time and help!

Maida

maida
03-25-2005, 06:03 PM
So I'm having issues trying to get this gm-rss.cgi to run...

http://www.strangersinparadise.com/cgi-bin/greymatter/gm-rss.cgi

I get this error in my browser:


Software error:
Can't continue after import errors at /var/www/cgi-bin/greymatter/gm-rss.cgi line 28 BEGIN failed--compilation aborted at /var/www/cgi-bin/greymatter/gm-rss.cgi line 28.

Here's the first lines of the code


1 #!/usr/bin/perl

bunch of comments

27 use strict;
28 use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
29 use CGI qw(:standard);
30 use XML::RSS;
31 use POSIX qw(strftime);

Any ideas of how I can get past this error? Am I missing a module?

wildjokerdesign
03-25-2005, 08:58 PM
Pretty sure we have CGI::Carp. I don't think we have XML::RSS or POSIX. I am baseing this on what is located in /usr/local/perl/lib/5.6.0

Here is the link to the XML::RSS module
http://search.cpan.org/~kellan/XML-RSS-1.05/lib/RSS.pm
And here is POSIX link
http://search.cpan.org/~nwclark/perl-5.8.6/ext/POSIX/POSIX.pod

More then likely you'll have to install them by setting up your own directory and such that is detailed on Jalal's site. You might want to give it a bit of time to see if Jalal checks in and has an idea on this since I am doing a lot of guessing here. :)

maida
03-26-2005, 03:06 AM
You are right, we do have CGHI::Carp. According to support, I had all the modules except XML::RSS, which they installed for me.

I still have the error. After more research, it looks like the CGI.pm is very outdated


$ perl -MCGI -le 'print $CGI::VERSION' 2.56
$ perl -v
This is perl, v5.6.0 built for i686-linux


I will check out Jalal's site on how to update.

Thanks!

Maida

jalal
03-26-2005, 01:33 PM
The latest version of CGI appears to be '3.07'.

Unfortunately, CGI.pm is 'owned' by Westhost, so you must ask them to hand ownership to you, or alternatively you need to install in /perl5lib/ as mentioned in my article.

Otherwise, installation is simply a matter of:
$ cpan
> install FCGI
> install CGI

maida
03-26-2005, 03:44 PM
I tried the install in your article, but ran into errors because the version of Perl is so old. :( Your directions were FANTASTIC, by the way!

I ended up installing WordPress instead. :oops:

I gave up on Greymatter and the script. We only had 7 entries, so I just re-entered them because the import didn't work. This whole thing has been a big pain in the neck! :x

I will try to do a new Perl upgrade and the CGI upgrade on my main account at another time, though. This client doesn't really need it for anything else.

Thanks everyone!

Maida

jalal
03-27-2005, 03:39 AM
Well, thats one way of solving the problem. :)

I can fully recommend Wordpress, I've used them on quite a few sites. And they have great forums when you need quick help.

maida
03-27-2005, 09:53 AM
Well, I did find out that they have a plan to upgrade Perl on the servers, albeit in a few months, but it's a start: :)


-----Original Message-----
From: WestHost Support Department
Sent: Sunday, March 27, 2005 12:58 AM
Subject: [westhost.com #1079684] Perl modules needed

We are planning on upgrading perl, however that would not be for at least a few months, I apologize about the inconvenience this may cause you.

Best Regards,

David Haak
Technical Support Representative
WestHost Support Department
Phone: 1-800-222-2165
FAX: 435-755-3449