Sai,
If you really don't care about configuring PDL exactly as you need it,
and just want some basic PDL functionality FAST, probably the easiest
thing to do is to install the pdl ubuntu package.
System->Administration->Synaptic Package Manager. Then search for 'pdl'
and mark it for installation. Right click on the entry in the list and
see if any of the "recommended" or "suggested" packages are appropriate
(MESA is for 3D graphics; I would definitely install one of the
"readline" packages if you are planning on using the interactive perldl
shell; plplot is for 2D graphics), and mark them for installation if you
want. Click "Apply", and watch it go!
If you really want to install it through CPAN, then I would recommend:
install Bundle::CPAN
reload CPAN
as a first step. This will install all sorts of useful things that
don't come on the standard Ubuntu Perl install.
install ExtUtils::F77
will install a F77 binding for perl, which PDL seems to want.
Start there, and let us know which route you go and how it works (I may
be able to help more on Sunday if necessary).
cheers,
Derek
SAI TANG HUANG wrote:
Hiya,
My name is Sai and I'm trying to install pdl on my ubuntu 7.10 (brand new
installation). I will describe the commands I typed and the results I got
below. I would really really appreciate it if someone could help me with this
cause I need this to get on with my project!
Here I go. I'm logged in as root by the way.
I type:
perl -MCPAN -e shell
install PDL
Then I get a long log and a question at the end:
...
Can't locate ExtUtils/F77.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8.8 /usr/share/perl/5.8.8
/usr/local/lib/site_perl /root/.cpan/build/PDL-2.4.3-j1p1Gw
/root/.cpan/build/PDL-2.4.3-j1p1Gw/Lib .) at (eval 305) line 2.
BEGIN failed--compilation aborted at (eval 305) line 2.
ExtUtils::F77 module not found. Ought not build PDL::Slatec
writing dummy Makefile
no GSL link info (libgsl probably not available)
no GSL include info (libgsl probably not available)
no GSL version info found (gsl-config not installed?)
Not building GSL modules: GSL version UNKNOWN VERSION found, need at least
1.3
writing dummy Makefile
Skipping build of PDL::FFTW.
writing dummy Makefile
Testing support libraries for PDL::GIS::Proj:
Cannot find Proj library, libproj.a.
Please add the correct library path to Makefile.PL or install Proj.
Cannot find Proj header file, proj_api.h.
Please add the correct library path to Makefile.PL or install Proj.
Skipping build of PDL::GIS::Proj.
writing dummy Makefile
Writing Makefile for PDL::Lib::GIS
Writing Makefile for PDL::Transform::Cartography
Testing support libraries for PDL::Transform::Proj4:
Cannot find Proj4 library, libproj.a.
Please add the correct library path to Makefile.PL or install Proj4.
Cannot find Proj4 header file, proj_api.h.
Please add the correct library path to Makefile.PL or install Proj4.
Skipping build of PDL::Transform::Proj4.
writing dummy Makefile
Writing Makefile for PDL::Transform
Writing Makefile for PDL::Lib
Writing Makefile for PDL
Writing Basic/Core/Config.pm
Could not read '/root/.cpan/build/PDL-2.4.3-j1p1Gw/META.yml'. Falling back to
other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- CSOE/PDL-2.4.3.tar.gz ----
ExtUtils::F77 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
I answered with an "enter" and then a long log and another answer:
Core.c:1767: error: invalid type argument of ‘unary *’
Core.c:1768: error: invalid type argument of ‘unary *’
Core.c:1769: error: invalid type argument of ‘unary *’
Core.c:1770: error: invalid type argument of ‘unary *’
Core.c:1771: error: invalid type argument of ‘unary *’
Core.c:1773: error: invalid type argument of ‘unary *’
Core.c:1775: error: invalid type argument of ‘unary *’
Core.c:1777: error: invalid type argument of ‘unary *’
Core.c:1779: error: invalid type argument of ‘unary *’
Core.c:1780: error: invalid type argument of ‘unary *’
Core.c:1781: error: invalid type argument of ‘unary *’
Core.c:1782: error: invalid type argument of ‘unary *’
Core.c:1783: error: invalid type argument of ‘unary *’
Core.c:1783: error: invalid type argument of ‘unary *’
Core.c:1784: error: invalid type argument of ‘unary *’
Core.c:1785: error: invalid type argument of ‘unary *’
Core.c:1786: error: invalid type argument of ‘unary *’
Core.c:1787: error: invalid type argument of ‘unary *’
Core.c:1788: error: invalid type argument of ‘unary *’
Core.c:1789: error: invalid type argument of ‘unary *’
Core.xs:661: error: invalid type argument of ‘unary *’
Core.xs:661: error: invalid type argument of ‘unary *’
Core.c:1866: error: invalid type argument of ‘unary *’
Core.c:1866: error: invalid type argument of ‘unary *’
Core.c:1866: error: invalid type argument of ‘unary *’
Core.c:1866: error: invalid type argument of ‘unary *’
make[2]: *** [Core.o] Error 1
make[2]: Leaving directory `/root/.cpan/build/PDL-2.4.3-j1p1Gw/Basic/Core'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/root/.cpan/build/PDL-2.4.3-j1p1Gw/Basic'
make: *** [subdirs] Error 2
CSOE/PDL-2.4.3.tar.gz
/usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
KGB/ExtUtils-F77-1.16.tar.gz : make_test NO
CSOE/PDL-2.4.3.tar.gz : make NO
I really don't know where the "Core... ...'unary *'" lines begin cause the log
is cut at one point.
Basically I really don't know what's going on and it's been a frustrating day
trying to get this to work.
Any ideas? Please help...
Sai
_________________________________________________________________
MSN Video.
http://video.msn.com/?mkt=es-es
_______________________________________________
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