Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Solaris::PerlGcc

by vek (Prior)
on Sep 18, 2006 at 17:52 UTC ( #573585=perlquestion: print w/ replies, xml ) Need Help??
vek has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,

I recently stumbled across Solaris::PerlGcc which lets you use gcc to compile Perl modules even if the version of Perl supplied by Sun was compiled with Sun's Forte compiler. Solaris::PerlGcc installed without any fuss whatsoever but when I attempt to actually use it I receive a fatal error.

Per the docs, I'm running the CPAN shell as follows:

perlgcc -MCPAN -e shell

And then installing modules as usual. Unfortunately when attempting to install something as basic as Data::Dumper, make issues a fatal error.

make: Fatal error: Don't know how to make target '/usr/perl5/5.6.1/lib +/sun4-solaris-64intConfig.pm'

Note that sun4-solaris-64intConfig.pm is not a typo and looks like a borked path to me.

By some amazing fluke, has anyone else used Solaris::PerlGcc and received the same kind of error. If so, how did you resolve it?

Thankies.

-- vek --

Comment on Solaris::PerlGcc
Select or Download Code
Re: Solaris::PerlGcc
by rinceWind (Monsignor) on Sep 18, 2006 at 18:28 UTC

    It looks as if it might be getting very confused and trying to build a static perl for you (which you almost certainly don't want).

    What happens if you try to install a module by hand? This will help you work out if the problem is with CPAN, perlgcc or your Makefile.

    cpan> look Data::Dumper perlgcc Makefile.PL make make test make install

    If you successfully manage to built and install something pure perl, try installing something with XS. Could you please paste the full dialogue with error messages.

    Though I use Solaris every day at work, I've never come across that module. I'm using a Solaris 8 that was shipped with a perl built with gcc. I'm in the reverse situation - being on a site with the fully fledged, licensed Forte toolkits, but having to download or build my own gcc to add Perl extensions.

    P.S. Have you tried contacting the author?

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      Thanks rinceWind. I get the same result when attempting to install by hand.

      root@blah [/.cpan/build/Data-Dumper-2.121]> perlgcc Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Data::Dumper root@blah [/.cpan/build/Data-Dumper-2.121]> make make: Fatal error: Don't know how to make target `/usr/perl5/5.6.1/lib +/sun4-solaris-64intConfig.pm'

      It would appear that something rather odd is going on when using perlgcc as I cannot install pure Perl modules either. I attempted a manual install of Config::Tiny just to test it out. I get the same error.

      root@blah [/opt/installs/Config-Tiny-2.08]> perlgcc Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Config::Tiny root@blah [/opt/installs/Config-Tiny-2.08]> make make: Fatal error: Don't know how to make target `/usr/perl5/5.6.1/lib +/sun4-solaris-64intConfig.pm'

      So, I've since learned that we do have Sun's cc compiler, we just didn't have it installed. So, the powers that be are installing it as we speak. That should solve my problem. Since kinda curious as to why perlgcc didn't work but I think that's a research project for another day :-)

      Many thanks for taking the time to give me a hand.

      -- vek --

        Although you will be solving your problem by migrating to Forte cc, please raise a bug report on RT, as the chances of the author lurking on Perlmonks are quite small.

        As the problem seems to be with the generated Makefile under perlgcc, you might want to investigate further by saving the Makefile to one side, running perl Makefile.PL and looking at the differences between the Makefiles. I suggest trying this with a pure perl module.

        --

        Oh Lord, won’t you burn me a Knoppix CD ?
        My friends all rate Windows, I must disagree.
        Your powers of persuasion will set them all free,
        So oh Lord, won’t you burn me a Knoppix CD ?
        (Missquoting Janis Joplin)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://573585]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-09-21 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls