tsee;434401 Wrote: > no, no! Don't try older versions of AutoXS::Header. Something like that > is actually the culprit. You need the newest version for the newest > Class::XSAccessor::Array. And that's what you want. > > Instead, the problem is that your newly installed modules aren't used > by the SqueezeCenter. In general, perl has a set of paths (much like > with your shell's $PATH) that it searches for installed modules. This > set is available for inspection and modification as the @INC array from > Perl. There's (generally speaking) two types of paths in that array. The > first type is those paths that were set when your perl was compiled > originally. For system-wide installations, this is typically paths like > /usr/lib/perl5, etc. Additionally, an application such as SqueezeCenter > comes with its own, bundled libraries. One would typically prepend the > location of these bundled libraries to the list of paths in @INC. Now, > when you try to load a module that has a new version installed into the > system and an old one in the application library, the application will > have inserted its own library paths *before* the system paths. The old > version in the application library will be found first and thus used. > Therefore, in order to make SqueezeCenter use your custom > Class::XSAccessor::Array, you must make sure it is found before the old > version. You can do so by either replacing the old (broken) version in > the SqueezeCenter installation, or by making sure your own version comes > first in the @INC of SqueezeCenter (which may or may not be possible, > I'm not expert wrt. the application).
Thanks for that and sorry that I misunderstood about the versions. Is it as simple as copying the newer versions into the /opt/squeezecenter/CPAN directory, or do I need to do: perl Makefile.pl --PREFIX=/opt/squeezecenter/CPAN make make test make install Generally speaking, when squeezecenter gives an error related to missing modules it usually says use CPAN to install, but this installs into the default locations specified in @INC and not the /opt/squeezecenter/CPAN directory. I think this is also a likely cause for me not knowing which module is actually being used. -- r00tuk ------------------------------------------------------------------------ r00tuk's Profile: http://forums.slimdevices.com/member.php?userid=31173 View this thread: http://forums.slimdevices.com/showthread.php?t=64767 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
