Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'True for a number of perl modules!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
True for a number of perl modules!
Authored by: wkoffel on Jun 18, '03 02:44:01PM

I've found that quite a few perl modules fail to compile with the latest gcc3 on Mac OSX (10.2.6 in my case). They tend to fail with "bus error" which is very unhelpful indeed, and means that the compiler crashed, as opposed to the source code for the modules being buggy or unsupported under OSX.

For the record, the preferred way to change compilers (straight from Apple) is

$ sudo /usr/sbin/gcc_select 2 ( to switch to gcc2 )
$ sudo /usr/sbin/gcc_select 3 ( to switch back to gcc3 )

In addition, I've found that changing the symlink /usr/bin/gcc to point at either gcc2 or gcc3 works as well, and as the hint suggests, changing the compiler listing in the Makefile should also work, although hunting down what might be multiple cases of this in a source package might be less reliable.



[ Reply to This | # ]
True for a number of perl modules!
Authored by: rlaycock on Jun 26, '03 11:24:44AM

I had the same problem with the DBD Bundle. I remapped the alias and the install ran fine; no more "bus error". Still it failed at the very end. It said my server wasn't running. I assume that's MySQL. I'm on 4.0.13 and it certainly was on. I was installing the very latest bundle version which Rob @ heavyhosting had recommended I get off CPAN for v4.

Any idea what the heck is preventing this damn thing from installing? I'm thinking it could be a permission thing. I ran "sudo" of course and my root user is set in MySQL.

Rich.



[ Reply to This | # ]
True for a number of perl modules!
Authored by: rlaycock on Jun 28, '03 12:07:13PM

Update:

I had to remove the password on the MySQL "root" user. Even then the CPAN Bundle didn't complete but the downloaded modules from CPAN ran separately did. I used DBD-mysql-2.1028 & DBI-1.37.

Richard L.



[ Reply to This | # ]