osx-mountain-lion

Uninstall python.org version of python2.7 in favor of default OS X python2.7

那年仲夏 提交于 2019-12-02 20:57:43
I'm running OS X 10.8.2 and I believe that by default this comes with Python 2.7.3. I previously had Python 2.7.2 installed from python.org and would like to scrap it to basically reset my system's default python to that which comes pre-installed. The reason being that whenever I launch any *.py file IDLE refuses to open (even when specifying my installed Python2.7.2 IDLE) and I want to get things up to date. Although I never use it, I do have MacPorts installed and I'm seeing that it did a bunch of stuff to my Python path - notably changing my Python 2.7 path to "/Library/Frameworks/Python

Mac OS X Mountain Lion “Rails is not currently installed on this system.”

烂漫一生 提交于 2019-12-02 19:36:00
I am on a fresh install of OS X Mountain Lion. I have installed rails via: sudo gem install rails Everything seems to install correctly, but when I type the rails command (rails s, rails -v, etc), I get this error: Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. The result of ' which rails ' is /usr/bin/rails I thought it was a path issue, and perhaps it is, but I can see that /usr/bin is part of my PATH. Any help? Thanks! UPDATE: I noticed everything on my other mac with same exact OS

How to install Image Magick for MAMP (Pro) on Mountain Lion (10.8.2)

拈花ヽ惹草 提交于 2019-12-02 18:19:39
I've been searching for a way to install Image Magick on my Mountain Lion setup (where I use MAMP Pro). I did find this article , but it isn't specific to ML. Also found a couple other similar questions here on SO but they were too specific I think. Doesn't help that I'm not great at this sort of thing. Can anyone point me to a good resource? erwinheiser Make sure you check out Joel Farris' answer if you're using an up-to-date version of MAMP I finally managed to get it installed properly using Homebrew and the instructions here: http://egoco.de/post/23167969231/installing-imagemagick-for-php

Pycrypto install fatal error: gmp.h file not found

余生颓废 提交于 2019-12-02 17:27:48
It seems like there are a number of people who have had a similar problem, however, after much searching I haven't been able to find a solution that works with my particular architecture. I'm trying to install Pycrypto (as a subsidiary of Fabric) to no avail. I'm running Mac 10.8.2, python 2.7.3 via Homebrew, and XCode 4.6 -- installing with pip or easy_install (I've tried both). From what I can tell, the problem could either be with respect to my version of XCode or because of my libraries. The Command Line Tools for XCode have been installed and I have tried placing setenv ARCHFLAGS "-arch

NSUserNotification not showing action button

放肆的年华 提交于 2019-12-02 17:16:30
I'm using this code: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application NSUserNotification *notification = [[NSUserNotification alloc] init]; [notification setTitle: @"Title"]; [notification setSubtitle: @"Subtitle"]; [notification setInformativeText: @"Informative Text"]; [notification setHasActionButton: YES]; [notification setActionButtonTitle: @"Action Button"]; [notification setOtherButtonTitle: @"Other Button"]; [notification setSoundName: NSUserNotificationDefaultSoundName]; [notification setDeliveryDate: [NSDate

OSX 10.8 xcrun (No such file or directory)

让人想犯罪 __ 提交于 2019-12-02 17:09:11
When executing gem install jekyll on OSX 10.8 with the standalone Command Line Tools package from Apple's Developer site installed (no Xcode), i run into the following error: Building native extensions. This could take a while... ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. … xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe

How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path? [closed]

六眼飞鱼酱① 提交于 2019-12-02 15:29:05
since Mountain Lion still uses the old bash 3.x, I was wondering if there is a good tutorial (or if somebody could post one here) on how to upgrade bash to the latest version. Also, it would be helpful to know how to set the path so that it can be used in terminal. Thanks in advance k107 Update brew: brew update Install bash with brew install bash Add /usr/local/bin/bash to /etc/shells Change the default shell with chsh -s /usr/local/bin/bash You don't normally have to change any settings in Terminal or iTerm 2. Both of them default to opening new shells with the default login shell. 来源: https

Maven not found in Mac OSX mavericks

你离开我真会死。 提交于 2019-12-02 14:48:14
After upgrading my Mac OSX 10.8 to 10.9, Maven not found in the /usr/share path but its installed in 10.8. when I try this command: $ maven -version got this result -bash: mvn: command not found but it worked fine on 10.8? Any idea? Maven is not installed any more by default on Mac OS X 10.9. You need to install it yourself, for example using Homebrew . if you don't want to install homebrew (or any other package manager) just for installing maven, you can grab the binary from their site: http://maven.apache.org/download.cgi extract the content to a folder (e.g. /Applications/apache-maven-3.1.1

PHP mail() no longer works after update to OSX Mountain Lion

浪尽此生 提交于 2019-12-02 14:18:18
I just updated OS X to Mountain Lion yesterday, but the php function mail() does not work anymore. Before updating, the PHP mail() function worked fine, Apple mail works fine. After updating, Apple mail works fine, but PHP mail() function DOES NOT work. Webserver: XAMPP 1.7.3 I use this code to test the mail() function: if (mail($to, $object, $content, "From: ". $from)) { echo 'send '; } else { echo "not send"; } It shows: not send Anything I have to change? such as the php.ini or something else? Thanks in advance. Globalfish Finally I found the solution. After looking at the error_log (

NumPy in IDLE (Python 3.3.2) on Mac OSx 10.8

蓝咒 提交于 2019-12-02 13:13:38
问题 I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can