osx-lion

Mac OSX Lion/X11/CImg Library

*爱你&永不变心* 提交于 2019-12-05 01:46:40
So I'm trying to incorporate the CImg image writing library into my XCode project However, the header file for the library contains the following include and XCode gives this error warning: #include <X11/Xlib.h> Error: File not found My laptop is running OSX Lion 10.8.2 and apparently, apple took away X11 for Lion, so I went on this site and downloaded XQuartz because that's what it said to do on the Apple Support page . So after the installation, I restarted my computer and tried to run my XCode project, but I'm still getting the same exact error on that include. So I'm not sure what I should

RVM - MacPorts won't update through proxy

家住魔仙堡 提交于 2019-12-05 01:18:45
问题 I'm trying to use RVM to install ruby on my iMac. I start by typing the following: rvm list known I then target the version that I want to install (the guide I'm following recommends 1.9.2 instead of the base 1.8.7) with the following line: rvm install 1.9.2 Then I get this: 27698AM:~ butler15$ rvm install 1.9.2 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get

sudo pecl install apc error on os x lion

一曲冷凌霜 提交于 2019-12-05 00:02:30
I tried installing APC with pecl on OS X Lion ( sudo pecl install apc ) and it complained about a missing pcre.h file: In file included from /private/tmp/pear/temp/APC/apc.c:44: /usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h' file not found #include "pcre.h" So I used MacPorts to install the pcre package ( sudo port install pcre ) but it still complains. How can I fix this? I think this is because MacPorts installs the header files in a different location from where pecl expects them. To fix this error, I symlinked pcre.h to /usr/include : sudo ln -s /opt/local/include/pcre.h

/developer directory is missing in Lion Xcode 4.3

我的梦境 提交于 2019-12-04 23:55:27
I removed an older version of Xcode following the instructions in How to fully remove Xcode 4 and then installed version 4.3 from AppStore. But now /developer directory is missing. I can find the same directory structure in /applications/xcode.app/contents/Developer/. Is /developer just a link to that directory and how can I create it again? According to the XCode 4.3 release notes , the /developer directory is no longer needed. /Developer No Longer Exists The simplification afforded by repackaging Xcode 4.3 as a single app bundle eliminates the need for the /Developer directory containing

Seeking accurately, as opposed to two seconds short, in AVPlayer

北战南征 提交于 2019-12-04 23:45:49
I'm using AVPlayer in a Cocoa app, and I've implemented a command that jumps to the end of the video. The problem is, AVPlayer doesn't seek to where I told it to. For example, one of the videos I have is 4 minutes and 14 seconds long. When I seek to the end, AVPlayer seeks to 4 minutes and 12 seconds—two seconds short. If I then hit play, the player will play for two seconds, then reach the end. My first attempt was this: [self.player seekToTime:self.player.currentItem.duration]; I've switched it to this: [self.player seekToTime:self.player.currentItem.duration toleranceBefore

pip install django timeout on MacOSX Lion

守給你的承諾、 提交于 2019-12-04 23:43:35
问题 On a MBP, following instructions (http://techblog.rosedu.org/python-environment.html), I installed Xcode 4.4.1, brew (brew doctor says all set), and then python. Next, I tried to setup virtualenv: > $MYPYTHON/bin/python distribute_setup.py > $MYPYTHON/bin/easy_install pip > $MYPYTHON/bin/pip install virtualenv I then created a virtual environment and tried to install django: > $MYPYTHON/bin/virtualenv $MYENV > $MYENV/bin/pip install Django It downloads 98% and then hangs for a while, and

Error message for virtualenvwrapper on OS X Lion

拜拜、爱过 提交于 2019-12-04 23:36:51
I've used homebrew to install python on a new Mac Lion installation, and have been trying to install virtualenv and virtualenvwrapper with pip, but when I start a new terminal session, I get this traceback: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.hook_loader virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

sbt 0.13.0 JLine incompatibility detected

我只是一个虾纸丫 提交于 2019-12-04 22:46:35
I have a problem with starting a play 2.2.0 app on my mac with mountain lion and java 7: [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected at jline.TerminalFactory.create(TerminalFactory.java:101) at jline.TerminalFactory.get(TerminalFactory.java:159) at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:85) at sbt.ConsoleLogger$.<init>(ConsoleLogger.scala:79) at sbt.ConsoleLogger$.<clinit>(ConsoleLogger.scala) at sbt.GlobalLogging$.initial(GlobalLogging.scala:40) at sbt

adb on OSX Lion, but can't connect to galaxy 10.1 tab, but works fine in linux

别等时光非礼了梦想. 提交于 2019-12-04 22:35:42
问题 I am trying to connect to a Galaxy Tab 10.1 running Android 3.2 I have seen several similar questions, but they all seemed to be related to having the device setup incorrectly. I have it set to allow "Unknown Sources" and I also have "Usb Debugging" enabled. I am able to use adb on both linux and windows machines so my tablet would seem to be correctly setup and the cable is functioning correctly. When I plug it in to my macbook pro the tab responds with a ping to show it is aware of the

Unable to download nltk data

倖福魔咒の 提交于 2019-12-04 22:35:11
问题 import nltk nltk.download() It shows [SSL:CERTIFICATE_VERIFY_FAILED] . In case of requests one can use verify=False , but what to do here. UPDATE: This error persists on Python 3.6, with NLTK 3.0, on Mac OS X 10.7.5: Changing the index in the NLTK downloader (suggested here) allows the downloader to show all of NLTK's files, but when one tries to download all, one gets another SSL error (see bottom of photo): 回答1: I had the same problem when trying to configure both nltk and SpaCy. Per the