[211a0e]: content / install.html  Maximize  Restore  History

Download this file

514 lines (409 with data), 13.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
<h1 class='title'>Install PDL</h1>
<style type="text/css">
#general-note, .howto {
margin-top: 15px;
margin-left: 210px;
margin-right: 20px;
margin-bottom: 30px;
border: 4px solid #ccc;
padding: 1em;
}
#general-note h3, #general-note p {
margin: 0;
padding: 0;
}
</style>
<div id="general-note">
<h3>New to Perl?</h3>
<p>No worries! If you are using Linux or Mac OS X, you should
already have Perl installed. If you are a Windows user, you
can use <a href="http://strawberryperl.com/">Strawberry Perl</a>
or <a href="http://www.activestate.com/activeperl">Active Perl</a>.
</div>
<script type="text/javascript">
$(document).ready(function () {
$('#easy').hide();
$('#last').hide();
$('.howto').hide();
// Install Type
$('#install input').change(function () {
$('.howto').hide();
if ($(this).val() == "easy") {
$('#last').slideUp('slow', function () {$('#easy').slideDown();});
} else {
$('#easy').slideUp('slow', function () {$('#last').slideDown();});
}
});
//
// Install Instructions
//
var prev_id = false;
function show_howto(show_id) {
if (prev_id) {
$(prev_id).slideUp('slow', function () {$(show_id).slideDown();});
} else {
$(show_id).slideDown();
}
prev_id = show_id;
}
// Easy Install
$('#easy input').change(function () {
show_howto('#easy-'+$(this).val());
});
// Last Install
$('#last input').change(function () {
show_howto('#last-'+$(this).val());
});
});
</script>
<table>
<tr>
<td>
<div id="install">
<h3>I am looking for ...</h3>
<input type="radio" name="type" value="easy" id="radio-easy"/>
<label for="radio-easy">The easiest possible install.</label>
<br/>
<input type="radio" name="type" value="last" id="radio-last1"/>
<label for="radio-last1">The latest version of PDL.</label>
<br/>
<input type="radio" name="type" value="last" id="radio-last2"/>
<label for="radio-last2">A customized installation.</label>
</div>
</td>
<td>
<div id="easy">
<h3>Pre-Built Binaries</h3>
<h4>My platform is ...</h4>
<table>
<tr>
<td>
<input type="radio" name="os" value="win" id="radio-easy-win"/>
<label for="radio-easy-win">Windows.</label><br/>
<input type="radio" name="os" value="deb" id="radio-easy-deb"/>
<label for="radio-easy-deb">Ubuntu / Debian.</label><br/>
<input type="radio" name="os" value="fed" id="radio-easy-fed"/>
<label for="radio-easy-fed">Fedora.</label>
</td>
<td>
<input type="radio" name="os" value="mac" id="radio-easy-mac"/>
<label for="radio-easy-mac">Mac OS X.</label><br/>
<input type="radio" name="os" value="man" id="radio-easy-man"/>
<label for="radio-easy-man">Mandriva.</label><br/>
<input type="radio" name="os" value="sus" id="radio-easy-sus"/>
<label for="radio-easy-sus">OpenSUSE.</label>
</td>
<td>
<input type="radio" name="os" value="gen" id="radio-easy-gen"/>
<label for="radio-easy-gen">Gentoo.</label>
</td>
</tr>
</table>
</div>
<div id="last">
<h3>Source Installation</h3>
<h4>My platform is ...</h4>
<table>
<tr>
<td>
<input type="radio" name="os" value="win" id="radio-last-win"/>
<label for="radio-last-win">Windows.</label><br/>
<input type="radio" name="os" value="deb" id="radio-last-deb"/>
<label for="radio-last-deb">Ubuntu / Debian.</label><br/>
<input type="radio" name="os" value="fed" id="radio-last-fed"/>
<label for="radio-last-fed">Fedora.</label><br/>
<input type="radio" name="os" value="man" id="radio-last-man"/>
<label for="radio-last-man">Mandriva.</label><br/>
</td>
<td>
<input type="radio" name="os" value="mac" id="radio-last-mac"/>
<label for="radio-last-mac">Mac OS X.</label><br/>
<input type="radio" name="os" value="cpn" id="radio-last-cpn"/>
<label for="radio-last-cpn">CPAN (all platforms).</label><br/>
<input type="radio" name="os" value="src" id="radio-last-src"/>
<label for="radio-last-src">Manual install (all platforms).</label>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<? $PDL = "PDL"; ?>
<? $Wiki = "http://sourceforge.net/apps/mediawiki/pdl/index.php?"
. "title=Installing_PDL_on_" ?>
<!-- ===============================
EASY INSTALL INSTRUCTIONS
=============================== -->
<div class="howto" id="easy-mac">
<h3>Easiest install - Mac O X</h3>
<p>Install <a href="http://sourceforge.net/projects/pdl/files/">
"SciPDL" binary</a>.</p>
</div>
<div class="howto" id="easy-deb">
<h3>Easiest install - Ubuntu / Debian</h3>
<pre>apt-get install pdl pgplot5 libpgplot-perl</pre>
</div>
<div class="howto" id="easy-fed">
<h3>Easiest install - Fedora</h3>
<pre>yum install perl-PDL perl-PDL-Graphics-PLplot plplot-perl</pre>
<p><b>Note:</b> Does not include PGPLOT.</p>
</div>
<div class="howto" id="easy-gen">
<h3>Easiest install - Gentoo Linux</h3>
<p>Update the available list of packages by typing on a terminal as root</p>
<pre>emerge --sync</pre>
<p>Install the relevant PDL Gentoo packages by typing (again as root)</p>
<pre>emerge dev-perl/PDL</pre>
<p><b>Note:</b> There is a known issue with writing 16bit PNG/PNM/PGM/PPM images.</p>
</div>
<div class="howto" id="easy-man">
<h3>Easiest install - Mandriva</h3>
<pre>urpmi perl-PDL</pre>
<p><b>Note:</b> Does not include PGPLOT, PLplot, OpenGL.</p>
</div>
<div class="howto" id="easy-sus">
<h3>Easiest install - OpenSUSE</h3>
<pre>yast -i perl-PDL</pre>
<p><b>Note:</b> Does not include PGPLOT, PLplot, OpenGL.</p>
</div>
<div class="howto" id="easy-win">
<h3>Easiest install - Windows</h3>
<p>To install via ppm for <a href="http://strawberryperl.com/">Strawberry
Perl</a> (32-bit only) and <a href="http://www.activestate.com/activeperl">ActiveState
Perl</a> (32-bit and 64-bit):</p>
<pre>
ppm install Astro-FITS-Header
ppm install Convert-UU
</pre>
Then install the OpenGL, PGPLOT and PDL modules from the sisyphusion repo by running:
For 32-bit builds of perl (versions 5.8 and later):
<pre>
ppm install http://www.sisyphusion.tk/ppm/OpenGL.ppd
ppm install http://www.sisyphusion.tk/ppm/PGPLOT.ppd
ppm install http://www.sisyphusion.tk/ppm/PDL.ppd
</pre>
For 64-bit builds of perl, ppm packages are provided only for perl versions 5.10 and later.
Also, there are no PGPLOT packages for these builds - so just run:
<pre>
ppm install http://www.sisyphusion.tk/ppm/OpenGL.ppd
ppm install http://www.sisyphusion.tk/ppm/PDL.ppd
</pre>
<p>For more details
see <a href="<?= $Wiki ?>Windows">Installing
PDL on Windows</a> on the wiki
or <a href="http://search.cpan.org/src/CHM/PDL-2.4.8/win32/INSTALL">win32/INSTALL</a>
file in the PDL source distribution.</p>
</div>
<!-- ===============================
LATEST INSTALL INSTRUCTIONS
=============================== -->
<div class="howto" id="last-win">
<h3>Source install - Windows</h3>
<ol>
<li><a href="http://www.cygwin.com/">Install Cygwin</a></li>
<li>See <a href="<?= $Wiki ?>Cygwin">"Installing PDL on
Cygwin"</a> on the wiki.</li>
</ol>
</div>
<div class="howto" id="last-deb">
<h3>Source install - Ubuntu / Debian</h3>
<p>
<b>Tested:</b> Ubuntu 10.04 LTS (Lucid Lynx).<br/>
<b>Tested:</b> Debian 5.05 Stable (Lenny).
</p>
<dl>
<dt>Notes:</dt>
<dd>
Ubuntu users: Run these commands with <tt>sudo</tt>.<br/>
Debian users: Run these commands as root.
</dd>
</dl>
<b>Required:</b> Build system (Debian only)
<pre>apt-get install gcc make</pre>
Recommended: PGPLOT library (Debian: <a href="http://packages.debian.org/search?keywords=pgplot">
enable lenny/non-free and squeeze/contrib</a>)
<pre>apt-get install libpgplot-perl</pre>
Recommended: PLplot library (Problems with Debian)
<pre>apt-get install libplplot-dev</pre>
Recommended: Improved PDL shell
<pre>
apt-get install libdevel-repl-perl
cpan Devel::REPL
</pre>
Recommended: Proj4 library (Debian: <a href="http://packages.debian.org/search?keywords=libproj-dev">
enable squeeze/main</a>)
<pre>apt-get install libproj-dev</pre>
Optional: Minuit and Slatec libraries
<pre>apt-get install gfortran libextutils-f77-perl</pre>
Optional: NetPBM image utilities
<pre>apt-get install netpbm</pre>
Optional: GD image library
<pre>apt-get install libgd2-xpm-dev</pre>
Optional: GNU Scientific Library
<pre>apt-get install libgsl0-dev</pre>
Optional: FFTW library
<pre>apt-get install fftw-dev</pre>
Optional: HDF4 library (Debian: <a href="http://packages.debian.org/search?keywords=libhdf4-dev">
enable squeeze/main</a>)
<pre>apt-get install libhdf4-dev</pre>
Install PDL.
<pre>cpan <?= $PDL ?></pre>
<p><b>Note</b>: The pgplot test opens a window and you have
to close it. If the install seems to "hang", look for an open
pgplot window.</p>
<p><b>Missing:</b> NDF support.</p>
</div>
<div class="howto" id="last-fed">
<h3>Source install - Fedora</h3>
<p><b>Tested:</b> Fedora Core 13 &amp; 14.</p>
<p><b>Note:</b> You must run the following commands a root.</p>
<b>Required</b>: Build environment.
<pre>yum install gcc</pre>
Recommended: 3D Graphics
<pre>
yum install libXi-devel libXmu-devel freeglut-devel perl-OpenGL
</pre>
Recommended: PLplot library
<pre>yum install plplot-devel</pre>
Recommended: Improved PDL shell
<pre>
yum install perl-Devel-REPL perl-Term-ReadLine-Gnu
</pre>
Recommended: Proj4 library
<pre>yum install proj-devel proj-nad</pre>
Optional: Minuit and Slatec libraries (you must disable SELinux).
<pre>yum install compat-gcc-34-g77 perl-ExtUtils-F77</pre>
Optional: NetPBM image utilities
<pre>yum install netpbm-progs</pre>
Optional: GD image library
<pre>yum install gd-devel</pre>
Optional: GNU Scientific Library
<pre>yum install gsl-devel</pre>
Optional: FFTW library
<pre>yum install fftw2-devel</pre>
Optional: HDF4 Library
<pre>yum install hdf-devel</pre>
Now install CPAN and then PDL
<pre>
yum install perl-CPAN
cpan <?= $PDL ?></pre>
<p><b>Missing:</b> PGPLOT (but see below) and NDF support.</p>
<h3>Common Problems</h3>
<p>If you installed gfortran and ExtUtils::F77 but did not get the
Slatec and Minuit libraries, try disabling SELinux (and install PDL
again).</p>
<pre>
/usr/sbin/setenforce 0
## Disable SELinux at boot - set SELINUX=disabled in the config file.
vi /etc/selinux/config
</pre>
PGPLOT is not distributed by Fedora as it is not free software. But if
you install the RPM Fusion Non-free Yum repository (look under
"Command Line Setup Using
RPM" <a href="http://rpmfusion.org/Configuration">here</a>), then you
may simply run
<pre>
yum install pgplot-devel
cpan PGPLOT
cpan PDL
</pre>
</div>
<div class="howto" id="last-man">
<h3>Source install - Mandriva</h3>
<p><b>Tested:</b> Mandriva 2010 Spring.</p>
<p><b>Note:</b> You must run the following commands a root.</p>
<b>Required</b>: Build environment.
<pre>urpmi gcc make perl-devel</pre>
Recommended: PLplot
<ol>
<li><tt>urpmi cmake gcc-c++ gcc-gfortran</tt></li>
<li>Download the latest version from
<a href="http://www.plplot.org">http://www.plplot.org</a></li>
<li>Unpack the tar.gz file</li>
<li>
<pre>
mkdir build_dir
cd build_dir
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../plplot-5.9.6
make
make install
</pre>
</li>
</ol>
Optional: Minuit and Slatec libraries
<pre>urpmi gcc-gfortran perl-ExtUtils-F77</pre>
Optional: NetPBM image utilities
<pre>urpmi netpbm</pre>
Optional: GNU Scientific Library
<pre>urpmi libgsl-devel</pre>
Optional: FFTW library
<pre>urpmi fftw2-devel</pre>
Install PDL
<pre>cpan <?= $PDL ?></pre>
<p><b>Missing:</b> OpenGL, PGPLOT, PDL2 shell, Proj4, GD, HDF4
and NDF support.</p>
<h3>Common problems</h3>
<p>Mandriva's packages for Proj4, GD and HDF4 are known to have problems
with PDL. You might see an error like:</p>
<pre>
make[3]: *** [SD.o] Error 1
make[3]: Leaving directory `/root/.cpan/build/PDL-2.4.6_992-20Qukl/IO/HDF/SD'
...
make: *** [subdirs] Error 2
CHM/PDL-2.4.6_992.tar.gz
/usr/bin/make -- NOT OK
</pre>
<p>If this happens, you have two options:</p>
<ul>
<li>You can remove the offending libraries and run
<tt>cpan <?= $PDL ?></tt> again.</li>
<li>You can use the commands below to configure the installer
to ignore these libraries:
<pre>
perl -MCPAN -e shell
cpan> look <?= $PDL ?>
# Disable PROJ
perl -pi -e 's|WITH_PROJ => undef|WITH_PROJ => 0|' perldl.conf
# Disable HDF4
perl -pi -e 's|WITH_HDF => undef|WITH_HDF => 0|' perldl.conf
# Disable GD
perl -pi -e 's|WITH_GD => undef|WITH_GD => 0|' perldl.conf
# Install
perl Makefile.PL
make
make test
make install
exit
cpan> exit
</pre>
</li>
</ul>
</div>
<div class="howto" id="last-mac">
<h3>Source install - Mac OS X</h3>
See <a href="<?=$Wiki?>Mac_OS_X#Custom_Installation_of_PDL">
"Installing PDL on Mac OS X"</a> on the wiki.
</div>
<div class="howto" id="last-cpn">
<h3>Source install - CPAN (all platforms)</h3>
<pre>
perl -MCPAN -e shell
cpan&gt; install <?= $PDL ?>
</pre>
<p><b>Note:</b> Installs all of PDL that is supported by available
dependencies.</p>
</div>
<div class="howto" id="last-src">
<h3>Source install - Manual install (all platforms)</h3>
<p><a href="https://sourceforge.net/projects/pdl/files/">
Download sources</a> from SourceForge and extract.</p>
<pre>perl Makefile.PL<br/>make<br/>make test<br/>make install</pre>
<p><b>Note 1:</b> On Windows, replace 'make' with 'dmake'.
If you have trouble, or want more details, visit the <a href="https://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_PDL_Manually">
complete manual installation page</a> on the wiki.</p>
<p><b>Note 2:</b>
<a href="http://search.cpan.org/search?query=PDL&mode=all">
Search CPAN</a> as an alternate way to get the latest release
and information about PDL.</p>
</div>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks