osx-snow-leopard

rails - postgres error: Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later,

烂漫一生 提交于 2019-11-30 13:44:55
I am stuck with the setup of Ruby (1.9.3), Rails and Postgres (9.0.8) on my Mac (10.6.8). Everytime when I run rails console I get the following error: /Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg.rb:4:in `require': dlopen(/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg_ext.bundle, 9): Library not loaded: @loader_path/../lib/libssl.dylib (LoadError) Referenced from: /usr/lib/libpq.5.dylib Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later, but libssl.0.9.8.dylib provides version 0.9.8 - /Users/dc/.rvm/gems/ruby-1.9.3-head

Downloading MacPorts dependencies without installing

社会主义新天地 提交于 2019-11-30 13:04:08
The default MacPorts installation downloads each dependency, builds and installs it, then downloads, builds and installs the next dependency, and so on. This means that a constant network connection is required throughout the installation. In my configuration, a constant network connection is not feasible. This means that installation of a large-dependency package can take a very long time. How do I download all dependencies for a specified MacPorts package at the beginning (while connected to the network) and then build and install each dependency (no network connection required)? While

Where to get macos SDK 10.6 for Xcode?

六眼飞鱼酱① 提交于 2019-11-30 10:26:44
问题 I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks. I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way. I am wondering how can I install previous SDKs for Xcode? 回答1: Unfortunately, Apple tends to make this much harder than you'd like. You can't download

Suggested resources for learning about blocks

人盡茶涼 提交于 2019-11-30 09:09:44
What are some good suggested resources for learning about blocks and GCD in Mac OS X and iOS I would start with Apple's Blocks Programming Topics document or with Programming with Blocks on Apple Devices . As gs mentioned, also check out Mike Ash's articles (and also subscribe to his RSS feed, as I'm sure more blocks-related posts will come up): Friday Q&A 2008-12-26 Friday Q&A 2009-08-14: Practical Blocks Friday Q&A 2009-08-28: Intro to Grand Central Dispatch Part 1 There is a great introduction at bbum's weblog: Basic Blocks Mike Ash has written two articles about blocks in his blog: Friday

Change php.ini location

谁都会走 提交于 2019-11-30 08:27:37
Is it possible to change the location of php.ini to be used by Apache? When I did php -i | grep 'Configuration File' , the result is: Path => /usr/local/etc Loaded Configuration File => /usr/local/etc/php.ini But the result of phpinfo() is Configuration File (php.ini) Path : /etc I can copy over php.ini from /usr/local/etc/ to /etc/ , but is it possible to change the php.ini folder? I installed PHP using homebrew and I am using OS X Snow Leopard. PHP uses different .ini files when running via command line vs running as a web server module. When you grep the results of php -i your getting the

How do you fix an SVN 409 Conflict Error

元气小坏坏 提交于 2019-11-30 07:08:56
I used to use SVN 1.4 on OS X Leopard and everything was fine. A couple of weeks ago I installed a fresh copy of OS X 10.6. The version of SVN that comes with Snow Leopard is 1.6.5. I went ahead and built my own copy with 1.6.6. I'm using the built in apache server and just hosting repositories locally. Everything appeared to work fine until I actually tried to commit something. Everytime I try to commit a change, I get the following message: Transmitting file data .svn: Commit failed (details follow): svn: MERGE of '/svn/svn2': 409 Conflict (http://localhost) This happens with my old

Import iOS 6 SDK into Xcode 4.2 on Snow Leopard

半腔热情 提交于 2019-11-30 06:33:54
问题 I installed Xcode 4.2 on a Snow Lopard and when iOS SDK was published I imported the iOS 5.1 SDK following this topic Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard? Now I need to import iOS 6 SDK and I would know if this tutorial is still working for iOS 6 SDK. Thank you! 回答1: I tried following the tutorial that you have linked. It works perfectly for me. Just copy "6.0" instead of "5.1". 回答2: This worked for me (after "su -", so I'm running as root), and with the Xcode

Testing file existence using NSURL

僤鯓⒐⒋嵵緔 提交于 2019-11-30 05:55:18
问题 Snow Leopard introduced many new methods to use NSURL objects to refer to files, not pathnames or Core Services' FSRefs. However, there's one task I can't find a URL-based method for: Testing whether a file exists. I'm looking for a URL-based version of -[NSFileManager fileExistsAtPath:]. Like that method, it should return YES if the URL describes anything, whether it's a regular file, a directory, or anything else. I could attempt to look up various resource values, but none of them are

Writing a Snow Leopard Service for Finder.app

烂漫一生 提交于 2019-11-30 02:28:17
I am currently looking into solving the problem with the inability to quickly create new files in the Finder. I will open source what I write because I think the Mac community needs this solved. On Windows, you can right-click, create new text file. OS X, you should be able to do this with a service which would work like this: Right-Click > Services > Create New Text File Writing a Finder Service in Snow Leopard is theoretically the way to accomplish this, although I haven't been able to find any sample code. (I'll admit I've only looked at the documentation very briefly). I'm not sure how to

How do I host multiple MVC3 sites on a single virtual host running Apache2?

社会主义新天地 提交于 2019-11-30 00:30:50
问题 I'm trying to configure mod_mono with Apache2 on OSX. I would like to run multiple MVC3 projects on the same virtual host, but for some reason only the first one listed is working. Any help on this would be much appreciated as there is not much documentation on this. I've tried a lot of different config options, none of which seem to work. Listen *:9005 <VirtualHost *:9005> DocumentRoot "/Library/WebServer/vhosts/api" ServerName api MonoAutoApplication disabled Alias /gamecenter "/Library