在 osx 10.6 (snow leopard) 上安装 GD 库时出现问题

发布于 2024-11-25 05:29:43 字数 1628 浏览 7 评论 0 原文

我想将 node-gd 模块与 node.js 一起使用,因此需要安装 GD 库我的MBP(10.6.8 64位)。

我找到了 osx 10.4 的这个(旧)教程 http://www.gisnotes.com/wordpress/wp -content/uploads/2008/07/installing_gd2_on_os_x_server.pdf

我按照演练进行操作 - 除了我使用了所有库的当前版本:

我可以毫无错误地安装所有内容,但是当我尝试启动使用 node-gd 模块的节点应用程序时,我收到以下错误:

Error: dlopen(/users/phil/node/node_modules/node-gd/build/default/node-gd.node, 1):   Symbol not found: _jpeg_resync_to_restart
  Referenced from: /usr/local/lib/libgd.2.dylib
  Expected in: flat namespace
in /usr/local/lib/libgd.2.dylib
at Object..node (module.js:432:11)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:364:19)
at Object.<anonymous> (/users/phil/node/node_modules/node-gd/node-gd.js:19:19)
at Module._compile (module.js:420:26)
at Object..js (module.js:426:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:364:19)

所以肯定出了问题:(

任何建议都非常好非常感谢。

i want to use the node-gd module with node.js and therefore need the GD library installed on my MBP (10.6.8 64bit).

i found this (old) tutorial for osx 10.4
http://www.gisnotes.com/wordpress/wp-content/uploads/2008/07/installing_gd2_on_os_x_server.pdf

i followed the walkthrough - except i used the current versions of all libraries:

i can install everything without errors but when i try and startup my node-application which is using the node-gd module, i get the following error:

Error: dlopen(/users/phil/node/node_modules/node-gd/build/default/node-gd.node, 1):   Symbol not found: _jpeg_resync_to_restart
  Referenced from: /usr/local/lib/libgd.2.dylib
  Expected in: flat namespace
in /usr/local/lib/libgd.2.dylib
at Object..node (module.js:432:11)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:364:19)
at Object.<anonymous> (/users/phil/node/node_modules/node-gd/node-gd.js:19:19)
at Module._compile (module.js:420:26)
at Object..js (module.js:426:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:364:19)

so there definitely went something wrong :(

any advice is very much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文