perl``.../config.h,由'Makefile''所需要. OSX Lion升级后无法正常工作 [英] perl ".../config.h, needed by `Makefile'" not working after OSX Lion upgrade

查看:104
本文介绍了perl``.../config.h,由'Makefile''所需要. OSX Lion升级后无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已解决.请参阅底部.

只需升级到OSX Lion并尝试重新运行我的Perl安装:

Just upgraded to OSX Lion and trying to get my Perl install running again:

sudo /usr/bin/perl -MCPAN -e 'install "MODULENAME"'

:

...
Checking if your kit is complete...
Looks good
Writing Makefile for JSON
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'.  Stop.
  MAKAMAKA/JSON-2.53.tar.gz
  /Developer/usr/bin/make -- NOT OK

我在任何地方都找不到类似config.h的东西,尽管该目录存在...

I can't find anything resembling config.h anywhere, the directory exists though ...

甚至都行不通:

/usr/bin/cpan CPAN

已解决:从AppStore下载并安装最新版本的XCode.请注意,仅从AppStore下载XCode不会安装(为什么,Apple,哦,为什么?),而只会将安装程序转储到/Applications中.运行安装程序,它将解决此问题.

SOLVED: Download and install latest version of XCode from AppStore. Note that just downloading XCode from AppStore does not install it (why, Apple, oh why?) but only dumps an installer into /Applications. Run the installer, which will fix this issue.

推荐答案

已解决:从AppStore下载并安装最新版本的XCode.请注意,仅从AppStore下载XCode不会安装(为什么,Apple,哦,为什么?),而只会将安装程序转储到/Applications中.运行安装程序,它将解决此问题.

SOLVED: Download and install latest version of XCode from AppStore. Note that just downloading XCode from AppStore does not install it (why, Apple, oh why?) but only dumps an installer into /Applications. Run the installer, which will fix this issue.

这篇关于perl``.../config.h,由'Makefile''所需要. OSX Lion升级后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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