Sai,
It is best if you CC the perldl list on your replies, others may see
things that I miss, or may reply even faster.
This line:
Can't exec "g77": No such file or directory at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 176.
Is because you probably don't have a Fortran compiler on your
system--the whole point of ExtUtils::F77 is to link C programs with
Fortran subroutines... while Perl (and the core of PDL) is written in C,
some useful PDL modules are based on Fortran libraries. Install g77
through Synaptic. Don't force the ExtUtils::F77 install. You may have
to 'clean ExtUtils::F77' in cpan before running 'install ExtUtils::F77'
again.
Derek
SAI TANG HUANG wrote:
Hiya again Derek,
I have tried installing PDL through CPAN, And I started the process as you
suggested:
I first typed: perl -MCPAN -e shell
install Bundle::CPAN
reload CPAN
install ExtUtils::F77
The log below goes from when I reloaded CPAN:
cpan> reload CPAN
................................................................................................................................................................................................................................
224 subroutines redefined
....Subroutine CPAN::FirstTime::prompt redefined at
/usr/share/perl/5.8/Exporter.pm line 65, chunk 1.
at (eval 379) line 15
.......
11 subroutines redefined
cpan> install ExtUtils::F77
Running install for module ExtUtils::F77
Running make for K/KG/KGB/ExtUtils-F77-1.16.tar.gz
Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/authors/id/K/KG/KGB/ExtUtils-F77-1.16.tar.gz
--13:09:43--
ftp://ftp.perl.org/pub/CPAN/authors/id/K/KG/KGB/ExtUtils-F77-1.16.tar.gz
=> `-'
Resolving ftp.perl.org... 195.14.50.21, 195.220.60.30
Connecting to ftp.perl.org|195.14.50.21|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors/id/K/KG/KGB ... done.
==> PASV ... done. ==> RETR ExtUtils-F77-1.16.tar.gz ... done.
Length: 10,234 (10.0K) (unauthoritative)
100%[====================================>] 10,234 52.94K/s
13:09:48 (52.90 KB/s) - `-' saved [10234]
Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/authors/id/K/KG/KGB/CHECKSUMS
--13:09:48-- ftp://ftp.perl.org/pub/CPAN/authors/id/K/KG/KGB/CHECKSUMS
=> `-'
Resolving ftp.perl.org... 195.220.60.30, 195.14.50.21
Connecting to ftp.perl.org|195.220.60.30|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors/id/K/KG/KGB ... done.
==> PASV ... done. ==> RETR CHECKSUMS ... done.
Length: 4,060 (4.0K) (unauthoritative)
100%[====================================>] 4,060 --.--K/s
13:09:51 (47.52 KB/s) - `-' saved [4060]
Checksum for /root/.cpan/sources/authors/id/K/KG/KGB/ExtUtils-F77-1.16.tar.gz ok
ExtUtils-F77-1.16/
ExtUtils-F77-1.16/CHANGES
ExtUtils-F77-1.16/COPYING
ExtUtils-F77-1.16/._F77.pm
ExtUtils-F77-1.16/F77.pm
ExtUtils-F77-1.16/Makefile.PL
ExtUtils-F77-1.16/MANIFEST
ExtUtils-F77-1.16/META.yml
ExtUtils-F77-1.16/README
ExtUtils-F77-1.16/t/
ExtUtils-F77-1.16/t/require.t
CPAN.pm: Going to build K/KG/KGB/ExtUtils-F77-1.16.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for ExtUtils::F77
cp F77.pm blib/lib/ExtUtils/F77.pm
cp ._F77.pm blib/lib/ExtUtils/._F77.pm
Manifying blib/man3/ExtUtils::F77.3pm
/usr/bin/make -- OK
Running make test
Prepending /root/.cpan/build/IO-Zlib-1.09/blib/arch
/root/.cpan/build/IO-Zlib-1.09/blib/lib to PERL5LIB.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/require......
ExtUtils::F77: Version 1.16
Use of uninitialized value in pattern match (m//) at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 251.
Can't exec "g77": No such file or directory at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 176.
Use of uninitialized value in scalar chomp at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 177.
Can't exec "g77": No such file or directory at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 176.
Use of uninitialized value in scalar chomp at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 177.
Can't exec "g77": No such file or directory at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 176.
Use of uninitialized value in scalar chomp at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 177.
Can't exec "g77": No such file or directory at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 176.
Use of uninitialized value in scalar chomp at
/root/.cpan/build/ExtUtils-F77-1.16/blib/lib/ExtUtils/F77.pm line 177.
t/require......1/2 Can't exec "f77": No such file or directory at t/require.t
line 28.
t/require...... Failed 1/2 subtests
Test Summary Report
-------------------
t/require.t (Wstat: 0 Tests: 1 Failed: 0)
Parse errors: Bad plan. You planned 2 tests but ran 1.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.03 cusr 0.01
csys = 0.06 CPU)
Result: FAIL
Failed 1/1 test programs. 0/1 subtests failed.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
cpan>
Shall I force it??
Sai
----------------------------------------
Date: Sat, 19 Jan 2008 16:11:44 -0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [email protected]
Subject: Re: [Perldl] installing pdl on ubuntu
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
_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl