in reply to Re: PDL installation
in thread PDL installation

Hi David, Thanks for replying. I tried what you said and when I typed "look PDL" it gave me this error: " Your configuration does not define a value for subshells. Please define it with "o conf shell <your shell>" " Also, I removed Dev-Cpp from my PATH and tried to install PDL again, but it still gave me the same error. When I read the error more carefully this time, it also said that my version of Perl was compiled by gcc.exe and it said that it located this file in my computer. I found out that this file is in Dev-Cpp\bin folder. Maybe that's why it is using Dev-Cpp version of make? Thanks for your help Milad

Replies are listed 'Best First'.
Re^3: PDL installation
by Anonymous Monk on Feb 03, 2010 at 00:54 UTC
    It's best that Cygwin uses its own compiler and make utility - so you really do need to make the Dev-CPP stuff invisible.

    Firstly, are you running Cygwin from its bash shell ? (Double click \cygwin\cygwin.bat - there's probably a desktop icon that acts as a shortcut to that file.) Then, in that Cygwin shell, run echo $PATH. What does that produce ?

    Cheers,
    Rob
      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
        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
Re^3: PDL installation
by pdltiger (Acolyte) on Feb 03, 2010 at 14:53 UTC

    You don't have a shell set? Well, I guess my not-Windows experience is bleeding through. You could probably set a shell, but I'm not sure exactly how to do that and it looks like you're getting better advice in some of the other responses.

    If you ever run into trouble in the future with a CPAN installation and want to try running the installation by hand, you should figure out how to set the shell (the command is given in the error message) and then it shold work.

    Good luck!