Hi Dima, That is the way I have always upgraded. When I try to initially install via cpan it always fails. I install via apt, then I use CPAN to upgrade. I now see what you mean about the two different directories for the two versions - apt puts it in /usr/lib/perl5 where as cpan puts it into /usr/local/lib/perl/5.14.2/PDL I don't develop PDL, I only use PDL in my scripts. I haven't run into any problems previously - apparently I have been lucky.
Fabio I was able to install the latest PDL on to Ubuntu 12.10 using 'force install PDL'. The following demos work: 3d, 3d2, pgplot, ooplot, transform, cartography, bad and bad2. Demo gnuplot (gnuplot 4.6 is installed) fails, install PDL::Graphics::Gnuplot must be manually installed - but fails. ZOWIE/PDL-Graphics-Gnuplot-1.5.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ZOWIE/PDL-Graphics-Gnuplot-1.5.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ZOWIE/PDL-Graphics-Gnuplot-1.5.tar.gz : make_test NO cpan[2]> force install PDL::Graphics::Gnuplot Running install for module 'PDL::Graphics::Gnuplot' Running make for Z/ZO/ZOWIE/PDL-Graphics-Gnuplot-1.5.tar.gz Has already been unwrapped into directory /home/cliff/.cpan/build/PDL-Graphics-Gnuplot-1.5-jLKQEY Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/manifest.t .. skipped: Author tests not required for installation t/plot.t ...... 1/156 ... hangs here with either force install or normal install. Thanks, Cliff. -----Original Message----- From: Dima Kogan [mailto:[email protected]] Sent: April 21, 2013 11:54 PM To: [email protected] Subject: Re: [Perldl] PDL on Ubuntu 12.10? Clifford Sobchuk <[email protected]> writes: > I created a new VM and loaded Lubuntu (lxde interface instead of gnome for > lower memory footprint). > > I performed > sudo apt-get install pdl pgplot5 libpgplot-perl gnuplot this install > the 2.4.11 version of PDL I then tried > cpan upgrade PDL Stop right there. You installed pdl via APT, then tried doing an update through CPAN. The "cpan" utility is an entirely separate entity from APT; it exists mostly because the various operating systems can't agree on how to manage software installations. You're free to use the "cpan" tool, of course, but be very clear that you're not upgrading the 'pdl' that you just installed via APT. What you ARE doing is installing a second copy of PDL in a different place (wherever it is "cpan" puts things). This can easily cause confusion because when you run software that uses PDL, you're not 100% sure about PDL is actually being picked up. Worse, PDL isn't monolithic, so it could be using pieces from each of those installations, and this can easily break stuff. Your problems could easily be caused by this. What are you really trying to do? Is the goal to install a later version of PDL in some way so that you can run your code that does 'use PDL' and have it work? If so, I'd recommend strongly to either build a new package with the later PDL, or to just build from source and 'use blib' in your code. Or are you trying to have a development environment so that you can build PDL sources using dependencies from APT? If so, you really should make sure only a single PDL is installed. Mixing installations can be done, but it takes great care, and I wouldn't assume at all that it's set up perfectly already. I can help with either of these goals. Ask away. dima. _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
