osx-snow-leopard

Equivalent of strace -feopen < command > on mac os X

半腔热情 提交于 2019-12-17 08:01:33
问题 This is useful for debugging (hence programming related). On linux, we can use the command strace -feopen python myfile.py to figure out which python modules and shared objects are loaded. Is there an equivalent one-liner on macOS X? 回答1: I suppose you meant strace -fetrace=open ? dtruss -f -t open python myfile.py 来源: https://stackoverflow.com/questions/1925978/equivalent-of-strace-feopen-command-on-mac-os-x

Rails, MySQL and Snow Leopard

為{幸葍}努か 提交于 2019-12-17 02:55:09
问题 I upgraded to Snow Leopard using the disc we got at WWDC. Trying to run some of my rails apps now complains about sql (in /Users/coneybeare/Projects/Ambiance/ambiance-server) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. Importing all sounds in /Users/coneybeare/Projects/Ambiance/ambiance-sounds/Import 32/Compressed/ -- AdirondackPeepers.caf !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please

Clang 3.1 on xcode 4.2 (Snow Leopard)

和自甴很熟 提交于 2019-12-13 15:05:19
问题 Is it possible to install clang 3.1 on xcode 4.2 (Snow Leopard)? 回答1: You can also build and install it yourself. Instructions can be found here. I'm not sure if this (or the MacPorts solution... +1 to @trojanfoe) will easily be callable from Xcode though. After moving everything from " /Developer " into & within the Xcode package, I'm thinking Apple is trying to keep Xcode a "walled garden" as well. 回答2: Yes, try the macports version. You can also download the binaries, if you can't be

Can't strip all unneeded symbols on a Mac OS X c++ application?

为君一笑 提交于 2019-12-13 06:32:27
问题 I'm trying to strip my mac os x application of all unneeded symbols. If I do this on my linux app using "--strip-unneeded" the symbol table on my application is empty and returns nothing. On Mac OS X, I am seeing symbols related to the typeinfo and vtable entries for my classes, as well as some function. As best as I can tell, this is happening on the functions defined in headers and marked inline. Undefined functions coming from external libraries are present in the nm output, but marked

Bundle Text file in py2app Application (python)

混江龙づ霸主 提交于 2019-12-13 05:18:37
问题 I recently learned Python (2.7) and have been making some simple board games with AIs and such as practice. I am currently making an intelligent hangman game which necessitates the inclusion of a dictionary file. (I have a text file which has a new word on each line). I used py2app successfully for other stuff such as this: connect-four.zzl.org but unfortunately, it doesn't seem to include my text file when I run py2app for my new hangman program. Can anyone help me figure out how to include

Compiling JVMTI agent (using GCC, on OSX Snow Leopard)

ⅰ亾dé卋堺 提交于 2019-12-13 03:20:43
问题 I am trying to build a JVMTI agent using the g++ command on Snow Leopard and I get the following error: $ g++ -o agent.so -I `/usr/libexec/java_home`/include agent.cpp Undefined symbols: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found collect2: ld returned 1 exit status I am a total novice when it comes to gcc and C++ programming so I have no idea what that error means. The agent itself is extremely basic: #include #include JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *vm

line doesn't execute in .bash_profile and .bashrc on my Mac OSX Snow Leopard

牧云@^-^@ 提交于 2019-12-13 02:59:59
问题 I just installed Ruby Version Manager (RVM) which is working fine but it asked me to put the following line in my /.bash_profile and ~/.bashrc files: if [[ -s /Users/tammam56/.rvm/scripts/rvm ]] ; then source /Users/tammam56/.rvm/scripts/rvm ; fi looking at the content I see the following: tammam56$ cat /.bash_profile export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" if [[ -s /Users/tammam56/.rvm/scripts/rvm ]] ; then source /Users/tammam56/.rvm/scripts/rvm ; fi tammam56

mysql gem looking for an earlier version of libmysqlclient.16.dylib

廉价感情. 提交于 2019-12-13 01:43:12
问题 I just upgraded to Mac OSX Snow Leopard, and recompiled mysql (5.1.39) with the Snow Leopard XCode. I also reinstalled the latest mysql gem. Now, when running rake db:migrate in a rails app, I get dyld: NSLinkModule() error dyld: Library not loaded: /usr/local/mysql/lib/libmysqlclient.15.dylib Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle Reason: image not found Trace/BPT trap I have /usr/local/mysql/lib/libmysqlclient.16.dylib, but not ...15.dylib. Do I need

Where is the iconset command-line tool 'iconutil' located?

一世执手 提交于 2019-12-13 00:44:22
问题 I have XCode 4.2 and need to submit a Mac app to App Store. I've tried all kinds of suggested methods to get the multi-resolution icons in there, so you don't need to inform me on that. The remaining method is to use iconutil . I've searched in Spotlight, searched my Mac's harddisk in Finder, two later XCode .dmg images, sudo find in Terminal, and looked for paths on the web. The XCode 4.4.1 .dmg had Iconutil.strings and Iconutil.xcspecs , but that's as far as I've come. Is there a package I

OpenVRML in snow-leopard (from macports)

与世无争的帅哥 提交于 2019-12-12 21:18:20
问题 Hey, I just Downloaded openvrml from macports (port install openvrml) Now I have a Sample program (pretty_print.cpp from openvrml at sourceforge) that begins like this: # ifdef HAVE_CONFIG_H # include <config.h> # endif # include <openvrml/vrml97_grammar.h> # include <openvrml/browser.h> # include <fstream> ... then in Xcode, I added the following path and check "recursive" for the Header search path and Lib Search Path: /opt/local/var/macports/software And all '***.h file not found' errors