Thanks Joel.

To whom it may concern?
Who would be the correct person to ensure that the manual cpan install methods 
are more clearly linked to the wiki pages? The point is that it wasn't clear to 
Fabio how to go through it. And when I looked, I saw the line that started with 
'Note 1: On Windows' and skipped to the next line. It was only when I was 
searching for the failure of libXi that I found the page that was indicated at 
the end of the same line. Agreed that the documentation exists, finding it was 
not painfully easy. The definitive source for installing PDL is the website. I 
know that the website does reference the wiki in this instance, but improving 
the clarity of which it is displayed would help the next person. I see it was 
not clear that I was trying to replicate Fabio's experience.

Since the suggested easy cpan install failed for Ubuntu 12.04/12.10, can 
someone modify the website instructions to more clearly identify the correct 
methods?

Thanks, Cliff.

From: Joel Berger [mailto:[email protected]]
Sent: April 22, 2013 4:38 PM
To: Dima Kogan
Cc: [email protected]
Subject: Re: [Perldl] PDL on Ubuntu 12.10?

I also wrote this: 
http://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_Using_cpanm

On Mon, Apr 22, 2013 at 5:32 PM, Dima Kogan 
<[email protected]<mailto:[email protected]>> wrote:
Clifford Sobchuk 
<[email protected]<mailto:[email protected]>> writes:

> Hi Folks/Fabio, I think I tracked down all of the dependencies for installing 
> the 3d stuff and Gnuplot in PDL from cpan for Ubuntu 12.04/12.10.
> The following must be install via 'sudo apt-get install'
> 1) build-essentials (I usually have this done but others might not install 
> them)
> 2) freeglut3-dev (I was missing this)
> 3) libXi-dev (I was missing this as well, however, as per the complete manual 
> install instructions on the PDL webpage: 
> http://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_PDL_Manually
>  , which is actually a little out of the way to find because the statement 
> containing the information starts out with 'Note 1: On Windows'. We should 
> probably separate it in to a separate note.)
> 4) Then in cpan 'install OpenGL' (I tried to jump straight to install 
> PDL::Graphics::TriD and it still failed - guessing that the dependencies are 
> checked only at the install PDL level).
> 5) Then in cpan 'install PDL::Graphics::TriD'
>
> Now the 3d and 3d2 demos work on the physical machine that I previously 
> hadn't tried them on. No idea why I had problems with PDL::Graphics::Gnuplot. 
> I uninstalled gnuplot and re-installed on Ubuntu 12.04 and it worked.  In 
> Ubuntu 12.10 you have to use one more step
> 6) 'sudo apt-get install gnuplot-x11'
>
> Thanks, Cliff.

[ gets back up on his soapbox extolling the virtues of APT ]

This information is present in the definition of PDL's debian package.
I.e. Henning has already gone through the exercise you just went
through: to enumerate the depenency packages. The magic command you want
is "apt-get build-dep". So from a fresh Debian/sid box:


root@shorty:/tmp# apt-get build-dep pdl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
The following NEW packages will be installed:
  adduser bsdmainutils ca-certificates debhelper fftw-dev fftw2 file 
fontconfig-config freeglut3 freeglut3-dev
  gettext gettext-base gfortran gfortran-4.7 groff-base html2text 
intltool-debian libalgorithm-c3-perl
  libapp-nopaste-perl libasprintf-dev libasprintf0c2 libastro-fits-cfitsio-perl 
libastro-fits-header-perl
  libb-hooks-endofscope-perl libb-keywords-perl libb-utils-perl 
libbrowser-open-perl libcf0 libcfitsio3
  libclass-c3-perl libclass-load-perl libclass-load-xs-perl libclone-perl 
libcroco3 libcsiro0 libcurl3-gnutls
  libdata-dump-streamer-perl libdata-dumper-concise-perl libdata-optlist-perl 
libdevel-caller-perl
  libdevel-globaldestruction-perl libdevel-lexalias-perl libdevel-repl-perl 
libdrm2 libencode-locale-perl
  libeval-closure-perl libexpat1 libexpat1-dev libextutils-f77-perl libffi5 
libfile-homedir-perl
  libfile-listing-perl libfile-next-perl libfile-which-perl libfontconfig1 
libfontconfig1-dev libfreetype6
  libfreetype6-dev libgcrypt11 libgd2-xpm libgd2-xpm-dev 
libgetopt-long-descriptive-perl libgettextpo-dev
  libgettextpo0 libgfortran3 libgl1-mesa-dev libgl1-mesa-glx libglapi-mesa 
libglib2.0-0 libglu1-mesa
  libglu1-mesa-dev libgnutls26 libgpg-error0 libgsl0-dev libgsl0ldbl 
libgssapi-krb5-2 libhdf4-0-alt
  libhdf4-alt-dev libhdf5-7 libhtml-form-perl libhtml-parser-perl 
libhtml-tagset-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl 
libhttp-message-perl libhttp-negotiate-perl
  libhttp-server-simple-perl libibverbs1 libice-dev libice6 libidn11 
libinline-perl libio-socket-ssl-perl
  libio-string-perl libio-stringy-perl libjbig0 libjpeg8 libjpeg8-dev 
libjson-perl libk5crypto3 libkeyutils1
  libkrb5-3 libkrb5support0 libldap-2.4-2 liblexical-persistence-perl 
liblist-moreutils-perl libltdl-dev libltdl7
  liblwp-mediatypes-perl liblwp-protocol-https-perl libmagic1 
libmodule-implementation-perl
  libmodule-refresh-perl libmodule-runtime-perl libmoose-perl 
libmoosex-attributehelpers-perl
  libmoosex-getopt-perl libmoosex-object-pluggable-perl 
libmoosex-role-parameterized-perl libmro-compat-perl
  libnamespace-clean-perl libncurses5-dev libnet-http-perl libnet-ssleay-perl 
libnetcdf-dev libnetcdfc++4
  libnetcdfc7 libnetcdff5 libnetpbm10 libnuma1 libopengl-perl libopenmpi1.3 
libp11-kit0
  libpackage-deprecationmanager-perl libpackage-stash-perl 
libpackage-stash-xs-perl libpadwalker-perl
  libparams-classify-perl libparams-util-perl libparams-validate-perl 
libparse-recdescent-perl libpcre3
  libpipeline1 libplplot-c++10 libplplot-dev libplplot-fortran9 libplplot11 
libpng12-0 libpng12-dev libpopt0
  libppi-perl libproj-dev libproj0 libpthread-stubs0 libpthread-stubs0-dev 
libqhull-dev libqhull5 libqsastime-dev
  libqsastime0 librtmp0 libsasl2-2 libscope-guard-perl libsm-dev libsm6 
libssh2-1 libssl1.0.0
  libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 
libsub-install-perl libsub-name-perl
  libsys-sigaction-perl libtask-weaken-perl libtasn1-3 libtiff4 libtinfo-dev 
libtorque2 libtry-tiny-perl
  libunistring0 liburi-perl libvariable-magic-perl libwww-mechanize-perl 
libwww-perl libwww-robotrules-perl
  libx11-6 libx11-data libx11-dev libx11-xcb1 libxau-dev libxau6 libxcb-glx0 
libxcb1 libxcb1-dev libxdamage1
  libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfixes3 libxi-dev libxi6 
libxml2 libxmu-dev libxmu-headers
  libxmu6 libxpm-dev libxpm4 libxt-dev libxt6 libxxf86vm1 man-db 
mesa-common-dev netbase netpbm openssl
  pkg-config po-debconf proj-bin proj-data sharutils ttf-dejavu-core ucf 
x11-common x11proto-core-dev
  x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools 
xtrans-dev zlib1g-dev
The following packages will be upgraded:
  perl perl-base perl-modules
3 upgraded, 232 newly installed, 0 to remove and 26 not upgraded.
Need to get 59.0 MB/66.9 MB of archives.
After this operation, 159 MB of additional disk space will be used.


I asked it to install everything needed to build (and test) pdl. And APT
did it. Note that the packages you mentioned are all in this list, and I
didn't have to go look for them.

All hail the APT.

dima

_______________________________________________
Perldl mailing list
[email protected]<mailto:[email protected]>
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to