osx-mountain-lion

Error when Installing Pygame on Mountain Lion

a 夏天 提交于 2019-11-30 03:17:52
问题 I've been trying to get Pygame running on Mac OS X Mountain Lion and have had problems installing it. I have installed the following packages using homebrew: sdl sdl_image sdl_mixer sdl_ttf smpeg and when trying to compile Pygame (using the latest Mac OS X command line tools provided with Xcode 4.4) I get an error message stating the following: src/scale_mmx64.c:499:27: error: invalid instruction mnemonic 'movsxl' and I have no idea how to solve this issue. Pygame worked perfectly on Mac OS X

Compile simple hello world ZeroMQ C example, compile flags?

不打扰是莪最后的温柔 提交于 2019-11-30 02:33:20
Trying to compile the example hello_world.c from the zeromq tutorial: http://zguide.zeromq.org/page:all#Ask-and-Ye-Shall-Receive Pretty sure I have everything installed in OSX Mountain Lion. clang -Wall hwserver.c -o hwserver gives me an error: Undefined symbols for architecture x86_64: "_zmq_bind", referenced from: _main in hwserver-OgrEe6.o "_zmq_ctx_new", referenced from: _main in hwserver-OgrEe6.o "_zmq_msg_close", referenced from: _main in hwserver-OgrEe6.o "_zmq_msg_data", referenced from: _main in hwserver-OgrEe6.o "_zmq_msg_init", referenced from: _main in hwserver-OgrEe6.o "_zmq_msg

Error Installing Homebrew - Brew Command Not Found

匆匆过客 提交于 2019-11-30 02:00:13
I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed). I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image). As you can see I used the following to instal Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)" While there was a "warning" it seemed as though the installation worked: Warning: /usr/local/bin is not in your PATH. ==> Installation

GCC-4.2 error on Mac OSX Mountain Lion, unable to install mysql-python

回眸只為那壹抹淺笑 提交于 2019-11-30 00:51:32
I'm having trouble building MySQLdb on Mac OSX Mountain Lion. After upgrading to OSX Mountain Lion from OSX Lion, I have downloaded and installed Xcode 4.4 also. Then, I went to Preference > Downloads of the Xcode and installed Command Line Tools. I've downloaded MySQL-python ver. 1.2.3 from http://sourceforge.net/projects/mysql-python/ When I run python setup.py build I get below message: running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-2.7/MySQLdb running build_ext building '_mysql' extension gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2

Detect hardware headphone presses in mac

◇◆丶佛笑我妖孽 提交于 2019-11-30 00:25:40
This question is concerning the code from this question: Detect headphone button presses in OS X Their answer was marked correct, however I couldn't get their code to work (this may be because of my lack of knowledge of objective-c). I followed their instructions, and modified three files. This is what I have tried (I have also looked at Apple's IOKit documentation and could not find any headphone hardware button documentation): AwesomeClass.h #import <Cocoa/Cocoa.h> #include "KeyboardPaneController.h" @interface AwesomeClass : KeyboardPaneController + (NSArray *) allKeyboards; - (void)

Getting Ruby 1.8.7 installed on Mountain Lion (10.8)

无人久伴 提交于 2019-11-30 00:23:05
I'm having a lot of trouble getting Ruby 1.8.7 installed on my clean install of Mountain Lion. I've looked around on Stack Overflow and don't see anything that specifically addresses this issue and hope that someone might have encountered this before. I'm using the command line tools that can be downloaded with Xcode I haven't had any problems installing Ruby 1.9.3 via RVM and HomeBrew. When I try to install 1.8.7 I get the following message after it tries to compile: I first ran the command rvm install 1.8.7 This gave me this error The provided compiler '/usr/bin/gcc' is LLVM based, it is not

Mountain Lion - LibXML & Nokogiri

邮差的信 提交于 2019-11-30 00:01:56
I've just updated to OS X Mountain Lion and I'm getting the following when working with rails and terminal. WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 I've had a look at other answers to a similar question, but they doesn't seem to stop the warning message from appearing. Putting gem 'nokogiri' above gem 'pg' in my Gemfile fixed this for me. My Gemfile didn't have nokogiri in it, but it was a dependency that was in Gemfile.lock, so I put it in my Gemfile explicitly. I was having similar issues installing nokogiri gem on ruby 1.9.2 Apparently

How to compile a servlet for Tomcat in command line? error: package javax.servlet does not exist

早过忘川 提交于 2019-11-29 23:16:52
问题 I've got this error message when I compiled a Java file : error: package javax.servlet does not exist I installed a big .SH file for Jave EE SDK, a Java version gives me this: java version "1.7.0_10" Java(TM) SE Runtime Environment (build 1.7.0_10-b18) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) Do I need to install something else? I am using Tomcat 7 as a Servlet Container located in /Library/Tomcat/ and simple text editor with the command line. 回答1: You need to include

How to fix “yo: command not found” after installing Yeoman

ⅰ亾dé卋堺 提交于 2019-11-29 22:17:13
Following these instructions, I tried to install yeoman using npm twice: http://yeoman.io/learning/index.html After the first failure, I uninstalled node using these instructions: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) Then, I installed nvm and node/npm (via nvm) with one error: [Yeoman Doctor] Uh oh, I found potential errors on your machine --------------- [Error] NPM root value is not in your NODE_PATH [info] NODE_PATH = /Users/joanna/.nvm/v0.10.22/lib/node_modules:. NPM root = /Users/joanna/.node/lib/node_modules [Fix] Append the NPM root value to

env: python\\r: No such file or directory

折月煮酒 提交于 2019-11-29 20:52:25
My Python script beak contains the following shebang: #!/usr/bin/env python When I run the script $ ./beak , I get env: python\r: No such file or directory I previously pulled this script from a repository. What could be the reason for this? falsetru The script contains CR characters. The shell interprets these CR characters as arguments. Solution: Remove the CR characters from the script using the following script. with open('beak', 'rb+') as f: content = f.read() f.seek(0) f.write(content.replace(b'\r', b'')) f.truncate() Open the file in vim or vi, and administer the following command: :set