osx-snow-leopard

Errors installing some gems on Snow Leopard - libxml2

给你一囗甜甜゛ 提交于 2019-12-01 03:54:52
After upgrading to Snow Leopard, I found that installing some gems no longer worked, including webrat, mechanize etc. Each time I get this error: checking for xmlParseDoc() in -lxml2... no libxml2 is missing. try 'port install libxml2' or 'yum install libxml2' *** 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. And no, I haven't tried installing it with macports, because I forswore macports a couple years back when I discovered I couldn't easily

Broken Java Mac 10.6

拜拜、爱过 提交于 2019-12-01 03:45:34
Some background: On Mac OS X 10.6 using Macports and I have DYLD_LIBRARY_PATH set in my .bash_profile. The problem: When I run java -version I get this error: Error occurred during initialization of VM Unable to load native library: libjava.jnilib By way of one helpful forum thread , I've discovered the problem is some files in my '/opt/local/lib' directory are causing trouble because of the DYLD_LIBRARY_PATH I've set. When I remove the files starting with libgif, libjpeg, libpng and libtiff from '/opt/local/lib', the problem goes away and `java -version' works, but the ports that depend on

Can I install Python 2.7.1 64bit along side of an exsiting 32bit install on OS X?

北城以北 提交于 2019-12-01 03:23:34
问题 Short Description Is it possible to install Python 2.7.1 64/32bit from python.org on top of an existing install (from python.org) of Python 2.7.1 32bit? Background I installed the 32bit version for wxPython(2.8) support which until now has given me zero issues. There are a few modules that I am now having difficultly installing (psycopg2 and mysql-python). The warning messages in homebrew constantly warn me about not having a 64bit version of Python on the path. These warnings only add to my

How to build 64-bit Python on OS X 10.6 — ONLY 64 bit, no Universal nonsense

こ雲淡風輕ζ 提交于 2019-12-01 02:47:02
问题 I just want to build this on my development machine -- the binary install from Python.org is still 32 bits and installing extensions (MySQLdb, for example) is driving me nuts with trying to figure out the proper flags for each and every extension. Clarification: I did NOT replace the system Python, I just installed the Python.org binary into its normal place at /Library/..., not /System/Library/.... Everything else seems to build 64 bit by default, and the default Python 2.6.1 was 64 bit

which method is called when selecting a cell in the NSTableView in Cocoa OS X?

跟風遠走 提交于 2019-12-01 01:29:55
问题 I have a NSTableView , i want to get the value present in the cell. I am having only one column so , i just need the row number i can use this [tableView selectedRow]- but where do i put this i want to put this in a method that gets called on selection of any of the rows. -(void)tableViewSelectionDidChange:(NSNotification *)notification{ NSLog(@"%d",[tableViewController selectedRow]); } The above method also does not work i am getting the error -[NSScrollView selectedRow]: unrecognized

Errors installing some gems on Snow Leopard - libxml2

落花浮王杯 提交于 2019-12-01 00:57:44
问题 After upgrading to Snow Leopard, I found that installing some gems no longer worked, including webrat, mechanize etc. Each time I get this error: checking for xmlParseDoc() in -lxml2... no libxml2 is missing. try 'port install libxml2' or 'yum install libxml2' *** 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. And no, I haven't tried

Broken Java Mac 10.6

僤鯓⒐⒋嵵緔 提交于 2019-12-01 00:48:32
问题 Some background: On Mac OS X 10.6 using Macports and I have DYLD_LIBRARY_PATH set in my .bash_profile. The problem: When I run java -version I get this error: Error occurred during initialization of VM Unable to load native library: libjava.jnilib By way of one helpful forum thread, I've discovered the problem is some files in my '/opt/local/lib' directory are causing trouble because of the DYLD_LIBRARY_PATH I've set. When I remove the files starting with libgif, libjpeg, libpng and libtiff

Are there drawbacks to Snow Leopard's new “sudden termination” mechanism?

旧巷老猫 提交于 2019-11-30 23:38:24
So there's one piece of technology new to Snow Leopard that I haven't heard of. Sudden termination (see Sudden termination in this Apple doc ) is apparently a mechanism for telling the system when it is OK for your application to be killed brutally instead of going through the standard quitting mechanism. This is supposed to help faster log-off/power-off/hibernation. First, I didn't know about it, didn't see it discussed here or anywhere, so: Is it used widely? What are the typical use cases (I imagine simple utility apps with no user documents or information to save)? Second, the app can at

Snow Leopard, sqlite3-ruby

霸气de小男生 提交于 2019-11-30 22:41:15
So I followed every suggestion in this thread without success. I'm running os x 10.6, rails 2.3.3, ruby 1.9.1 and still getting this error when I try accessing the front page of my rails app: uninitialized constant SQLite3::Driver::Native::Driver::API I've googled every possible combination of snow leopard, rails, sqlite3 without any luck. Hoping someone can help. Thanks! I finally solved this by recompiling ruby 1.9.1 with the appropriate sqlite3 libraries linked. So in my case I needed to create this link: sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libsqlite3.0.dylib /usr/local/lib

Problems with Snow Leopard, Django & PIL

独自空忆成欢 提交于 2019-11-30 21:48:23
I am having some trouble getting Django & PIL work properly since upgrading to Snow Leopard. I have installed freetype, libjpeg and then PIL, which tells me: --- TKINTER support ok --- JPEG support ok --- ZLIB (PNG/ZIP) support ok --- FREETYPE2 support ok but when I try to upload a jpeg through the django admin interface I get: Upload a valid image. The file you uploaded was either not an image or a corrupted image. It works fine with PNG files. Any Ideas? Cato I had the same experience with Leopard 10.5.x Here is what I did to fix it, (may not work for you). Go to your PIL working folder