osx-mountain-lion

Can't install Ruby on Mountain Lion with rvm

早过忘川 提交于 2019-12-04 16:33:52
Have tried to install Ruby on Mountain Lion using rvm, but got this error message: ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 ruby-1.9.3-p362 - #configuring Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log There has been an error while running configure. Halting the installation. ruby-1.9.3-p362 is not

Error during rails install

≡放荡痞女 提交于 2019-12-04 14:25:17
问题 Saads-Mac-Pro:~ SMD$ gem install rails Building native extensions. This could take a while... /Users/SMD/.rvm/rubies/ruby-2.0.0- p247/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:54: warning: Insecure world writable dir /usr in PATH, mode 040777 ERROR: Error installing rails: ERROR: Failed to build gem native extension. /Users/SMD/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and

How to let vim behave on Mac OS X as on Ubuntu?

為{幸葍}努か 提交于 2019-12-04 13:30:11
Recently I started using a Macbook Pro. Installed is Mountain Lion and so far everything is good. I'm coming from Ubuntu and being pretty much addicted to vim, I can't really stand how Mac Os X is treating vim. ;) For instance, if I use the mouse in Ubuntu to scroll up, the max I can scroll is the top of the file when a file is open. When I try that in Mac Os X, I scroll straight into the shell history. I'd like the Ubuntu behaviour better, because I find it easier and more logical (even though I know that vim is a 'terminal' application). Is there anything I can do about this? I have iTerm2

How to not get special characters in place of meta key combinations for VIM on OS X

依然范特西╮ 提交于 2019-12-04 11:19:49
问题 On OS X, at any program, when I type option-p I get π , option-P I get ∏ and there's a bunch of alt / option bindings that just return greek and other special characters. Is there a way to disable that? Currently I'm using the Auto Pairs VIM plugin and it has the following default mappings: <M-p> : Toggle Autopairs (g:AutoPairsShortcutToggle) <M-e> : Fast Wrap (g:AutoPairsShortcutFastWrap) <M-n> : Jump to next closed pair (g:AutoPairsShortcutJump) <M-b> : BackInsert (g

Using boost from XCODE 4.6.1 - what are the proper build settings?

我的未来我决定 提交于 2019-12-04 10:45:13
I downloaded boost 1.53 and extracted to Users/user/Desktop/boost_1_53_0 I successfully built boost as static libraries following instructions at: http://libcinder.org/docs/v0.8.5/_cinder_boost.html I changed XCODE's "Build Settings" "Header Search Paths" to /Users/user/Desktop/boost_1_53_0 as well as the "Library Search Paths" to Users/user/Desktop/boost_1_53_0/stage/lib Then I build and get errors: The first error I'm getting is "has_binary_operator.hpp" Parse issue Expected member name or ';' after declaration specifiers at the line: template < typename Lhs, typename Rhs > struct operator

Applescript get list of running apps?

人盡茶涼 提交于 2019-12-04 10:33:39
问题 Applescript newbie question again :) I am trying to create a small applescript that will allow me to select multiple items from a list of currently running applications and then quit those selected apps. Something like this works but rather than having to click on each dialog it would be much easier to chose from a list. tell application "System Events" repeat with p in every process if background only of p is false then display dialog "Would you like to quit " & name of p & "?" as string end

403 Forbidden error when accessing localhost on Mac OS X10.8

岁酱吖の 提交于 2019-12-04 09:34:35
问题 I have followed this tutorial to set up Apache, MySql and PHP on Mac OS X 10.8 (http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion) When I go to 'Localhost' I get the following error: Forbidden You don't have permission to access / on this server. When I go to 'Localhost/~benthompson' it works fine. When I was halfway through the tutorial, 'Localhost' did work, its something later on that stopped it working. Presumably its a

Matlab on Mountain Lion not working -

感情迁移 提交于 2019-12-04 09:08:28
Matlab (R2010a) seems to be kaput on Mountain Lion - if I click on the icon it crashes immediately. I installed XQuartz and Java on Mountain Lion but still keep getting the following error when trying to open it from xterm: bash-3.2$ /Applications/MATLAB_R2010a.app/bin/matlab dyld: Library not loaded: /usr/X11/lib/libXext.6.dylib Referenced from: /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/libmwhg.dylib Reason: image not found Trace/BPT trap: 5 Unfortunately the error doesn't go away even after setting the DYLD_LIBRARY_PATH variable as instructed in the blog post: http

How can i setup the path for heroku postgresql app?

99封情书 提交于 2019-12-04 08:34:25
问题 I just installed the heroku PSQL app (v1.0) and i'm having trouble being able to connect my rails apps using the gem pg "0.1.4". I already added the path PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH" to my .profile and my .bashrc files, but nothing seems to allow me to run psql simply by calling "psql". I had success using "psql -h localhost". When i go for "psql" i get: Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432

rxtxSerial.dll for MacOS 10.8

梦想的初衷 提交于 2019-12-04 08:23:00
I'm currently working on a ZigBee project and I'm programming on an Mac with Mountain Lion (10.8) and using Eclipse IDE. To use my Zigbee Module via USB for Serial communication, I need this rxtxSerial.dll. I only have a Windows compatible version right now. Is somebody able to provide the necessary link to me? Thank you! Edit2 With all the latest updates as of 2012-11-15 (OSX 10.8.2) i needed to install glibtool via homebrew (http://mxcl.github.com/homebrew/) before I got the procedure below to work. With homebrew installed and configured just do brew install libtool from a terminal. Then