Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Issues related to software problems
Zoro
Posts: 29
Joined: 2007/12/15 11:05:30
Location: USA

Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby Zoro » 2011/08/25 23:00:14

Dear friends,

With the help of this forum, the RSS2HTML Perl Parser program is working great receiving RSS feeds every night through crontab from participating websites in our community.

We would like to create a javascript solution for other websites who want to display our own RSS feed. We currently have a rss.xml file in the root directory available for people to subscribe to. The javascript solution which we would like to implement in order to help others to easily display our content on their websites is XML-RSS-JavaScript.

Since XML::RSS::JavaScript is within the XML::RSS family which we have already installed (see link above), we believed it was installed. However, the Perl application we're using to generate "rssfeed.js", states that XML::RSS::Javascript is not installed. Therefore, we tried unsuccessfully to install it using the preferred method of yum:

Code: Select all

yum install perl-XML-RSS-JavaScript

We appreciate any help from the CentOS community. Thank you.

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby lystor » 2011/08/26 07:39:29

Zoro wrote:
yum install perl-XML-RSS-JavaScript

Hi
There are no packages that provide perl-XML-RSS-JavaScript dependency.
You can try to create XML-RSS-JavaScript rpm using cpan2rpm tool.

To install cpan2rpm:
1) Add third-party ATrpms repository;
2) Install cpan2rpm rpm:

Code: Select all

# yum install cpan2rpm

Zoro
Posts: 29
Joined: 2007/12/15 11:05:30
Location: USA

Re: Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby Zoro » 2011/08/27 00:12:25

Thank you for your help. I added ATrpms as a repository as shown by the actual steps below.
However, since this server is CentOS/Bluequartz 4.x, the Bluequartz repository seems to be down.
I will keep trying "yum update" and "yum update cpan2rpm", and hope Bluequartz is fixed soon.

Code: Select all

[root@www packages]# wget http://packages.atrpms.net/RPM-GPG-KEY.atrpms
--18:52:42--  http://packages.atrpms.net/RPM-GPG-KEY.atrpms
           => `RPM-GPG-KEY.atrpms'
Resolving packages.atrpms.net... 160.45.254.26
Connecting to packages.atrpms.net|160.45.254.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,614 (1.6K) [text/plain]

100%[======================================>] 1,614   --.--K/s             

18:52:43 (76.96 MB/s) - `RPM-GPG-KEY.atrpms' saved [1614/1614]

[root@www packages]# rpm --import RPM-GPG-KEY.atrpms
[root@www packages]# yum install cpan2rpm
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00     
rpmforge                  100% |=========================| 1.1 kB    00:00     
http://bluequartz.org/pub/BlueQuartz/5100R/CentOS4/bluequartz/i386/repodata/repomd.xml: [Errno 12]

Timeout: <urlopen error timed out>
Trying other mirror.
Cannot open/read repomd.xml file for repository: BlueQuartz
failure: repodata/repomd.xml from BlueQuartz: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from BlueQuartz: [Errno 256] No more mirrors to try.

Zoro
Posts: 29
Joined: 2007/12/15 11:05:30
Location: USA

Re: Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby Zoro » 2011/08/27 08:02:09

An update to my previous message. Bluequartz repository is now working.
However, the cpan2rpm did not install... actual results shown below.

Code: Select all

[root@www packages]# wget http://packages.atrpms.net/RPM-GPG-KEY.atrpms
--18:52:42--  http://packages.atrpms.net/RPM-GPG-KEY.atrpms
           => `RPM-GPG-KEY.atrpms'
Resolving packages.atrpms.net... 160.45.254.26
Connecting to packages.atrpms.net|160.45.254.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,614 (1.6K) [text/plain]

100%[==============================>] 1,614  --.--K/s             

18:52:43 (76.96 MB/s) - `RPM-GPG-KEY.atrpms' saved [1614/1614]

[root@www packages]# rpm --import RPM-GPG-KEY.atrpms
[root@www packages]# yum install cpan2rpm
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
No Match for argument: cpan2rpm
Nothing to do

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby lystor » 2011/08/27 08:14:39

/etc/yum.repos.d/atrpms.repo:

Code: Select all

[atrpms]
name=ATrpms
baseurl=http://dl.atrpms.net/el4-i386/atrpms/stable/
gpgcheck=1


Code: Select all

# yum install cpan2rpm

Zoro
Posts: 29
Joined: 2007/12/15 11:05:30
Location: USA

Re: Installing XML::RSS::JavaScript on CentOS/Bluequartz 4.x

Postby Zoro » 2011/08/27 23:01:17

lystor, thank you for the additional repo information. It installed successfully!

For others who may be in a similar situation, the ATrpms repo installation information did not have the correct settings for a CentOS 4.x system. I'm posting the steps that worked below for posterity.

Now, since this is the first time I'm using the cpan2rpms software, I will need to read the notes to figure out how to install XML::RSS::JavaScript and be able to generate "rssfeed.js" on the website. Any additional advice will be appreciated and thank you to lystor and the open-source community.

Code: Select all

[userid@www ~]$ [b]su[/b]

ENTER YOUR ROOT ADMINISTRATOR PASSWORD

Code: Select all

[root@www userid]# [b]cd /home/packages[/b]

Code: Select all

[root@www packages]# [b]wget http://packages.atrpms.net/RPM-GPG-KEY.atrpms[/b]
--18:52:42--  http://packages.atrpms.net/RPM-GPG-KEY.atrpms
           => `RPM-GPG-KEY.atrpms'
Resolving packages.atrpms.net... 160.45.254.26
Connecting to packages.atrpms.net|160.45.254.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,614 (1.6K) [text/plain]

100%[==============================>] 1,614  --.--K/s             

18:52:43 (76.96 MB/s) - `RPM-GPG-KEY.atrpms' saved [1614/1614]

Code: Select all

[root@www packages]# [b]rpm --import RPM-GPG-KEY.atrpms[/b]

Code: Select all

[root@www packages]# [b]cd /etc/yum.repos.d[/b]

Code: Select all

[root@www yum.repos.d]# [b]pico atrpms.repo[/b]

INSERT THE FOLLOWING CODE INTO atrpms.repo and CTRL-O to save, CTRL-X to exit.

Code: Select all

[atrpms]
name=ATrpms
baseurl=http://dl.atrpms.net/el4-i386/atrpms/stable/
gpgcheck=1

Code: Select all

[root@www yum.repos.d]# [b]yum install cpan2rpm[/b]
Setting up Install Process
Setting up repositories
atrpms                    100% |=========================| 2.6 kB    00:00     
update                    100% |=========================|  951 B    00:00     
rpmforge                  100% |=========================| 1.1 kB    00:00     
BlueQuartz                100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Reading repository metadata in from local files
bf42666bfc39f0da767ef35a9 100% |=========================| 751 kB    00:06     
atrpms    : ################################################## 2969/2969
primary.xml.gz            100% |=========================| 722 kB    00:05     
sqlite cache needs updating, reading in metadata
update    : ################################################## 1665/1665
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for cpan2rpm to pack into transaction set.
cpan2rpm-2.026-12.el4.at. 100% |=========================| 2.9 kB    00:00     
---> Package cpan2rpm.noarch 0:2.026-12.el4.at set to be updated
--> Running transaction check
--> Processing Dependency: atrpms-perl-module-helper for package: cpan2rpm
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for atrpms to pack into transaction set.
atrpms-74-1.noarch.rpm    100% |=========================| 6.8 kB    00:00     
---> Package atrpms.noarch 0:74-1 set to be updated
--> Running transaction check

Dependencies Resolved

==========================================
 Package                 Arch       Version          Repository        Size
==========================================
Installing:
 cpan2rpm                noarch     2.026-12.el4.at  atrpms             51 k
Installing for dependencies:
 atrpms                  noarch     74-1             atrpms             19 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 69 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): atrpms-74-1.noarch 100% |=========================|  19 kB    00:00     
(2/2): cpan2rpm-2.026-12. 100% |=========================|  51 kB    00:00     
warning: only V3 signatures can be verified, skipping V4 signature
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: atrpms                       ######################### [1/2]
warning: only V3 signatures can be verified, skipping V4 signature
  Installing: cpan2rpm                     ######################### [2/2]

Installed: cpan2rpm.noarch 0:2.026-12.el4.at
Dependency Installed: atrpms.noarch 0:74-1
Complete!
[root@www yum.repos.d]#