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


Click here to return to the 'Yes, but how do you install it on 10.3? :)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yes, but how do you install it on 10.3? :)
Authored by: buddha456 on Oct 26, '03 10:01:06PM

Yup, having the same problem. Any solutions yet? I found another post (see below) saying that you could switch back to gcc2 with the command,

sudo /usr/sbin/gcc_select 2

but it seems that gcc2 does come installed on Panther. Plus I don't really want to go around switching my compilers around if I don't have to.

Other Post
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 | # ]
Yes, but how do you install it on 10.3? :)
Authored by: buddha456 on Oct 26, '03 10:50:55PM

So, a work around is to use the MysqlPP driver (which also requires Net::mysql), although it gives some weird errors such as,

in short at /Library/Perl/5.8.1/Net/MySQL.pm line 591.

but it does seem to work for the time being. I hope someone figure out the DBD::mysql thing soon though. I'm bummed I can't use it. :)



[ Reply to This | # ]
Yes, but how do you install it on 10.3? :)
Authored by: jasondk on Oct 28, '03 06:12:16PM

I came across a workaround. Create the makefile using:

perl Makefile.PL --nocatchstderr

then continue normally with:
make
make test
make install

It worked for me!
- Jason

[see http://www.plaidworks.com/chuqui/blog/000895.html]



[ Reply to This | # ]