osx-lion

How can I install Ruby 1.9.3 in Mac OS X Lion?

て烟熏妆下的殇ゞ 提交于 2019-11-26 18:59:07
问题 I am trying to install Ruby 1.9.3 but am having problems. I installed RVM, then typed: rvm install 1.9.3 The output says: ERROR: Error running ' ./configure.... The log says: configure: WARNING: unrecognized options: --with-libyaml-dir checking build system type... x86_64-apple-darwin11.2.0 checking host system type... x86_64-apple-darwin11.2.0 checking target system type...x86_64-apple-darwin11.2.0 checking whether the C compiler works... no configure: error: in `/Users/myuser/.rvm/src/ruby

How to put a tkinter window on top of the others?

家住魔仙堡 提交于 2019-11-26 18:13:33
问题 I'm using Python 2 with Tkinter and PyObjC , and then I'm using py2app . The program is working fine, but the window starts as hidden whenever I open the program, so it doesn't appear until I click on the icon on the dock to bring it up. Is there any way to control this, make the window to be on top of other windows that were open when the application is starting? Just to clarify, it doesn't have to be on the top for the whole time the application is running. I just need it to be on top of

Stop “developer tools access needs to take control of another process for debugging to continue” alert

左心房为你撑大大i 提交于 2019-11-26 17:54:35
问题 I recently upgraded to 10.7.3, and when I try to debug my iOS project in the simulator for the first time after logging in, I'm prompted with the following two alerts: My user is an admin user. I never saw these alerts before. How do I get them to stop? EDIT I've verified that I'm a member of the _developer group using id -a . 回答1: There's a much simpler solution for this. Try running the following command: sudo /usr/sbin/DevToolsSecurity --enable 回答2: enable develoer mode: In Terminal run

How to fix Terminal not loading ~/.bashrc on OS X Lion [closed]

浪子不回头ぞ 提交于 2019-11-26 17:54:14
问题 Whenever I open a new tab in Terminal using Cmd + T , it opens bash in the same directory, as the previous tab. This works fine when I'm in the ~ directory, but if I'm anywhere else, I get an error loading .bashrc Last login: Sat Oct 15 21:10:00 on ttys002 -bash: .bashrc: No such file or directory Jakub-Arnolds-MacBook-Pro:projects darth$ It looks like .bashrc is loaded via relative and not absolute path, because if I do source ~/.bashrc , everything works smoothly. I think this is a OS X

How to run 32-bit Java on Mac OSX 10.7 Lion

不问归期 提交于 2019-11-26 15:38:37
问题 From my experience with Windows 7 (64-bit) and Java, a 32-bit JRE uses less memory and runs significantly faster than a 64-bit JRE (provided you don't need or benefit from having a lot of memory). I imagine the same thing is true for Mac OSX (and other platforms) as well. I am currently running OSX Lion (v10.7), and I have installed the standard Java app. Under Java Preferences, I see "Java SE 6" from "Apple Inc." for both CPU-types "32-bit" and "64-bit" version "1.6.0_26-b03-383". I have

Installing Ruby on Rails - Mac OS Lion

可紊 提交于 2019-11-26 15:16:57
问题 I have downloaded Lion and looking to install Ruby on Rails I have been scanning the web for a way to do this but can't seem to find a easy way, could anyone point me in the correct direction. Help Much Appreciated Thanks 回答1: Below I try to resume my rails installation. It should work well. 1) Download Xcode from Apple Application Store : use this link : xcode 2) Install xcode : Use finder=>applications to locate "Xcode installation icon and double-click on it to begin the installation **2b.

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

柔情痞子 提交于 2019-11-26 14:32:57
I get Illegal Instruction: 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 ("Mountain Lion"), when those binaries are run under Mac OS X 10.7.x ("Lion") and earlier versions. The binaries work properly under Mac OS X 10.8.x. I added -mmacosx-version-min=10.5 to my compile flags and this seems to help resolve the issue for 10.5.x, 10.6.x and 10.7.x clients, whatever that issue is. Which gets to my question(s): What is the Illegal Instruction: 4 error? Why does -mmacosx-version-min=10.x fix this specific error on 10.x and greater clients? I'd like to apply this fix to my

Code signing Error: Application failed codesign verification

Deadly 提交于 2019-11-26 14:16:50
问题 I am very new to iOS development, I have an app all set and ready to be distributed, but I seem to get this error every single time I run the application on my DEVICE only, the iOS simulator works just fine. Heres the full error: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011) Here's the entire log: Validate "/Users/masonsocha/Library/Developer/Xcode/DerivedData

Trackpad gesture to switch to header/source

*爱你&永不变心* 提交于 2019-11-26 12:55:25
问题 I used to be able to use three finger scroll-up to switch between source/header. Since upgrading to Lion, I it just does a regular scroll. Is there any way to get that feature back? Aka, it doesn\'t jump to counterpart when I scroll up / down like it used to. Update Apple fixed the issue in Xcode 4.2. So, upgrade your versions. 回答1: This is the correct and best answer. It works. It is posted by "@Buyin" above. Another individual commented that it doesn't work. He is wrong. It works, I've

Writing a privileged helper tool with SMJobBless()

狂风中的少年 提交于 2019-11-26 12:02:03
问题 Even though the API has been open since Mac OS X Leopard, there\'s surprisingly, and unfortunately, very little documentation on how to correctly use SMJobBless() for creating privileged helper tools. There are a lot of gotchas, even when copying code directly from Apple\'s sample project. Luckily, I\'ve found my way around this, and have gotten the basis for my helper tool working. However, it would seem that SMJobBless() only blesses the tool and copies it over, but doesn\'t run it. I\'ve