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

I'm in the process of trying to install TWiki on a Solaris 10 server. I'm using the instructions here:

http://twiki.org/cgi-bin/view/Codev/SolarisInstallCookbook

I've gotten as far as the "Perl preparations" step about 1/3 of the way down. Since we are not using CoolStack, I am attempting to install the listed modules.

The instructions I am using for installing those modules are here:

http://twiki.org/cgi-bin/view/Codev/SolarisInstallCookbookPerlModules

Specifically, I am trying to use the automated method. I was successful in installing CGI::Session (as far as I can tell) but I am getting errors at the "make" step when installing Digest::SHA1.

Here is what the system is returning:

cpan[19]> install Digest::SHA1 + Running install for module 'Digest::SHA1' Running make for G/GA/GAAS/Digest-SHA1-2.13.tar.gz Has already been unwrapped into directory /export/home/link/.cpan/bu +ild/Digest-SHA1-2.13-43bJ89 Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

Helpful, huh?

I have gone back and made sure I have the most recent version of CPAN, and I have made certain that gcc is installed on the system. Since the first one succeeded, I'm fairly certain that the paths are set up properly for gcc.

I also tried this:

cpan[8]> fforce install Digest::SHA1 + Running install for module 'Digest::SHA1' Running make for G/GA/GAAS/Digest-SHA1-2.13.tar.gz CPAN: checksum security checks disabled because Digest::SHA not instal +led. CPAN.pm: Building G/GA/GAAS/Digest-SHA1-2.13.tar.gz WARNING: LICENSE is not a known parameter. Checking if your kit is complete... Looks good 'LICENSE' is not a known MakeMaker parameter name. Writing Makefile for Digest::SHA1 cp SHA1.pm blib/lib/Digest/SHA1.pm /usr/perl5/5.8.4/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typem +ap /usr/perl5/5.8.4/ lib/ExtUtils/typemap -typemap typemap SHA1.xs > SHA1.xsc && mv SHA1.x +sc SHA1.c gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -f +no-strict-aliasing -DVERSION=\"2.13\" -DXS_VERSION=\"2.13\" -fPIC "-I/usr/perl5/5.8.4/li +b/sun4-solaris-64int /CORE" SHA1.c /bin/sh: gcc: not found gmake: *** [SHA1.o] Error 1 GAAS/Digest-SHA1-2.13.tar.gz /usr/sfw/bin/gmake -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: GAAS/Digest-SHA1-2.13.tar.gz : make NO

Any suggestions on what to try next?

EDIT: Thank you for your replies, gentlemen. As it turns out, the problem was some confusion over the root login, and some permissions on the box. I wish I could be clearer about what precisely was wrong, but the person who helped me here wasn't terribly forthcoming with the information.

Replies are listed 'Best First'.
Re: Difficulty installing Digest::SHA1 via CPAN on Solaris 10
by marto (Cardinal) on Mar 23, 2012 at 16:57 UTC

    Perl which ships with solaris 10 is ancient. I can replicate your problem with this version. I always leave the system perl alone. I'd guess either there's something that the version of ExtUtils::MakeMaker the system perl is using doesn't understand the LICENSE paramater, or there's something wrong with perl 5.8.4, though ExtUtils::MakeMaker seems more likely to me.

    I tend to build a modern version of perl elsewhere (/opt/blah/perl or something sensible), leaving the system perl alone (Solaris uses this for various system bits and bobs). My advice would be to do this, rather relying on a perl from 8 years ago. There have been many improvements :)

      And for this kind of thing, perlbrew is usually recommended.

Re: Difficulty installing Digest::SHA1 via CPAN on Solaris 10
by davido (Cardinal) on Mar 23, 2012 at 17:56 UTC

    The CPAN Testers Matrix shows Digest::SHA1 version 2.13 (the latest) passing tests all the way back to 5.8.4. However, if you look at the report for a 5.8.4 "PASS" you will see that the toolchain of the smoke tester includes ExtUtils::MakeMaker version 6.56, which is as recent as December 2009 (much newer than Perl 5.8.4).

    It would be a simple fix for the author to add a CONFIGURE_REQUIRES directive in Makefile.PL. When he builds the distribution META.yml and META.json will be written with that dependency, and when your cpan installer stumbles across it, the newer version of EU::MM will be installed before Makefile.PL is ever run, which should solve the problem. If you sent in a brief patch to Makefile.PL for Digest::SHA1, via Digest::SHA1's RT page, I bet the maintainer would add it to the next release, whenever that is.

    Meanwhile, try updating EU::MM and attempting a new installation.


    Dave

Re: Difficulty installing Digest::SHA1 via CPAN on Solaris 10
by Anonymous Monk on Oct 21, 2014 at 09:21 UTC

    Hi i know this problem is on solaris but i went to same problem on debian, so maybe my solution will help anybody: what i did was trying to install Digest::SHA1 cpan command line by : install Digest::SHA1 i got same error as author of this question -> missing cc

    so on debian i did :

    apt-get install gcc

    in CPAN command line problem still appear :

    cpan> install Digest::SHA1

    Running install for module 'Digest::SHA1'

    GAAS/Digest-SHA1-2.13.tar.gz

    Has already been unwrapped into directory /root/.cpan/build/Digest-SHA1-2.13-rlp1Ni

    GAAS/Digest-SHA1-2.13.tar.gz

    Has already been prepared

    GAAS/Digest-SHA1-2.13.tar.gz

    Could not make: Unknown error

    BUT in bash :

    cpan Digest::SHA1

    installation succeeded.