osx-snow-leopard

Installing RMagick gem — Can't find MagickWand.h

萝らか妹 提交于 2019-11-29 03:48:50
I am installing the rmagick gem on OSX 10.6.8, using gem install rmagick , and I am getting the following error Can't install RMagick 2.13.1. Can't find MagickWand.h. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users

Ruby on Rails Beta 3 Install on Snow Leopard - file not found

冷暖自知 提交于 2019-11-29 03:03:37
I tried to install the new beta on my system with the command: sudo gem install rails --pre but no matter what I tried, I still get this damn error: Successfully installed rails-3.0.0.beta3 1 gem installed Installing ri documentation for rails-3.0.0.beta3... File not found: lib Since I'm very new to ruby, I really don't know what to do. How can I finish installing this? Is this installed already? Why does it abort here? balupton All you need to run is gem install rdoc , follow its instructions, then run the install rails command again and you're good. The problem is due to rdoc failing to

How to force /usr/bin/gcc -> /usr/bin/gcc -m32?

落爺英雄遲暮 提交于 2019-11-29 02:45:47
I have bad Makefile(s) of a large bundled software distribution. In some point compiler always "forgets" that I want to compile in 32 bit program. This causes that part of the programs have 64 bit libraries and others have 32 bit libraries. How can I force -m32 option every time that I run gcc? br, Juha P.S. My environment is mixed 32/64 bit (macbook5.1, snow leopard). Alternatively: How can I make my system purely 32 or 64 bits? edit: Emphasis on the bad Makefiles that override the global variables. Thats why I chosed the hack that works. If you want a crappy hack, you could replace /usr/bin

The application cannot be opened because its executable is missing

假如想象 提交于 2019-11-29 01:37:08
I have an application that I have been developing for some time now. Recently launching the application via a double click presents a dialog that says "You can't open the application RepoWatch because it may be damaged or incomplete." Launching the application via open ./RepoWatch.app gives me "The application cannot be opened because its executable is missing." I usually launch the application via ./RepoWatch.app/Contents/MacOS/RepoWatch simply out of habit (which DOES work), so I am unsure how long this has been happening, or what change happened immediately before hand. The most likely

Mac Terminal - How to start Android Virtual Device Manager on CLI?

独自空忆成欢 提交于 2019-11-28 23:18:01
I am currently developing a mobile web application and I don't have a test device yet so I'm using the android-emulator to check the site. On my mac, I have installed the stand-alone Android SDK. Every time I want to use the AVD Manager, I have to execute the following on my terminal: monitor This command (being executed on the installed android sdk path) will open the Android Device Monitor and from here, I go to its menu bar and select Window Virtual Device Manager just to open the AVD Manager. So, is there a shortcut for that? I mean, i want to directly open the AVD manager via cli . In

adb devices list empty — Snow Leopard [closed]

浪子不回头ぞ 提交于 2019-11-28 22:51:50
I'm running into an issue with the android SDK where it doesn't recognize devices plugged in via usb: $adb start-server * daemon not running. starting it now on port 5037 * * daemon started successfully * $adb devices List of devices attached (list is empty, other sdk tools don't recognize the devices either) According to the SDK documentation, on Mac OS X, this should "just work". (Setting up a Device for Development) It's worked for me in the past, but seems to have just stopped. Is there an OS X solution to this problem? (On other operating systems presumably you have to fiddle with USB

“no matching architecture in universal wrapper” when importing pygame

一个人想着一个人 提交于 2019-11-28 21:35:57
I'm on a MacBook Pro running Snow Leopard 10.6.8 and Python 2.7.2. I went on the pygame website, downloaded and installed all the required frameworks and programs, compiled and installed pygame, but I cant import the module into python. I downloaded an example program off of the pygame website and every time I run it I get this error: Traceback (most recent call last): File "/Users/jesse/Downloads/PurpleMines/PurpleMines.py", line 3, in <module> from pygame import * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>

Install Python 2.7.1 side-by-side with Apple-supplied Python

有些话、适合烂在心里 提交于 2019-11-28 20:47:24
I have just downloaded the Python 2.7.1 DMG from Python.org . I have seen suggestions to get ActivePython, but I would prefer the one from Python.org. If I just run the mpkg installer inside the DMG, accepting all defaults, will it live peacefully with the Apple-supplied Python? If I type python in Terminal, which one will I get? In Terminal, how do I specify to run the Apple-supplied Python? What about the Python I installed myself? What are these talk about setting the PATH when installing a different Python version? I understand that the Python installer will just set it up automatically.

How can you load a font (TTF) from a file using Core Text?

两盒软妹~` 提交于 2019-11-28 20:36:58
问题 Prior to OSX 10.6, ATSFontActivateFromFileSpecification/ATSFontActivateFromFileReference were available and could be used to load a font from a file. I can't find anything similar in Core Text. 回答1: You can get a CTFontRef from a font file by going via a CGFontRef : CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/path/to/font"), kCFURLPOSIXPathStyle, false); CGDataProviderRef dataProvider = CGDataProviderCreateWithURL(url); CGFontRef theCGFont =

Is there a simple way to get image dimensions in Ruby?

丶灬走出姿态 提交于 2019-11-28 20:12:33
I'm looking for an easy way to get width and height dimensions for image files in Ruby without having to use ImageMagick or ImageScience (running Snow Leapard). libimage-size is a Ruby library for calculating image sizes for a wide variety of graphical formats. A gem is available, or you can download the source tarball and extract the image_size.rb file. As of June 2012, FastImage which "finds the size or type of an image given its uri by fetching as little as needed" is a good option. It works with local images and those on remote servers. An IRB example from the readme: require 'fastimage'