Re: xmlsimple warning

Alberto
Fri, 27 Feb 2009 16:14:16 -0000

Thanks people! The script worked me just fine!

On Jan 20, 9:49 pm, ginty
<itsgi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Outstanding thanks for the replies guys!
>
> Phil your script fixed it for me, cheers!
>
> On Nov 29 2008, 2:58 am, PhilW
<p...-tSCSLn4GjLmA/W2trEHmoFaTQe2KTcn/@public.gmane.org> wrote:
>
> > On Nov 11, 5:29 am, Mathematician
<karin.ma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > I am also newbies for rails too.
> > > I found an information
athttp://www.unwin.org/ruby_on_rails/tips/xml_simple_already_initialize...
>
> > > But this is not solve my problem too.
> > > I tried to uninstall flickr but it also not solve.
>
> > I found the problem on my system to be slightly different than the one
> > described in the link. The
> > conflict was due to xmlsimple.rb being included as well as lib/
> > xmlsimple.rb which is nothing more
> > than a link to the original file.
>
> > The following script worked for me:
>
> > #!/bin/sh
>
> > cd /usr/lib/ruby/1.8
> > if [ -h lib/xmlsimple.rb ]
> > then
> >   mv lib/xmlsimple.rb lib/xmlsimple.rb.old
> >   mv xmlsimple.rb lib/.
> >   cat > xmlsimple.rb <<!
> > require ''lib/xmlsimple.rb''
> > !
> > else
> >   echo `pwd`/lib/xmlsimple.rb is not a link. Exiting.
> > fi