rooneyl has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am hoping someone can help with what is probaly a simple task for someone experience. I have installed the current version of Aspell on my server (Sparc, Solaris 8), and am now trying to install the perl module so I can use it. When I first tried it failed because of dependices. I worked back through the list to find what modules I needed to install. The first one installed fine, the second (PathTools) will not. I get the error;
cc -c   -xO3 -xdepend    -DVERSION=\"3.2701\" -DXS_VERSION=\"3.2701\" -KPIC -I/usr/perl5/5.00503/su
4-solaris/CORE  Cwd.c
make: cc: Command not found
make: *** Cwd.o Error 127
I have got GNU gcc 3.4.6, I thought this would compile all things. Could someone please point me in the right direction. Thanks.

Replies are listed 'Best First'.
Re: Problems installing aspell module
by Corion (Patriarch) on Feb 15, 2008 at 21:35 UTC

    It seems your Perl was compiled using (Sun's) cc and not gcc. As a rule of thumb, you will need the same compiler that your Perl was compiled with to compile extensions for your Perl with. If you only have gcc and not Sun's compiler, you can maybe get a Perl compiled with gcc from http://sunfreeware.com. On the third hand, Solaris 10 now has Perl 5.8.4 as the stock Perl, so maybe you should upgrade to a newer operating system?

      Thank for your quick response and help. Much appreciated.