in reply to XML::Parser on AIX

I'm not familiar with installing modules on AIX, so perhaps I'm missing something obvious....

You are, but it's not something completely obvious. XS modules need to be compiled with the same compiler as compiled Perl. In addition, many XS modules require a minimum of a certain version of a certain compiler.

If you're working with the Perl that came with your OS, it was probably compiled with xcc(?) - IBM's really wonky C compiler. You're trying to compile with cc, which probably isn't the same compiler.

I would strongly recommend recompiling everything with the latest version of gcc - GNU's C compiler. It's freely downloadable as a binary, so you don't have to worry about bootstrapping your compiler.

Yes, this is going to take about 2 days to fully do, but you will be a lot happier for it. It's what I've always had to do when I had the misfortune of working on AIX. (Irix and HP/UX are also the same way - it's not just AIX.)

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: XML::Parser on AIX
by Anonymous Monk on Jan 31, 2005 at 17:35 UTC
    actually turns out cc is indeed xlc on my system (cc_r is linked to the xlc binary). That being said, I'll start recompiling a new perl on my system. I just... would have figured that the default Perl build would be the most stable thing to work off of. Is that an overly naive view of the AIX world?
      It's an overly naive view of the vended-*nix world, and especially for AIX / Irix / HPUX. All three of those have a habit of being really annoying to work with from the opensource view. I've worked on AIX machines that were less than 5 years old that came pre-installed with Perl4. (Perl5 came out over 10 years ago.) Vendor-builds tend to be at least one major revision old and compiled with flags that make you wonder what crack they were smoking. Most monks tend to recompile their own versions of anything they're going to depend on in production, just so they know what's going on.

      Being right, does not endow the right to be rude; politeness costs nothing.
      Being unknowing, is not the same as being stupid.
      Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
      Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

          Vendor-builds tend to be at least one major revision old and compiled with flags that make you wonder what crack they were smoking.

        Thank you for that, it made my day. If I'd had a mouthful of coffee, I might be cleaning off my screen right now instead of writing this reply.

        Alex / talexb / Toronto

        "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds