我正在尝试安装ruby gem,但安装过程已停止,因为:
ld: file not found: /usr/local/lib/libfreetype.6.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我该如何安装这个库?我查了一下/usr/local/lib/,那里的图书馆遗失了.
编辑:
我跑了找到libfreetype.6.dylib并得到:
/Applications/MAMP/Library/lib/libfreetype.6.dylib
/Applications/VLC.app/Contents/MacOS/lib/libfreetype.6.dylib
/Applications/XAMPP/xamppfiles/lib/libfreetype.6.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libfreetype.6.dylib
/Applications/calibre.app/Contents/Frameworks/libfreetype.6.dylib
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF
/Users/xxxxx/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Info.plist
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources
/Users/xxxxx/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF
/Users/v/rubydev/sharelock-staging/magick-installer/freetype-2.4.3/objs/.libs/libfreetype.6.dylib.dSYM/Contents/Resources/DWARF/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib
Run Code Online (Sandbox Code Playgroud)
但为什么系统找不到图书馆?
我安装了macvim via brew install macvim --override-system-vim.一切似乎都很好.当我ls -lart在/usr/local/bin这里做的是我得到的符号链接相对于vim:
vimex -> ../Cellar/macvim/7.3-66/bin/vimex
vimdiff -> ../Cellar/macvim/7.3-66/bin/vimdiff
vim -> ../Cellar/macvim/7.3-66/bin/vim
view -> ../Cellar/macvim/7.3-66/bin/view
vi -> ../Cellar/macvim/7.3-66/bin/vi
mvimex -> ../Cellar/macvim/7.3-66/bin/mvimex
mvimdiff -> ../Cellar/macvim/7.3-66/bin/mvimdiff
mvim -> ../Cellar/macvim/7.3-66/bin/mvim
mview -> ../Cellar/macvim/7.3-66/bin/mview
gvimex -> ../Cellar/macvim/7.3-66/bin/gvimex
gvimdiff -> ../Cellar/macvim/7.3-66/bin/gvimdiff
gvim -> ../Cellar/macvim/7.3-66/bin/gvim
gview -> ../Cellar/macvim/7.3-66/bin/gview
Run Code Online (Sandbox Code Playgroud)
另外,运行which vim收益率/usr/local/bin/vim.但是,当我vim从终端运行时,我得到的版本7.3而不是7.3.754我/usr/local/Cellar/macvim/7.3-66/bin/vim直接运行时获得的版本.我在这里错过了什么,因为它显然不一样.
我想使用OpenID使用Google帐户实现登录,但我不知道如何启动此过程,因为我不知道如何执行此操作.那么是否有任何分步指南,以便我可以使用PHP中的CodeIgniter轻松实现Google帐户登录.
我发现只有这个,但我无法理解它,所以有任何指南或任何图书馆登录谷歌帐户?
$ brew install libyaml
==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/libyaml-0.1.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libyaml/0.1.4
==> make install
Warning: Could not link libyaml. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libyaml'
==> Summary
/usr/local/Cellar/libyaml/0.1.4: 7 files, 336K, built in 9 seconds
Run Code Online (Sandbox Code Playgroud)
OS X 10.8.2如何解决这个问题?我该怎么办 ?
我大约一年半以来一直在运行MATLAB.而且我一直在努力让matlabpool准备好在将近三个月内完成一次.在我完全放弃之前,我决定寻求帮助.:)
我的问题始于matlabpool命令.每当我输入matlabpool命令时,我都会得到:
One or more output arguments not assigned during call to "system_dependent".
Error in matlabpool>iIsOnClient (line 73)
onclient = ~system_dependent('isdmlworker');
Error in matlabpool>iVerifyJava (line 64)
if iIsOnClient()
Error in matlabpool (line 10)
iVerifyJava();
Run Code Online (Sandbox Code Playgroud)
经过一些研究和不眠之夜,我发现必须使用"Cluster Profile Manager"解决问题.但我从来没有机会看到它的运作.以下是从Parallel面板中单击Cluster Profile Manager后得到的内容:
com.mathworks.jmi.MatlabException: Feature isdmlworker not found
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1710)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.toolbox.distcomp.ui.profile.model.MatlabProfileManager$1.runOnMatlabThread(MatlabProfileManager.java:80)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
Attempt to reference field of non-structure array. …Run Code Online (Sandbox Code Playgroud) 我在onPrepareOptionsMenu上重写隐藏和显示菜单项.使用API级别16仿真器进行测试时; 第一次打开菜单时不调用onPrepareOptionsMenu.但是,当我重新打开菜单时,它可以工作.问题仅在于第一次使用.你可以用它来简单地测试它;
@Override
public void onPrepareOptionsMenu(Menu menu) {
Toast.makeText(this.getActivity(), "pre", Toast.LENGTH_SHORT).show();
super.onPrepareOptionsMenu(menu);
}
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
$ brew remove hadoop
Error: hadoop has multiple installed versions
Run Code Online (Sandbox Code Playgroud)
我似乎无法找到一种方法如何删除所有版本(他们是1.0.4和1.1.2).
我环顾四周,目前的情况使用MWFeedParser,这是一个很棒的解析器.我的应用程序所做的是阅读新闻网站供稿,在表格中显示新闻报道,然后选择您想要的故事并在新的ViewController中显示完整的故事.
到目前为止,我已将此功能关闭,但我正在努力处理文本.在下载的XML数据上使用.dataUsingEncoding(NSUTF16StringEncoding)后,这会将不可读的文本转换为清除可读文本.
当我必须实现图像的添加时,我的问题出现了,我有一种方法来获取图像并将其添加到标题旁边的表格视图中的故事中,但我不知道如何保留文本的结构在我的全文故事ViewController上,因为在新闻网站上(所以将图像添加到文本的右侧部分:示例,在第二段之后)
如果有人可以告诉我如何添加适当的间距,段落应该是很棒的.对本文的一般操作会有所帮助我到目前为止完全无能为力.
我不知何故丢失了gcc和g ++的手册页.我不确定在哪里/找什么.我很确定这些人工页面曾经使用过.它也可以在我的Mac上工作,我使用大致相同的设置.这可能是酿造的问题吗?或者它是XCode命令行工具中的错误?
更新:我刚刚尝试重新安装XCode命令行工具.没运气.
~
? man gcc
No manual entry for gcc
~
? which gcc
/usr/bin/gcc
~
? gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
Run Code Online (Sandbox Code Playgroud)