osx-mountain-lion

How to fix pg_dump version mismatch errors?

强颜欢笑 提交于 2019-11-27 12:05:43
When trying to get local data to Heroku, I am encountering a version mismatch between two different versions of pg_dump. Specifically, I am getting this message: pg_dump: server version: 9.2.2; pg_dump version: 9.1.4 pg_dump: aborting because of server version mismatch I have found others with this problem, but do not know enough to implement the proposed solutions. (I am new to Ruby on Rails, PostgreSQL, Heroku, and the Mac! Very much at the stage of playing around the picking things up as I go.) I was thinking I might simplify my life if I uninstalled all PostgreSQL on my local machine and

Mountain Lion rvm install 1.8.7 x11 error

一笑奈何 提交于 2019-11-27 10:11:29
After update to Mountain Lion, I tried install 1.8.7, and I got error. X11 file not found, I installed Xquarkz, but nothing changed. Whats wrong? Fail to find [tclConfig.sh, tkConfig.sh] Use MacOS X Frameworks. Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. clang -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-06-29\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -DWITH_TCL_ENABLE_THREAD=0 -fno-common -g -O2 -fno-common -pipe -fno

ImageMagick: Error while running convert: convert: unable to read font

我是研究僧i 提交于 2019-11-27 10:05:01
问题 I'm on Mountain Lion and installed ImageMagick using Homebrew (minimagick is also in my Gemfile but I don't think that's relevant). SimpleCaptcha uses it in a Rails app to create CAPTCHAs. However, the image isn't created cause of this error: Error while running convert: convert: unable to read font `/usr/local/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1123. convert: Postscript delegate failed `/var/folders/gd/n7rzfhkd5jd0ws8jnzsz34hr0000gn/T/magick-vzHHz4ZP': No

Install gitk on Mac

冷暖自知 提交于 2019-11-27 09:02:53
问题 Does anyone know how to install gitk on Mac? From their official website, it seems gitk comes with git, but the version of my git ( git version 1.7.12.4 (Apple Git-37) ) does not come with gitk. brew install gitk does not work for gitk. Version info (copied from comments): OS X 10.8.2 (12C2034) "Mountain Lion" XCode Version 4.6 (4H127) 回答1: Correct, the 1.7.12.4 (Apple Git-37) does not come with gitk. You can install a more recent version of git which comes with gitk by using brew. More

GLUT on OS X with OpenGL 3.2 Core Profile

点点圈 提交于 2019-11-27 08:57:37
Is it possible to use GLUT on OS X Lion or OS X Mountain Lion using core profile (so I can use GLSL 1.50)? Can I use the built in GLUT or do I need to use a third-part library such as FreeGLUT? And is there any simple 'Hello world' applications available for OS X with either an XCode project or a make-file? You need at least Mac OS X Lion (OS X 10.7 or higher) for the basic support of OpenGL 3.2. To use the OpenGL 3.2 Core Profile, just add glutInitDisplayMode(GLUT_3_2_CORE_PROFILE | ... | ...); in your main -function. You can check it by std::printf("%s\n%s\n", glGetString(GL_RENDERER), // e

Valgrind reports leaked memory on OS X 10.8.1

烈酒焚心 提交于 2019-11-27 08:02:59
问题 I'm using Valgrind version 3.8.0 on OS X 10.8.1, Mountain Lion. Regarding compatibility with 10.8.1, Valgrind's site says (italics mine): Valgrind 3.8.0 works on {x86,amd64}-darwin (Mac OS X 10.6 and 10.7, with limited support for 10.8). I know, then, that there is only "limited support" for 10.8.1. Nonetheless, this bug report says (italics mine): This (the latest 3.8.0 release) makes Valgrind compile and able to run small programs on OSX 10.8. Be warned however that it still asserts with

pip: Could not find an activated virtualenv (required)

扶醉桌前 提交于 2019-11-27 07:24:51
I am trying to instal virtualenv and/or virtualenvwrapper on a mac osx 10.8.3 I have been fighting with python for the last two days. Finally I was able to install python 2.7.4 using brew. Before I had virtualenv installed using easy_install. Then I tried to uninstall it, trying to get my computer in the same situation as the one of my colleagues. Maybe I uninstalled it with success, maybe not. I don't know how to test it. Now I am supposed to install virtualenv using - pip install virtualenv But it gives me - Could not find an activated virtualenv (required). pip install virtualenvwrapper

Send notification to Mountain lion notification center

China☆狼群 提交于 2019-11-27 06:03:54
Can someone give an example of sending a test notification from a Cocoa app to Notifications Center? eg. when I click on an NSButton alexjohnj Notifications in Mountain Lion are handled by two classes. NSUserNotification and NSUserNotificationCenter . NSUserNotification is your actual notification, it has a title, a message etc. that can be set via properties. To deliver a notification that you've created, you can use the deliverNotification: method available in NSUserNotificationCenter. The Apple docs have detailed information on NSUserNotification & NSUserNotificationCenter but the basic

pg gem '0.14.0' on Mountain Lion fails

China☆狼群 提交于 2019-11-27 03:51:44
问题 I just upgraded from OS X Lion to OS X Mountain Lion. My rails environment for the most part stayed in tact. The only steps I had to do to get things back to a good state was: - Install XCode 4.4 - Install XCode 4.4 Command Line Tools - Install gcc-4.2 So all that went well. Here's the issue, almost all my gems install properly when I run bundle install except for one of the most important ones I need - the postgresql gem 'pg'. And it specifically fails for versions above 0.12.2. I'm using

Enumerate All Installed Applications on OS X

℡╲_俬逩灬. 提交于 2019-11-27 02:29:41
问题 Basic problem I'm looking for a solution to enumerate all applications installed on a (Mac) OS X system, i.e. all application bundles registered with LaunchServices. Simple approach that did not work (Please note: lsregister can be found under /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister ). Currently I am using the output of lsregister -dump | grep -E '^.*[ \\t]*path:[ \\t]+(\/.*)$' | grep -Eo '\/.*' , which has a few problems: .app