无法在OS X上安装OpenGLRaw-1.1.0.1 [英] Can't install OpenGLRaw-1.1.0.1 on OS X

查看:167
本文介绍了无法在OS X上安装OpenGLRaw-1.1.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行

  $ cabal install OpenGLRaw 

我得到以下错误。

  ... ...。 .. 

cbits / HsOpenGLRaw.c:78:20:
error:stdlib.h:没有这样的文件或目录

cbits / HsOpenGLRaw.c:79 :19:
错误:dlfcn.h:没有这样的文件或目录
cbits / HsOpenGLRaw.c:函数'hs_OpenGLRaw_getProcAddress':

cbits / HsOpenGLRaw.c:97: 0:
错误:'NULL'未声明(在此函数中首次使用)

cbits / HsOpenGLRaw.c:97:0:
错误:(仅报告每个未声明的标识符一次

cbits / HsOpenGLRaw.c:97:0:error:对于它出现的每个函数。)

cbits / HsOpenGLRaw.c:104:0:
警告:隐式声明函数'dlopen'

cbits / HsOpenGLRaw.c:104:0:
错误:'RTLD_LAZY'未声明(首次在此函数中使用)

cbits / HsOpenGLRaw.c:104:0:
警告:赋值给po从不带转换的整数转换

cbits / HsOpenGLRaw.c:115:0:
警告:隐式声明函数'dlsym'

cbits / HsOpenGLRaw.c :115:0:
警告:赋值使得整型指针没有转换

cbits / HsOpenGLRaw.c:126:0:
warning: cast
cabal:错误:某些软件包未能安装:
OpenGLRaw-1.1.0.1在构建阶段失败。例外情况是:
ExitFailure 1

我刚刚安装了最新的Haskell Platform for OS X和

解决方案

看起来像我< a href =http://hackage.haskell.org/trac/ghc/ticket/5011 =nofollow> ticket#5011 - Mac + GHC 7.0.2上的XCode 4无法链接。

GHC 7.0.3中已经修正了这个问题,它将成为Haskell平台4月中旬发布的一部分。



<另一种解决方法是降级到2010.2的Haskell平台。


When I run

$ cabal install OpenGLRaw

I get the following errors.

... ... ...

cbits/HsOpenGLRaw.c:78:20:
     error: stdlib.h: No such file or directory

cbits/HsOpenGLRaw.c:79:19:
     error: dlfcn.h: No such file or directory
cbits/HsOpenGLRaw.c: In function ‘hs_OpenGLRaw_getProcAddress’:

cbits/HsOpenGLRaw.c:97:0:
     error: ‘NULL’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:97:0:
     error: (Each undeclared identifier is reported only once

cbits/HsOpenGLRaw.c:97:0:  error: for each function it appears in.)

cbits/HsOpenGLRaw.c:104:0:
     warning: implicit declaration of function ‘dlopen’

cbits/HsOpenGLRaw.c:104:0:
     error: ‘RTLD_LAZY’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:104:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:115:0:
     warning: implicit declaration of function ‘dlsym’

cbits/HsOpenGLRaw.c:115:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:126:0:
     warning: return makes pointer from integer without a cast
cabal: Error: some packages failed to install:
OpenGLRaw-1.1.0.1 failed during the building phase. The exception was:
ExitFailure 1

I just installed the latest Haskell Platform for OS X and ran cabal update for good measure.

解决方案

Looks to me like ticket #5011 - XCode 4 on Mac + GHC 7.0.2 fails to link.

This is fixed in GHC 7.0.3 which will be part of the mid-April release of the Haskell Platform.

And alternative fix is to downgrade to the 2010.2 Haskell Platform.

这篇关于无法在OS X上安装OpenGLRaw-1.1.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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