osx-mountain-lion

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

◇◆丶佛笑我妖孽 提交于 2019-12-03 05:51:21
问题 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? 回答1: 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

Linking error for inline functions

梦想与她 提交于 2019-12-03 05:37:13
I am trying to compile the sample code "SonofGrab" using XCode 4.5.1 on OS X 10.8. One function is defined like this in controller.m inline uint32_t ChangeBits(uint32_t currentBits, uint32_t flagsToChange, BOOL setFlags); This leads to this error message: Undefined symbols for architecture x86_64: "_ChangeBits", referenced from: -[Controller awakeFromNib] in Controller.o [...] ld: symbol(s) not found for architecture x86_64 Removing the inlining of the function ChangeBits solves the problem, but why does the linker not find Changebits with the original definition ? That to me, looks like a bug

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

房东的猫 提交于 2019-12-03 05:11:34
问题 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

Gatekeeper signing for OSX DMGs outside of OSX/XCode/Mac App Store?

落爺英雄遲暮 提交于 2019-12-03 05:08:07
From looking at notes for the upcoming OSX version (the one after OSX Lion), it appears that all DMGs/installers need to be signed, even if not distributed via the Mac App store. I couldn't find a command-line tool to do this signing though, or much documentation about obtaining a signing cert without submitting to the App Store. Can someone shed light on: 1) How to obtain a certificate without distributing you app via the Mac App Store? 2) How to sign a DMG without using built-in XCode tools (preferable a cross-platform tool)? Thanks! Codesigning is described in detail here and here -

Paramiko — using encrypted private key file on OS X

倾然丶 夕夏残阳落幕 提交于 2019-12-03 04:58:57
I'm trying to use Paramiko to connect to an SSH server from Python. This is what I tried so far: >>> import paramiko >>> import os >>> privatekeyfile = os.path.expanduser('~/.ssh/id_rsa') >>> mykey = paramiko.RSAKey.from_private_key_file(privatekeyfile) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/pkey.py", line 198, in from_private_key_file key = cls(filename=filename, password=password) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Pycrypto install fatal error: gmp.h file not found

偶尔善良 提交于 2019-12-03 04:57:55
问题 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.

OSX 10.8 xcrun (No such file or directory)

99封情书 提交于 2019-12-03 04:42:36
问题 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

Upgrading to Mountain Lion and XCode 4 broke my “make”?

非 Y 不嫁゛ 提交于 2019-12-03 04:29:52
TL/DR: I upgraded stuff and now I can't run "make" - wtf? I just upgraded from Mac OS X 10.6 to 10.8 Mountain Lion, and then installed XCode 4 (formerly I had Developer/Applications/Xcode (3.something). XCode 4 installed through the App Store application to /Applications. Somewhere along the way, I can no longer run the "make" command. And I've tried looking in all the usual /bins but can't find a "make". Anyone know how to get my "make" command back? Upgrading Apple stuff always breaks something... (it also broke my "git" command but I got that one back) torrey.lyons You need to install the

beginner python on mac osx 10.8

混江龙づ霸主 提交于 2019-12-03 03:45:43
I'm learning programming and have been working with Ruby and ROR, but feel I like Python's language better for learning programming. Although I see the beauty of Ruby and Rails, I feel I need a language more easy to learn programming concepts, thus Python. However, I can't seem to find a community online or offline that work on Apple osx; mostly seems to be PC people for Python. What I like about Ruby is that there is a lot of books, communities, etc, and they tend to have a good amount of Mac resources. Would someone be able to point me to an google groups, forums, etc for beginner Python

403 Forbidden error when accessing localhost on Mac OS X10.8

天大地大妈咪最大 提交于 2019-12-03 03:31:08
I have followed this tutorial to set up Apache, MySql and PHP on Mac OS X 10.8 ( http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion ) When I go to 'Localhost' I get the following error: Forbidden You don't have permission to access / on this server. When I go to 'Localhost/~benthompson' it works fine. When I was halfway through the tutorial, 'Localhost' did work, its something later on that stopped it working. Presumably its a permissions issue, but where? To fix that issue check this link http://www.coolestguidesontheplanet.com