Hi, On Tue, 27 May 2003, Pat Masterson wrote:
> The first attempt gives me a request for HTML::Parser. So I try a CPAN > install of HTML::Parser and it seems to be trying a "C" complie using > Sun's CC compiler, which I dont have. I do use GCC for everything else. > I played with the Makefile, but there are incorrect parameters being > passed (KPIC for instance), and it's getting ugly. How can I get this > module to compile correctly? Here's some output: > > CPAN.pm: Going to build G/GA/GAAS/HTML-Parser-3.28.tar.gz > > Checking if your kit is complete... > Looks good > Processing hints file hints/solaris.pl > Writing Makefile for HTML::Parser > cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm ... > /usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap typemap Parser.xs > > Parser.xsc && mv Parser.xsc Parser.c > cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend > -DVERSION=\"3.28\" -DXS_VERSION=\"3.28\" -KPIC > -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMARKED_SECTION Parser.c > /usr/ucb/cc: language optional software package not installed > *** Error code 1 > make: Fatal error: Command failed for target `Parser.o' > /usr/ccs/bin/make -- NOT OK > Running make test > Can't test without successful make > > Thanks. -pat See http://www.cynistar.net/~apthorpe/code/configuring_cpan.html Here's the important excerpt (esp. point #2): ----- Solaris Users Have Even More Fun Solaris 8 users: I feel your pain. You have two choices with regards to CPAN: 1. Scrape out the heinously borked version of perl 5.005_03 that Sun supplies you and install a new (5.6.1 or later) clean copy from source so that all the files go in the right places (Hint: /usr/perl5/bin is where vital utilities like h2xs, h2ph, perldoc, and find2perl live. Paraphrasing Dave Barry, "Who installed this code? Vandals?") Also, make sure the C compiler you build perl with is available after installation (see below.) The simple low-budget solution: install gcc. 2. Presuming you don't have Sun's C compiler (and who does?), install gcc. Save a backup copy of /usr/perl5/5.00503/sun4-solaris/Config.pm and in the original, replace references to cc with gcc, being careful to change the values of 'optimize' and 'cccdlflags' to reflect the appropriate gcc options ('-KPIC' -> '-fPIC', '-xO3 -xdepend' -> '-O3'). /usr/perl5/5.00503/sun4-solaris/Config.pm 'remembers' how perl was built and is used by CPAN (via MakeMaker) to build makefiles to install modules. You can change some of the options in CPAN to convince it to use gcc instead of Sun's hypothetical compiler but it's often much cleaner to erase cc from Config.pm or just install a recent version of perl from scratch. I don't have many comments about the Solaris packages of perl on sunfreeware.com or sunsite/ibiblio; I've had good results with packages from both archives but I simply don't trust anyone's package of perl, especially when Sun is involved. ----- I miss Solaris; the stability of the kernel, the sundry r00tm3 RPC code installed by default, the Piltdown compiler, the anonymous mailbombing agent disguised as Sendmail, the broken and misplaced utilities that take a day and a half of replacing with functional GNU equivalents. For as much as I complain about how broken Solaris is, I can fix it, I can secure it, I can understand it. Win2K? Abandon all hope... -- Bob Apthorpe ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk