osx-lion

“Couldn't find function symbol in library” - JS-Ctypes

北慕城南 提交于 2019-12-24 17:48:02
问题 My C++ Library function is int RFD_startBackgroundThread() My code in the overlay.js is uri = addon.getResourceURI("components/mac/libReverbFirefoxExtensionLib.dylib"); this.extensionLib = ctypes.open(uri.path); this.startBackgroundThread = this.extensionLib.declare("RFD_startBackgroundThread", ctypes.default_abi, ctypes.unsigned_int); The code throws an exception on the last line. It says " Couldn't find function symbol in library ". The library is a "fat dylib binary" combining both i386

Is Rails still included by default in a clean installation of Mac OS X 10.7 (aka Lion)?

房东的猫 提交于 2019-12-24 09:55:57
问题 From reading this, http://www.afp548.com/article.php?story=lion-server-review I see Apple has dropped MySQL in favour of Postgre, so I'm wondering if it includes Rails bindings? Thanks. 回答1: Just upgraded my machine (which had Rails installed) to Lion, and tried this, macbook:expenses Snips$ rails server Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. So, I guess the answer is no :-( 回答2

Migrating code from snow leopard to mountain lion, make and linking errors with 'x86_64'

纵然是瞬间 提交于 2019-12-24 09:19:00
问题 I have a bunch of code that I frequently use which I bundle as a library (.a). Everything was working on my old macbookpro running snow leopard; but I've recently gotten a new laptop, and upgraded to mountain lion -- now I'm having lots of trouble building programs that worked before. At the moment, I'm trying to re-build that library, when I run my makefile, I get the error g++ -g -I/opt/local/include -L/opt/local/lib -M -MT './obj/TB_Numerical.o' TB_Numerical.cpp -MF obj/TB_Numerical.d make

Finding a file selecting it in finder issue

半城伤御伤魂 提交于 2019-12-24 07:28:48
问题 I am having this script to find a file and select it set filePath to ("filePath.ext" as POSIX file) tell application "Finder" if (exists filePath) then select filePath activate else display alert "File " & filePath & " does not exist" end if end tell it is working perfect well on Mac os x 10.6.x (LION) but when I try to run this script on Mac os x 10.5.x (snow-leopard) it is selecting file but taking too much time. Any suggestion how can I make this code work fine on both versions of Mac.

strtonum in OS X, not found

故事扮演 提交于 2019-12-24 06:47:53
问题 cmp -l "$1" "$2/$1" | awk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}' I am using command above to show the binary differences in Ubuntu, from shell script. However, this doesn't work in OS X lion, claiming that strtonum not found. Any idea how to have it in OS X or substitute it with something similar/light? 回答1: Either MacPorts or Homebrew can be used to install the GNU version of awk which includes strtonum . To avoid conflicts with the system awk , they install the GNU

Terminal Vim redraw issues in OS X Lion

北城余情 提交于 2019-12-24 03:28:01
问题 Recently switched from MacVim to standard vim so I can force myself to move around in vim without the help of the MacVim wrapper. Since doing so, I'm having some weird redraw issues. I've tested this in both iTerm2 and standard Terminal in Lion. When I'm editing files, opening NERDTree etc, fragments of the last window appear in my current buffer. Sometimes the ".. (up a dir)" gets left in the new buffer. The bottom status bar duplicates itself. The only thing that seems to get rid of this is

Click Once Deployment for Mac

匆匆过客 提交于 2019-12-24 03:22:29
问题 As the title states, is there an equivalent to Click Once application deployment for the Mac? I ask this because the version of Safari that ships with Lion has removed DMG (disk image) files as a "safe file type" that is opened after downloading. The company I work for has a rather special-purpose application that should launch as soon as it is downloaded. 来源: https://stackoverflow.com/questions/7445729/click-once-deployment-for-mac

Building jamvm 1.5.4 on OS X Lion

一曲冷凌霜 提交于 2019-12-24 02:41:04
问题 I have Xcode installed and the commandline tools are working. Macports fails to build jamvm 1.5.0 correctly so I'm trying to build the latest version (1.5.4) manually. ./configure doesn't complain about anything. make fails with the following error: Making all in src make all-recursive Making all in os Making all in darwin Making all in i386 /bin/sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../../../../src -g -O2 -MT init.lo -MD -MP -MF .deps/init

OSX “loginwindow” PAM config file?

不打扰是莪最后的温柔 提交于 2019-12-24 02:06:44
问题 I'm back again with the never ending saga of writing a PAM module for OSX. I have the module written. It works when using ssh or starting a new terminal window or su. What I really, really, really want is just ssh and the loginwindow. My PAM module works in "session" mode. It either returns PAM_SUCCESS or PAM_IGNORE. Again, it works with other PAM aware systems like ssh and su. I really want to hook into the loginwindow. Any idea how to do this with OSX and openPAM? I have seen a couple

Problems installing rgeos and rgdal on Mac OS X Lion

Deadly 提交于 2019-12-24 00:56:59
问题 I'm trying to install the rgeos package (and the rgdal) package. I have a macbook pro running os x 10.7.1 and I have the latest version of R, 2.13.1. I am following the instructions from this site: http://lostingeospace.blogspot.com/2011/08/rgeos-on-macos-x.html I have installed the latest GDAL complete framework 1.8 from http://www.kyngchaos.com/software:frameworks and have downloaded the source file rgeos_0.1-8.tar.gz from CRAN. In terminal, I input the following, as per the instructions: