我正在尝试在 linux (Ubuntu) 上安装GODI。它是 ocaml 语言的库管理工具。我之前实际上已经安装了这个——两次,但不久前——没有问题——我记得——但这次我无法弄清楚我错过了什么。
$ ./bootstrap --prefix /home/nlucaroni/godi
$ ./bootstrap_stage2
.: 1: godi_confdir: not found
Error: Command fails with code 2: /bin/sh
Failure!
Run Code Online (Sandbox Code Playgroud)
我已将正确的目录添加到路径中,它们显示为一个 quick echo $path
,并godi_confdir
报告为:
/home/nlucaroni/godi/etc
Run Code Online (Sandbox Code Playgroud)
(...并且该目录存在,并且存在 godi.conf 文件)。所以,我无法弄清楚为什么./bootstrap_stage2
不起作用。
嘿克里斯,我刚刚想明白了。愚蠢的错误。
这只是一个权限问题,/tmp/
在GODI_BASEPKG_PCRE
启用godi.conf
. 我一直在我的主目录中运行它,你会忘记凌晨 3:00 之类的简单事情。
--
其实我还有另一个问题。安装conf-opengl-6
:
GODI 无法找到该GL/gl.h
文件,尽管我可以——你可以看到它是Checking the suggestion
.
> ===> Configuring for conf-opengl-6
> Checking the suggestion
> Include=/usr/include/GL/gl.h Library=/<GLU+GL>
> Checking /usr:
> Include=/usr/include/GL/gl.h Library=/usr/lib/<GLU+GL>
> Checking /usr:
> Include=/usr/local/include/GL/gl.h Library=/usr/local/lib/<GLU+GL>
> Checking /usr/local:
> Include=/usr/local/include/GL/gl.h Library=/usr/local/lib/<GLU+GL>
> Exception: Failure "Cannot find library".
> Error: Exec error: File /home/nlucaroni/godi/build/conf/conf-opengl/./../../mk/bsd.pkg.mk, line 1022: Command returned with non-zero exit code
> Error: Exec error: File /home/nlucaroni/godi/build/conf/conf-opengl/./../../mk/bsd.pkg.mk, line 1375: Command returned with non-zero exit code
### Error: Command fails with code 1: godi_console
Run Code Online (Sandbox Code Playgroud)
编辑- 好吧,这也被修复了......只需要 GLU,很奇怪,因为测试配置选项说一切都很好。