osx-lion

Django 1.3.1 compilemessages. Error: sh: msgfmt: command not found

∥☆過路亽.° 提交于 2020-01-20 03:51:25
问题 ./manage.py compilemessages throws this error: sh: msgfmt: command not found I am running Mac OS 10.7, and I can't find the download path for the msgfmt program. Is there any way to resolve this problem? Thanks in advance! 回答1: [update] TLDR; as Dogukan commented: Mac OS Maverics brew install gettext; brew link gettext --force worked for me. [update] user Lajarre reported: as of today (March 2014), I had to do brew install msgpack . You need GNU gettext and gettext-tools. If you use fink, try

Howto “sandbox” my Lion application?

一笑奈何 提交于 2020-01-13 08:32:10
问题 Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide. This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single

Howto “sandbox” my Lion application?

喜夏-厌秋 提交于 2020-01-13 08:32:04
问题 Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide. This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single

Xcode 4.4 - There was an internal API error

风流意气都作罢 提交于 2020-01-13 08:29:08
问题 Hi I just upgraded to Mountain Lion. I created an empty Single View Application and run it. The first time it runs fine but the next runs will give me the "There was an internal API error" pop-up warning TWICE. It's the same with my other projects. They run okay once but gets this error the next runs. There was no warning or any specific warning message of any kind. Any idea how to solve this? Would really appreciate your help. 回答1: I have it working on iOS6 Beta 4!! This is what I did but

How to get virtualenv to work after upgrading to Lion?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-13 00:17:11
问题 I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand that there are new Python installations after the upgrade and no site packages and have tried installing pip and virtualenv again as well as upgrading to Xcode4 but I always get this error: ~ > virtualenv --distribute env New python executable in env/bin/python Installing distribute........ Complete output from command /Users/jaderberg/env/bin/python -c "#!python \"\"\"Bootstra... main(sys.argv[1:]) " -

Why is FF on OS X losing jQuery-UI in click event handler?

眉间皱痕 提交于 2020-01-11 12:05:14
问题 In a web page using jQUery 1.7.1 and jQUery-UI 1.8.18, if I output $.ui in an alert box when the document is ready, I get [object Object]. However when using Firefox, if I output $.ui in a click event handler, I get 'undefined' as result. With other browsers (latest versions of IE, Chrome and Safari), the result is still [object Object] when clicking on the link. Here is my HTML Page: <!doctype html> <html> <head> <title></title> <script src="Scripts/jquery-1.7.1.js" type="text/javascript"><

How to run Java programs from the terminal?

一世执手 提交于 2020-01-11 06:54:08
问题 I am trying to run a Java program from my Terminal. I have Mac OS X 10.7. teamL javac -jar kxml2-2.3.0.jar XMLHandler.java ServiceEndpoint.java TeamL.java This is my Eclipse class file structure: I am not able to find why is this throwing Unable to access jarfile kxml2-2.3.0.jar ? 回答1: If you are referencing any external libraries, then you have to add them to the classpath . You can add it during compilation of the classes this way. Go to the src directory and : javac -classpath ".:<path_to

pkg-config cannot find .pc files although they are in the path

大憨熊 提交于 2020-01-10 18:53:27
问题 I am seeing a strange issue with pkg-config on Mac OSX-Lion. When running the python setup for module that I downloaded I receive the following error: aspen:python toddysm$ sudo ./setup.py install Password: `pkg-config --libs --cflags cld` returns in error: Package cld was not found in the pkg-config search path. Perhaps you should add the directory containing `cld.pc' to the PKG_CONFIG_PATH environment variable No package 'cld' found The `cld` C++ library is absent from this system. Please

Running Eclipse on Mac OS X Lion

微笑、不失礼 提交于 2020-01-10 08:41:59
问题 Eclipse runs fine, but I lost the error/warning/todo vertical bar on the right (right next to the new scroll bar). Does anyone has the same problem? Thanks! 回答1: Same, ahhhh how do you fix this, SOOO annoying Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now. 回答2: Now that the Eclipse team

Running Eclipse on Mac OS X Lion

送分小仙女□ 提交于 2020-01-10 08:41:27
问题 Eclipse runs fine, but I lost the error/warning/todo vertical bar on the right (right next to the new scroll bar). Does anyone has the same problem? Thanks! 回答1: Same, ahhhh how do you fix this, SOOO annoying Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now. 回答2: Now that the Eclipse team