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

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

Replies are listed 'Best First'.
Re^4: PDL installation
by mili3431 (Novice) on Feb 03, 2010 at 03:11 UTC
    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
        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