我们如何创建在/ usr /本地一个Perl 5.12.3的32位版本在Mac OS X雪豹? [英] How do we create a 32-bit build of Perl 5.12.3 in /usr/local on Mac OS X Snow Leopard?

查看:183
本文介绍了我们如何创建在/ usr /本地一个Perl 5.12.3的32位版本在Mac OS X雪豹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关或那样的原因,我们需要在/ usr /本地在Mac OS X雪豹创建的Perl 5.12.3的自定义的32位版本。

For one reason or another we need to create a custom 32-bit build of Perl 5.12.3 in /usr/local on Mac OS X Snow Leopard.

谁能解释的过程中,或指向我们的教程或示例的方向?

Can anyone explain the process or point us the direction of a tutorial or example?

推荐答案

在雪豹的内核32位模式和64位模式主要是用户空间运行。内核能够没有问题上运行32位和64位的userland应用程序。
你需要告诉perl的构建系统创建一个32位二进制只。这是通过设置-arch gcc的标志位来完成。

On Snowleopard the kernel runs in 32bit mode and the userland mostly in 64bit mode. The kernel is able to run 32bit and 64bit userland apps without a problem. You need to tell the perl build system to create a 32bit only binary. This is done by setting the -arch gcc flag.

对于简单的烧毛文件的应用程序,你会做这样的:

For a simple singe file app you would do it like this:


gcc -arch i386 -o app app.m -lobjc -framework CoreFoundation -framework Cocoa

在你的情况,你必须拱形标志传递到构建系统。
IAM不是一个Perl的专家,但我会像配置这个perl:

In your case you have to pass the arch flag to the build system. Iam not a perl expert but i would configure perl like this:


./Configure -Dprefix=/usr/local -A ccflags="-arch i386"

这篇关于我们如何创建在/ usr /本地一个Perl 5.12.3的32位版本在Mac OS X雪豹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆