Ok, let's back up a little bit. Something's missing here, since I don't get that error on my Ubuntu (though I already have PDL installed). We need to make a log of your cpan session, since the PDL build generates a lot of output. So go into the cpan shell and 'clean PDL'. Then exit out, and go back in like this:

   perl -MCPAN -e shell | tee cpan.log
(or you may be able to save a lot of typing by doing "cpan |tee cpan.log")
then
   make PDL
and watch it go. Once it stops, exit, and open up that cpan.log file. It should look something like the attached file. Between the lines
   CPAN.pm: Going to build C/CS/CSOE/PDL-2.4.3.tar.gz
and
   Writing Makefile for PDL
check your log for any major differences with mine. If you are missing some programs that it needs to compile, it should make a mention of it at this point, and it might give you a clue as to what's going on here.

Derek








SAI TANG HUANG wrote:
Hi again Derek,

I've added some details in this email for the people subscribed to the list 
that didn't get my first messages, but the problem still persists when I try to 
install PDL.

So Im trying to install  PDL through CPAN.

I enter the commands :
perl -MCPAN -e shell
install Bundle::CPAN
install ExtUtils::F77
install PDL

After "install PDL" I get this the message. This is not the first time I try to 
install PDL. The first time I got the same error message.:

Core.xs:719: error: invalid type argument of ‘unary *’ <SNIPPED>
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/Basic/Core'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/root/.cpan/build/PDL-2.4.3/Basic'
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan>
I don't understand those errors. Any ideas?

Sai

----------------------------------------
Date: Sun, 20 Jan 2008 12:06:16 -0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [Perldl] installing pdl on ubuntu

[EMAIL PROTECTED] It's the same email address you sent your first request to.

Sai Tang Huang wrote:
Hi Derek,

Thanks for that. I have managed to re-install ExtUtils::F77. I'm afraid I only have your email and not the list email. Perhaps it came with the first subscription email but I can't find it anywhere. Could you please tell me what it is and I will cc to it?

Cheers

Sai

--------------------------------------------------
From: "Derek Lamb" Sent: Sunday, January 20, 2008 6:29 PM To: "SAI TANG HUANG" Cc: Subject: Re: [Perldl] installing pdl on ubuntu

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/


_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar 
siempre a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com

CPAN: File::HomeDir loaded ok (v0.67)

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

CPAN: Storable loaded ok (v2.15)
Going to read /home/derek/.cpan/Metadata
  Database was generated on Sun, 20 Jan 2008 02:39:47 GMT
Running make for module 'PDL'
Running make for C/CS/CSOE/PDL-2.4.3.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /home/derek/.cpan/sources/authors/id/C/CS/CSOE/PDL-2.4.3.tar.gz ok
Scanning cache /home/derek/.cpan/build for sizes
............................................................................DONE
PDL-2.4.3/
PDL-2.4.3/Basic/

##########################
## I removed a long list of files here
##########################


PDL-2.4.3/win32/Readme
PDL-2.4.3/win32/win32f77.pl
CPAN: File::Temp loaded ok (v0.20)
CPAN: YAML loaded ok (v0.66)

  CPAN.pm: Going to build C/CS/CSOE/PDL-2.4.3.tar.gz

Extracting Types.pm
Checking if your kit is complete...
Looks good
Loaded ExtUtils::F77 version 1.16
Found compiler g77
Writing Makefile for PDL::pod
Writing Makefile for Inline
Writing Makefile for PDL::PP
Writing Makefile for PDL::NiceSlice
Trying to figure out POSIX threads support ...
        Saw pthread.h. Fine.
        Fine, your perl was linked against pthread library.
        ==> Will build PDL with POSIX thread support. Gifts to TJL :-)

Trying to figure out endian-ness of machine... It is little endian
Writing Makefile for PDL::Core

        Congratulations - building PDL with bad value support (WITH_BADVAL=1)
        + using -FLT_MAX/-DBL_MAX for floating-point bad values

Writing Makefile for PDL::Bad
Writing Makefile for PDL::Ops
Writing Makefile for PDL::Ufunc
Writing Makefile for PDL::Primitive
Writing Makefile for PDL::Slices
Writing Makefile for PDL::Tests
Source of functions
System:       acosh asinh atanh erf erfc j0 j1 jn rint y1
Distribution: erfi fixy0 fixyn infinity nan ndtri polyroots

Writing Makefile for PDL::Math
Writing Makefile for PDL::MatrixOps
Writing Makefile for PDL::Complex
Writing Makefile for PDL
Writing Makefile for PDL::Demos
Writing Makefile for PDL::Pod::Parser
Writing Makefile for PDL::Doc

   WITH_3D: Not building TriD or OpenGL. Turn on WITH_3D if this is incorrect.

Writing Makefile for PDL::Graphics::PGPLOT::Window
Writing Makefile for PDL::Graphics::PGPLOT
Writing Makefile for PDL::Graphics::LUT::tables::DATA
Writing Makefile for PDL::Graphics::LUT::ramps::DATA
Writing Makefile for PDL::Graphics::LUT
Writing Makefile for PDL::Graphics::IIS

Checking PDL::Graphics::PLplot...
found_plplot is 1
        Succeeded linking PLplot with -L/usr/lib -lplplotd -lX11
        plsmem function found, in-memory plotting available!
        plsvect function found, vector plotting available!
        plpoly3 needs 6 arguments => version 5.2.0 or later!
Writing Makefile for PDL::Graphics::PLplot
Writing Makefile for PDL::Graphics::Limits
Writing Makefile for PDL

   Not building PDL::IO::Browser. Turn on WITH_IO_BROWSER if this is incorrect.

Writing Makefile for PDL::IO::FastRaw
Writing Makefile for PDL::IO::Misc
Writing Makefile for PDL::IO::FlexRaw
Writing Makefile for PDL::IO::Pnm
Writing Makefile for PDL::IO::NDF
Writing Makefile for PDL::IO::Storable
Writing Makefile for PDL::IO::FITS
Final $hdf_defs flags: '-DNDEBUG -D_BSD_SOURCE -DLINUX -DGCC32'

Writing Makefile for PDL::IO
Writing Makefile for PDL::Opt::Simplex
Writing Makefile for PDL::Opt
Writing Makefile for PDL::ImageRGB
Writing Makefile for PDL::Fit::Gaussian
Writing Makefile for PDL::Fit
Writing Makefile for PDL::FFT
Writing Makefile for PDL::Filter
Writing Makefile for PDL::Image2D
Writing Makefile for PDL::ImageND
Writing Makefile for PDL::CallExt
ExtUtils::F77: Using system=Linux compiler=G77
Checking for gcc in disguise:
Compiler is gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Runtime: -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib -lg2c 
-lm -L/usr/lib/gcc/i486-linux-gnu/4.1.3 -lgcc
ExtUtils::F77: Validating -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib 
-L/usr/lib -lg2c -lm -L/usr/lib/gcc/i486-linux-gnu/4.1.3 -lgcc   [ok]
ExtUtils::F77: Compiler: g77
ExtUtils::F77: Cflags: -O
(ExtUtils Version 1.16)
Compiling the test Fortran program...
Executing the test program...
Congratulations you seem to have a working f77!

   Building PDL::Slatec. Turn off WITH_SLATEC if there are any problems

Writing Makefile for PDL::Slatec
Writing Makefile for PDL::Lib::GIS
Writing Makefile for PDL::Transform::Cartography
Writing Makefile for PDL::Transform
Writing Makefile for PDL::Lib
Writing Makefile for PDL

########################
##and then a bunch more stuff
########################
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to