On Jan 23, 2008 1:17 PM, Vahid Moghaddasi <[EMAIL PROTECTED]> wrote:
> On Jan 23, 2008 2:56 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote:
>
> > > it is hard coded to use cc compiler instead of gcc.
> >
> > Where did you get that idea?
> >
>
> The Makefile generated by perl Makefile.PL has compiler options for cc
> that wont work for gcc.

That's probably because you generally need the same compiler options
(and the same compiler) when building extensions to your perl binary
as were used to build the binary itself.

> perl Makefile.PL
> vi Makefile and changed the compiler options

If you couldn't have more easily passed those options to 'perl
Makefile.PL' on the command line, something is wrong.

> make
> vi t/tabletest to pint it to a correct perl in /bin/perl
> t/tabletest

You should be running the tests with 'make test'.

> # I see over 8000 lines of my hosts table and:
> ---------------------------------------------------------------------------
> no data returned
> status: 4
> ---------------------------------------------------------------------------

That does not sound like a successful test. :-(

Running 'perl Makefile.PL' gives you a Makefile that's customized for
the compiler and options that were used for your perl binary. If the
resulting Makefile is for a C compiler you don't have, you probably
need to go back a step and compile and install perl with a C compiler
that you do have.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to