in reply to Re^3: PDL installation
in thread PDL installation

Thanks for replying, I am running bash and this is what I get for PATH:

/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Perl/site/bin:/cygdrive/ c/Perl/bin:/cygdrive/c/mingw/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOW S:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Intel/DMIX:/cygdri ve/c/Program Files/ATI Technologies/ATI.ACE/:/cygdrive/c/Program Files/MATLAB/R2 008b/bin:/cygdrive/c/Program Files/MATLAB/R2008b/bin/win32:/cygdrive/c/Program F iles/Common Files/DivX Shared/:/cygdrive/c/Program Files/QuickTime/QTSystem/:/cygdrive/c/Program Files/gfortran/libexec/gcc/i586-pc-mingw32/4.5.0:/cygdrive/c/Program Files/gfortran/bin:/cygdrive/c/mingw/bin

Replies are listed 'Best First'.
Re^5: PDL installation
by syphilis (Archbishop) on Feb 03, 2010 at 07:03 UTC
    I am running bash and this is what I get for PATH

    Ok - thanks. Can you show us the results of running the following commands. (For reference, I'll also show what I get.)
    Rob@desktop2 ~ $ which perl /usr/bin/perl Rob@desktop2 ~ $ which gcc /usr/bin/gcc Rob@desktop2 ~ $ which make /usr/bin/make Rob@desktop2 ~ $ perl -e 'print $^X' /usr/bin/perl.exe Rob@desktop2 ~ $ perl -V:make make='make'; Rob@desktop2 ~ $ perl -V:cc cc='gcc'; Rob@desktop2 ~ $ perl -v This is perl, v5.8.8 built for cygwin-thread-multi-64int (with 8 registered patches, see perl -V for more detail) Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
    You should be getting essentially the same.

    Who built the Perl in C:/Perl/bin ? If it's ActiveState perl then you should be building stuff for it in the cmd.exe shell using either mingw (which I see you have) or a Microsoft compiler. It would be rather tricky and somewhat unusual to be building extensions PDL for ActivePerl inside the Cygwin environemnt. If you want PDL to run with ActivePerl perl, it should build easily in the cmd.exe shell using mingw - or you can just ppm install PDL from http://cpan.uwinnipeg.ca/PPMPackages/10xx (perl-5.10) or http://theoryx5.uwinnipeg.ca/ppms/ (perl-5.8).

    Cheers,
    Rob
      I tried these, and I got exactly the same answers.

      I use windows. So when I started working with perl, I downloaded Activeperl for windows; however later decided to switch to cygwin and run cygwin version of perl from cygwin. Now that I want to add PDL to perl on cygwin, I am getting all these problem.

      I don't know why cygwin is trying to use Dev-cpp make. I tried to removing Dev-cpp and Activeperl from windows path, but still giving me the same problem. Any suugestions?

      Thank you for your help
        I tried to removing Dev-cpp and Activeperl from windows path

        As long as their listing in $PATH occurs after /usr/bin, their presence should not matter - assuming that /usr/bin contains a 'make.exe', a 'ggc.exe', and a 'perl.exe' etc. (I wonder if it's the cpan shell that's doing something to stuff things up. I'm assuming that we're in the cpan shell that belongs to usr/bin/perl, not ActivePerl.)

        So, it gets to the point where we need to see the 'perl Makefile.PL' and 'make' output.

        'cd' to some location (say ~/modules) and manually extract the PDL source (tar zxvf /location_of/PDL-2.4.6.tar.gz)

        Then run perl Makefile.PL >p.txt 2>&1 followed by make >m.txt 2>&1. Then send us a copy'n'paste of p.txt. It may be that m.txt is too large to post to perlmonks (depending upon when the error occurs). If it's not too big to post to perlmonks, then send us a copy'n'paste of it, too. Otherwise it would probably be best to move this over to the PDL list where you can send copies of 'p.txt' and 'm.txt' as attachments.

        Cheers,
        Rob