the pair of quotes are necessary after the -e (null argument - but it needs an argument in any case). If there's an error it'll exit without the -e "", but without an error it'll just sit there waiting for you. The -e is not important in the grand scheme of things.
to remove the symlink, just "rm /usr/bin/perl" -- but note that CentOS might want there to be a perl there (i'm not sure about dependencies in that OS), so you may just as well "mv /usr/bin/perl58 /usr/bin/perl" to undo what you'd done earlier. To build cpan is a bit involved and somewhat off topic here so I'll refer you to the documentation on http://www.cpan.org, but you may not need to build it... check first to see if it came with your perl installation by attempting to run "/usr/local/bin/cpan" - if this works, then you're off the hook. Just make sure to run cpan and perl with the fully-qualified path instead of just the command name. Also, when it comes time to install RT, I think you will have to specify that perl is located at /usr/local/bin/perl instead of /usr/bin/perl Regards, Stephen J Alexander MPBX, LLC http://mpbx.com 832-713-6729 On Sun, Apr 22, 2012 at 12:39 PM, Scott Sjodin <[email protected]>wrote: > Stephen, > > I figured out I was doing the bash command incorrectly. > > I navigated to /usr/local/bin/ and executed perl -mXML::RSS (without the > -e) and it gave the following error: > > Can't locate XML/Parser.pm in @INC (@INC contains: >> /usr/local/lib/perl5/site_perl/5.12.1/i686-linux-thread-multi >> /usr/local/lib/perl5/site_perl/5.12.1 >> /usr/local/lib/perl5/5.12.1/i686-linux-thread-multi >> /usr/local/lib/perl5/5.12.1 .) at >> /usr/local/lib/perl5/site_perl/5.12.1/XML/RSS.pm line 7. >> BEGIN failed--compilation aborted at >> /usr/local/lib/perl5/site_perl/5.12.1/XML/RSS.pm line 7. >> Compilation failed in require. >> BEGIN failed--compilation aborted. > > > I tried the other command but nothing results. With the -e it gives the > "no code specified for -e" error. The same two questions from earlier still > apply though. > > Any help is appreciated, thanks for what you've assisted with so far. > > Scott > > On Sun, Apr 22, 2012 at 9:15 PM, Scott Sjodin <[email protected]>wrote: > >> Stephen, >> >> Thanks for the prompt reply. >> >> Unless I entered the bash command incorrectly (which is entirely >> possible) both of those came back with "no code specified for -e" >> >> So two questions now since I've clearly mixed the environments (and I'm >> quite new to bash): >> 1. How do I remove that symlink? >> 2. How do I build CPAN in the new environment? >> >> Thanks so much for the reply again. >> >> >> On Sun, Apr 22, 2012 at 6:27 PM, Stephen J Alexander < >> [email protected]> wrote: >> >>> It sounds like you might have mixed your perl environments, which might >>> be an unhealthy thing. You should get rid of the symlink; it is liable to >>> cause problems for you. >>> >>> I suggest you determine whether cpan installed the XML::RSS under >>> /usr/lib or /usr/local/lib: >>> /usr/local/bin/perl -mXML::RSS -e "" >>> If that throws an error, that means that you're using the wrong cpan >>> (from the /usr/ vs the /usr/local install) >>> >>> In which case try the following to determine whether cpan is also in the >>> new environment: >>> /usr/local/bin/perl -mCPAN -e "" >>> If this throws errors then you need to build cpan for the new >>> environment. >>> >>> Regards, >>> >>> Stephen J Alexander >>> MPBX, LLC >>> http://mpbx.com >>> 832-713-6729 >>> >>> >>> >>> On Sun, Apr 22, 2012 at 8:37 AM, Scott Sjodin <[email protected]>wrote: >>> >>>> Hi there, >>>> >>>> So I've stood up a CentOS 5 server. I've downloaded and extracted RT >>>> 4.0.5. Through the make fixdeps and testdeps I've had to do a lot of >>>> wrangling to get all the dependencies to install correctly. I had to >>>> upgrade Perl from 5.8 to 5.12 (so I believe I have 2 Perl installs at this >>>> point). >>>> >>>> Getting right to it, I only have one dependency that's missing. When I >>>> run make testdeps | grep MISSING I get the following: >>>> >>>> >>>>> XML::RSS ...MISSING >>>>> SOME DEPENDENCIES WERE MISSING. >>>>> XML::RSS ...MISSING >>>>> make: *** [testdeps] Error 1 >>>> >>>> >>>> When I open up CPAN and attempt to install, I get the following: >>>> >>>> install XML::RSS >>>>> Going to read '/root/.cpan/Metadata' >>>>> Database was generated on Sat, 21 Apr 2012 21:19:04 GMT >>>>> XML::RSS is up to date (1.49). >>>> >>>> >>>> I renamed the old perl to be "perl58" (so if I absolutely need it in >>>> the future, I can rename it back). Then I made a symbolic link to the new >>>> perl binary so that the location of the old binary still pointed to it >>>> >>>> mv /usr/bin/perl /usr/bin/perl58 >>>> >>>> ln -s /usr/local/bin/perl /usr/bin/perl >>>> >>>> Is there something I missed? Any thoughts? Thanks in advance. >>>> >>>> Scott >>>> >>>> >>> >>> >> >
