osx-mountain-lion

Too many pythons on my Mac OS X Mountain Lion

醉酒当歌 提交于 2019-12-05 22:15:39
I updated to Mountain Lion not long ago, and having used python previously, I now have 8 (yes, 8) versions of python installed on my computer. $ ls -l /System/Library/Frameworks/Python.framework/Versions/ total 8 drwxr-xr-x 6 root wheel 204 Jun 20 16:23 2.3 drwxr-xr-x 11 root wheel 374 Aug 22 13:32 2.5 drwxr-xr-x 11 root wheel 374 Aug 22 13:32 2.6 drwxr-xr-x 11 root wheel 374 Aug 22 13:32 2.7 lrwxr-xr-x 1 root wheel 3 Jul 29 17:41 Current -> 2.7 I would love to erase all of them and clean everything up, and I prefer to set all paths to the system python that comes with Mountain Lion. My goal

Matlab 2012a Mex to work with Xcode 4.5 on Mountain Lion

给你一囗甜甜゛ 提交于 2019-12-05 17:29:56
I have Mountain Lion installed with Xcode 4.5 and Matlab 2012a. I installed and ran the patch supplied on the MathWorks website however I still received the following error: /Applications/MATLAB_R2012a.app/bin/mex: line 305: llvm-gcc-4.2: command not found /Applications/MATLAB_R2012a.app/bin/mex: line 1326: llvm-gcc-4.2: command not found mex: compile of ' "hello.c"' failed. Error using mex (line 206) Is there a known solution for that ? Solution: Open Xcode --> Preferences --> Downloads --> Install "Command Line Tools" The MathWorks patch is still needed. Resolved issue for me. You don't need

Mac Code Signing: Bypass the Keychain Access private key prompt from Terminal

无人久伴 提交于 2019-12-05 15:44:32
问题 I'm working on an app in Mac OS X Mountain Lion that needs to access the private key of some of my certificates within the Keychain Access. Since this app is going to run on a server, I need to avoid the pop up dialog that requires the user to allow the app to access the private key: I know that by clicking "Always Allow" the dialog won't popup anymore for that private key, the problem is that I will be working with different keys. Thanks in advance, Mikywan. 回答1: The only way I found to

How to sign a Mac OS X application in Linux?

↘锁芯ラ 提交于 2019-12-05 12:24:33
问题 For OS X, I distribute my Java application inside a DMG. Since Mountain Lion's release, opening the app gives the following error message: [app name] is damaged and couldn't be opened. You should eject the disk image. Apparently the fix is to sign the .app file so I read the Code Signing Guide. Everything seems to be straightforward apart from the important question of how to integrate this into my one-click build process . Building my product on all platforms happens on my Linux development

Cross Compiling libogg for iOS

≯℡__Kan透↙ 提交于 2019-12-05 05:53:43
问题 I've been trying to cross compile libogg for armv6, armv6 and i386 using the iOS 5.1 SDK in Mountain Lion. Libogg uses autoconf, and I've been having pretty similar issues with a few other libraries as well. I picked up a neat little cross-compiling script from here. I had to update it a bit to find the location of the SDK's. GLOBAL_OUTDIR="`pwd`/dependencies" mkdir -p $GLOBAL_OUTDIR/include $GLOBAL_OUTDIR/lib OUTDIR="./outdir" OGG_LIB="`pwd`/libogg-1.3.0" IOS_BASE_SDK="5.1" IOS_DEPLOY_TGT="3

Crash of Garbage Collection Work Queue if dylib is loaded

删除回忆录丶 提交于 2019-12-05 00:23:09
We are porting an app from 10.6 to 10.8. I am looking at dylib we load in app. I am facing very unusual crash in Garbage Collection Work Queue with following message. malloc: Thread::suspend(): unable to suspend a thread: err = 268435459, Thread 0x111000000: _pthread = 0x108129000, _thread = 0x8b07, _stack_base = 0x108129000, enlivening on, 0 local blocks For application GCC_ENABLE_OBJC_GC = required is set. If I have GCC_ENABLE_OBJC_GC = required in dylib it will still crash. I cannot turn off garbage collector in application. I have to manage it crash from my dylib. Reason for crash turns

Installing PyGame onto Mountain Lion OS

ぐ巨炮叔叔 提交于 2019-12-04 23:56:32
问题 Okay, so I've completely given up. I've tried about a thousand different walkthroughs to solve my problem, on every website I can find, but I either get stuck and no one knows the answer, or they just don't work. So has anyone got an answer to installing PyGame onto Mountain Lion that they know 100% works and they can walk me through it as if I'm 6 years old? I just want to run PyGame and this is driving me insane. Cheers. 回答1: Ok, I'm running OSX 10.8.3 (Python 2.7.3), and I got pygame (1.9

phpize reports “Cannot find config.m4”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 22:15:14
I am trying to run the 'phpize' command on MacOSx Mountain Lion, but this is what I get: Cannot find config.m4. Make sure that you run '/opt/local/bin/phpize' in the top level source directory of the module How do I resolve this error ? The phpize command is meant to be run at the top level of an extension source dir (this source dir should contain a file name config.m4). See http://php.net/manual/en/install.pecl.phpize.php for more information. In plain English, it means you're running the command from the wrong directory. You need to be in the directory that contains the source for the

Install ree-1.8.7 with RVM on Mountain Lion [duplicate]

怎甘沉沦 提交于 2019-12-04 18:44:51
问题 This question already has answers here : Mountain Lion rvm install 1.8.7 x11 error (5 answers) Closed 5 years ago . I had a fresh install of Mountain Lion and installed the Xcode Command Line Tools , . I was able to get homebrew running and installed RVM . Unfortunately, I can't get RVM to install ree-1.8.7-head . It fails when compiling. I thought it was related to X11, so I installed XQuartz . Still no joy. Then I went ahead and installed the full Xcode from the app store . Still no joy.

rvm can no longer install 1.8.7-p352 on Mac OS X Mountain Lion

丶灬走出姿态 提交于 2019-12-04 16:49:27
问题 I upgraded rvm to 1.15.8, then went back down to 1.15.7 after having some problems in zsh. After downgrading, my Ruby 1.9+ versions went back in fine, but 1.8.7 won't install again. There are two errors that are occurring: Error running 'patch -F 25 -p1 -N -f <"/Users/me/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch"', please read /Users/me/.rvm/log/ruby-1.8.7-p352/patch.apply.stdout-rouge-fix.log The contents of that file are: [2012-09-11 01:05:59] patch -F 25 -p1 -N -f <"/Users/me/.rvm