in reply to building perl 5.6.1 on solaris 8

As mentioned above, the compiler is important. You can compile it with the GNU compiler or the Sun compiler, but you must decide which one and make sure the other isn't in your path. There are some tips on setting this up in the INSTALL doc for solaris included in the distribution. Read through that install doc and see if that helps. Good luck.

Replies are listed 'Best First'.
Re^2: building perl 5.6.1 on solaris 8
by ark4.0 (Initiate) on Sep 13, 2005 at 13:11 UTC
    I am using gcc. I read the INSTALL doc and will do it again to amke sure I have not missed anything.
      Read the INSTALL file and the README.solaris files for the upteenth time. Following are the changes I make in the configure
      > sh Configure -Dcc='gcc -B/usr/ccs/bin/'

      * I change the LD_LIBRARY_PATH to exclude the /lib and /usr/lib, as recommended in README.solaris
      * do not use the malloc that comes with perl5,
      * I keep the /usr/bin/perl (Sun installed) and install the new version under /usr/local/bin.
      * using Sun make, as, and ld.
      * gcc version 3.3.2, Solaris 8 (sparc), perl 5.6.1
      * Configure runs fine, as well as the make depend it runs.
      * make fails first on identifying <built-in> in the makefile as well as <command-line>. I remove them both and re-run the make, still get the following error

      Making x2p stuff make: Warning: Both `makefile' and `Makefile' exist Current working directory /u01/home/znaqvi/perl-5.6.1/x2p make: Fatal error: Don't know how to make target `<built-in>' Current working directory /u01/home/znaqvi/perl-5.6.1/x2p *** Error code 1 make: Fatal error: Command failed for target `translators'
        Problem solved. There was a makefile in the x2p directory, I removed the built-in and command line references and the make finished without a problem.