osx-lion

Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion

雨燕双飞 提交于 2019-11-30 11:36:57
I'm having extensive problems getting rvm to work again under OSX Lion. Unsurprisingly, it seems to be a problem with readline, which is noted in several places. HOWEVER, (and this is an update) it seems that readline itself is not being installed correctly! Here is what I've tried so far: Reinstalling xcode (4.1) (I also removed the Developer folder first.) Cleaning and reinstalling all my ports as per http://trac.macports.org/wiki/Migration Reinstalling readline as per: https://rvm.beginrescueend.com/packages/readline/ Using that specific readline version: rvm install 1.9.2 --with-readline

OS X Eclipse C++ Launch Failed - Binary Not Found

情到浓时终转凉″ 提交于 2019-11-30 11:03:29
问题 I am quite troubled as this shouldn't be causing me such a headache. I've downloaded the most recent Eclipse Indigo and all CDT C++ plugins for MAC OS X 10.7.1/ Upon restarting after installing the above CDT plugins, I've developed a simple 'hello world' c++ application and have tried running the application, "Launch failed. Binary not found." error message. I've read multiple fixes but none have worked. I tried adding the -arch i386 flag to the linker and compiler commands, still no luck.

Where to get macos SDK 10.6 for Xcode?

六眼飞鱼酱① 提交于 2019-11-30 10:26:44
问题 I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks. I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way. I am wondering how can I install previous SDKs for Xcode? 回答1: Unfortunately, Apple tends to make this much harder than you'd like. You can't download

PostgreSQL server wouldn't shutdown on Lion (Mac OS 10.7)

浪尽此生 提交于 2019-11-30 10:10:18
问题 I installed PostgreSQL using Homebrew on Lion. It starts okay but wouldn't shutdown. I tried: $ #started with $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start $ #tried stoping with $ pg_ctl -D /usr/local/var/postgres stop -m immediate waiting for server to shut down................................... failed pg_ctl: server does not shut down I fixed this issue by deleting the Launch Agent: launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist

tracking file renaming/deleting with FSEvents on Lion

做~自己de王妃 提交于 2019-11-30 08:37:40
I'm trying to use FSEvents to detect when files were added/removed from a specific folder. For the moment, I implemented a simple wrapper around FSEvents, and it works fine : I get all the events. BUT the problem I have now is that when I rename a file in the Finder, I catch 2 distinct events : the first one of type "renamed" with the old file name, and another one with "renamed" and the new filename. The event ids are different between both calls. So, how am I supposed to know which "renamed" event contains the old name, and which event contains the old one ?? I tried looking in the

Permission denied error when trying to install pip in Mac OS X Lion

[亡魂溺海] 提交于 2019-11-30 08:35:38
I'm trying to install pip on a Mac (OS X Lion). It doesn't seem to work. I use sudo and prompted for password. $ sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 85929 100 85929 0 0 63833 0 0:00:01 0:00:01 --:--:-- 99339 Downloading/unpacking pip Downloading pip-1.2.tar.gz (94Kb): 94Kb downloaded Running setup.py egg_info for package pip warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '*.txt' found

Change the wallpaper on all desktops in OS X 10.7 Lion?

本小妞迷上赌 提交于 2019-11-30 08:27:27
I would like to change the wallpaper of all desktops (formerly "spaces") on a screen. As of OS X 10.6 there is a category to NSWorkspace which allows the setting of the wallpaper, however, when I use this function only the wallpaper of the current desktop gets changed and all the other desktops remain unchanged. I then looked at the desktop preferences plist and wrote a class that modifies it to reflect the changes I want (basically set a new image file path). After the new file was saved I sent the com.apple.desktop "BackgroundChanged" notification - Google if you don't know what I am talking

Lion (10.7) Not supporting Convert(1). Dylib error

依然范特西╮ 提交于 2019-11-30 07:52:29
When trying to use convert(1), I get the following error: dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /usr/local/bin/convert Reason: image not found Trace/BPT trap: 5 Any idea how I could fix it ? Callmeed I was getting this error as well–with a homebrew install of ImageMagick. Along the same lines as Pascal, I fixed it with Install XCode 4.1 (from the App Store) In Xcode, go to Xcode > Preferences... > Downloads tab > click Install next to Command Line Tools Uninstall ImageMagick with brew uninstall imagemagick

Bundle update & install fail after OS X lion upgrade - Rails 3

偶尔善良 提交于 2019-11-30 07:10:45
问题 I Just updated to OS X Lion, and now when I run bundle update and bundle install , they both fail for different reasons. Bundle Install gives me this error: Using friendly_id (3.2.1.1) Installing json (1.5.3) with native extensions /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for re.h... ***

How to develop in Java on Mac with OSX Lion

妖精的绣舞 提交于 2019-11-30 04:56:56
Im a new Java developer and was thinking about getting a Mac. But I heard that OSX Lion does not support Java. Does that mean that I cannot develop Java on a Mac? Or that I just have to go get all the Java downloads myself? What it means for right now, is nothing has changed, except that the JDK 6 and on is now a separate download via Software Update. For JDK 7 it will be available from Oracle, maybe even through the App Store if we are lucky! What has happened is Apple has quit mangling their own JDK into the OS and delegating responsibility to Oracle to supply a JDK for OSX going forward .