在 osx 10.6 (snow leopard) 上安装 GD 库时出现问题
我想将 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
我按照演练进行操作 - 除了我使用了所有库的当前版本:
- zlib 1.2.5
- jpeg src 8c
- libpng 1.5.4
- < a href="https://bitbucket.org/pierrejoye/gd-libgd/get/GD_2_0_33.tar.gz" rel="nofollow">GD 库2.0.33
我可以毫无错误地安装所有内容,但是当我尝试启动使用 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)
所以肯定出了问题:(
任何建议都非常好非常感谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论