osx-snow-leopard

“no matching architecture in universal wrapper” when importing pygame

半世苍凉 提交于 2019-11-27 21:00:25
问题 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

Error in xcode project: ld: library not found for -lcrt1.10.6.o

别等时光非礼了梦想. 提交于 2019-11-27 19:43:29
Just upgraded to Snow Leopard, installed Xcode 3.2, then installed iPhone SDK 3 for SL. In a project, I now get the following error on build: ld : library not found for -lcrt1.10.6.o I've searched around the net, but nothing helpful can be found. Edit Project Settings -> In the build tab -> For Mac OS X Deployment Target, change it to 10.5 for XCode 3 (not 10.6 even if on 10.6) and see if that helps. For XCode 4, you'll need to set it to 10.6 P.S. Make sure you set that for all targets, not just release or debug. (if you didn't, one would fail, the other wouldn't) Stefan Add the following to ~

can't start MySql in Mac OS 10.6 Snow Leopard

回眸只為那壹抹淺笑 提交于 2019-11-27 17:31:29
I've googled this and could'nt find anything new and useful for Apple's new OS SnowLeopard. I wonder if this is my mistake or I do need to do something? this is what I did: Downloaded from mysql site: http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg I choose : Mac OS X 10.5 (x86_64) I run all the packages and installed all of them. So now I certainly have mysql in /usr/local/mysql/ But when trying to start it from preferences panel, it is always STOPPED. When I try to do (in the terminal): /usr/local/mysql/bin/mysql I got : -bash: /usr/local/mysql/bin/mysql: Bad CPU type in executable

warning: Insecure world writable dir when I run a ruby or gem command

不羁的心 提交于 2019-11-27 17:30:38
Not sure why I'm getting this, but I just installed RVM, the new Ruby 1.9, and reinstalled a bunch of gems, and I get this /Users/johnsmith/.rvm/rubies/ruby-1.9.1-p378/bin/gem:4: warning: Insecure world writable dir /opt/local/bin in PATH, mode 040777 Everything still runs otherwise, but I was wondering if there was a way I could get rid of it. Just chmod go-w /opt/local/bin at a shell prompt (depending on permissions you may need to sudo to do that). To clarify, whatever path returns after it says insecure world writeable, is what you use. So instead of: chmod go-w /opt/local/bin you would

Eclipse hangs on loading workbench

浪子不回头ぞ 提交于 2019-11-27 16:45:11
My eclipse stops loading workbench. I tried already starting with ./eclipse --clean When starting from console it throws following exception: java.lang.NullPointerException at org.eclipse.core.internal.runtime.Log.isLoggable(Log.java:101) at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.safeIsLoggable(ExtendedLogReaderServiceFactory.java:57) at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:158) at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:146)

Easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)?

懵懂的女人 提交于 2019-11-27 16:40:01
What is the easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)? I'd prefer to use any bundled versions before resorting to downloading from the PHP or MySQL websites. That also rules out MAMP and similar. I'm comfortable at the command line in Terminal. TWLATL Open a good text editor (I'd recommend TextMate, but the free TextWrangler or vi or nano will do too), and open: /etc/apache2/httpd.conf Find the line: "#LoadModule php5_module libexec/apache2/libphp5.so" And uncomment it (remove the #). Download and install the latest MySQL version

The application cannot be opened because its executable is missing

情到浓时终转凉″ 提交于 2019-11-27 16:09:36
问题 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

Remove “index.php” from URL - Codeigniter

狂风中的少年 提交于 2019-11-27 14:49:11
I've looked in the documentation of Codeigniter of removing the index.php from the URL when accessing different views, the code shows how to remove it with apache: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] However, when I go to http://localhost/code/home , I get this: The requested URL /code/home was not found on this server. But accessing http://localhost/code/index.php/home works just fine, how come it isn't working for me? I'm on a Mac OS X Snow Leopard using the Sites directory: /Users/~myusername~/Sites/code , and I'm not using

“git pull” broken

我的未来我决定 提交于 2019-11-27 14:43:07
I recently upgraded my MacBook Pro to Snow Leopard and "git pull" returns: rakudo $ git pull git: 'pull' is not a git-command. See 'git --help' Did you mean this? shell rakudo $ git-pull -bash: git-pull: command not found I've tried reinstalling via macports, but to no avail. Then I saw this rakudo $ git --exec-path /Users/ovid/libexec/git-core That surprised me as that directory does not exist, nor has it ever existed. Google is not helping here. Hopefully you can :) Looking in the source of git, there's a comment in git.c: /* * We use PATH to find git commands, but we prepend some higher *

Rails Segmentation Fault on Mac OSX with RVM

断了今生、忘了曾经 提交于 2019-11-27 14:10:27
When creating a new rails app, I get the following error: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] All the rails files appear to be generated, but the error above is still there. Any thoughts or suggestions would be greatly appreciated. It looks to me like a problem with LLVM GCC, try with GNU GCC. The easiest way to do that is to install osx-gcc-installer and reinstall ruby: rvm reinstall 1.9.3 EDIT2: it is also possible to use gcc-4.2 available via HomeBrew/MacPorts, install