库未加载:/opt/local/lib/libffi.5.dylib,但我正在使用自制软件 [英] Library not loaded: /opt/local/lib/libffi.5.dylib but I'm using homebrew

查看:106
本文介绍了库未加载:/opt/local/lib/libffi.5.dylib,但我正在使用自制软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Mac OS X Lion(XCode 4.3 + OSX GCC Installer + Homebrew)上运行防护功能

I'm trying to run guard on Mac OS X Lion(XCode 4.3+OSX GCC Installer+Homebrew)

错误消息:

Library not loaded: /opt/local/lib/libffi.5.dylib

我没有/opt/local目录,因为我没有使用MacPorts,而是使用Homebrew

I have no /opt/local directory since I'm not using MacPorts but Homebrew

我尝试了brew install libffi,它成功了,但是gem仍然不起作用.

I tried brew install libffi, which was successful, but the gem still doesn't work.

我也曾尝试卸载并重新安装gem,但没有成功.

I also have tried uninstalling and reinstalling the gem without success.

在安装了apple-gcc42的OSX 10.9(Mavericks)上也出现了问题.

Problem is also occurring on OSX 10.9 (Mavericks) with apple-gcc42 installed.

我还尝试如下告诉gem libffi的存在:

I have also tried telling gem about the presence of libffi as follows:

gem install ffi:1.0.7 -- --with-ldflags='-L/usr/local/opt/libffi/lib'

推荐答案

在卸载MacPorts之后,我最终遇到了这种情况(我认为自制软件就足够了,但似乎并非如此).它阻止了我的cocoapods更新/安装.

I have ended up in this situation after uninstalling MacPorts (I thought homebrew will be enough, but doesn't seem so). It stopped my cocoapods from updating/installing.

为了使它像魅力一样工作,我做到了:

To make it work like a charm, I did:

$ sudo port install libffi

这篇关于库未加载:/opt/local/lib/libffi.5.dylib,但我正在使用自制软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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