如何告知CPAN制造和CC的路径 [英] How to tell CPAN about path to make and cc

查看:73
本文介绍了如何告知CPAN制造和CC的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有opencsw.org软件包的Solaris上运行Perl 5.10 CPAN,来自软件包的Makefile.PL无法找到正确的路径和cc(gcc)。

Running Perl 5.10 CPAN on Solaris with opencsw.org packages, Makefile.PL from packages can't find the correct path and cc (gcc).

我找到了make的路径并将其设置为gmake,但找不到cc的任何设置。

I found the path to make and set it to gmake, but I can't find any setting for cc.

我以为我曾经在CPAN / Config.pm中(或使用o config ...)进行了设置,但是再也找不到任何设置,也没有足够的耐心去摸索灌木丛以找出这种基本情况

I thought I once set this in CPAN/Config.pm (or with o config ...) but can no longer find any setting and don't have enough patience to wade through the thicket to figure out where such a basic thing gets set.

有人知道吗?

推荐答案

cpan 不需要知道 gcc 或等价物在哪里,因为它不是 cpan 的工作即可直接调用它。通常是 Makefile.PL Build.PL 需要知道的,并且通常会接受编译器使用作为命令行参数。如果将 PERLMAINCC = / compiler / to / use 添加到 o conf makepl_arg ,则应执行此操作。

cpan doesn't need to know where gcc or equivalent is, because it isn't cpan's job to call it directly. Usually it's Makefile.PL or Build.PL that needs to know that, and it usually will accept the compiler to use as a command line argument. If you add PERLMAINCC=/compiler/to/use to o conf makepl_arg that should do it.

这篇关于如何告知CPAN制造和CC的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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