osx-mountain-lion

ERROR: While executing gem … (Gem::FilePermissionError)

谁都会走 提交于 2019-11-27 01:35:06
问题 I have checked all the other similar answers and none was exactly like mine, neither did any of those solutions work for me. gem environment and sudo gem environment give the same result: RubyGems Environment: - RUBYGEMS VERSION: 1.5.3 - RUBY VERSION: 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr

Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications? [closed]

自闭症网瘾萝莉.ら 提交于 2019-11-27 01:03:26
问题 I used to use valgrind to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS. Is there something else like valgrind that can be installed on Mac OS X 10.9? 回答1: On 2013-11-01, the valgrind team announced Valgrind 3.9.0: We are pleased to announce a new release of Valgrind, version 3.9.0, available from http://www.valgrind.org. 3.9.0

OS X Mountain Lion: gcc-4.2 No such file or directory

余生颓废 提交于 2019-11-27 00:43:15
问题 Tried to install a gem on Mountain Lion and make couldn't find gcc-4.2: kamil$ gem install posix-spawn -v '0.3.6' Building native extensions. This could take a while... ERROR: Error installing posix-spawn: ERROR: Failed to build gem native extension. /Users/kamil/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb creating Makefile make compiling posix-spawn.c make: gcc-4.2: No such file or directory make: *** [posix-spawn.o] Error 1 回答1: If you have Xcode installed, gcc should be available. Check

Where is Network link conditioner Prefpane in OSX Mountain Lion and Xcode 4.4 [closed]

点点圈 提交于 2019-11-27 00:22:44
问题 I have recently updated to OSX Mountain Lion Xcode 4.4. Now I can't find the bundled Network Link Conditioner anymore which was automatically installed on OSX Lion and the corresponding Xcode version. Any ideas 回答1: I figured it out. It looks like the Network Link Conditioner is now an optional package in Mountain Lion and Xcode 4.4 which can be installed like so: Open Xcode Navigate to Xcode > Open Developer Tool > More Developer Tools Download the Hardware IO Tools for Xcode and then double

Bundler cannot install any gems without sudo

三世轮回 提交于 2019-11-27 00:22:27
问题 I'm trying to install a rails app and every time I use bundle it fails without sudo . My current situation is that everything works as long as use sudo for everything , including rails. I don't think this is correct. For example: $ bundle update Updating git://github.com/refinery/refinerycms.git Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Enter your password to install the bundled RubyGems to your system:

Xlib.h not found when building graphviz on Mac OS X 10.8 (Mountain Lion)

橙三吉。 提交于 2019-11-27 00:17:05
问题 When using homebrew to install graphviz, the script gets to the point of "Making install in tkstubs" and then throws the following fatal error: In file included from tkStubLib.c:15: /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> I have installed XQuartz as X11 has been dropped in Mountain Lion, but I'm unsure if it is installed correctly. The location of Xlib.h is: /opt/X11/include/X11/Xlib.h There are also two symlinks to /opt/X11, they are: /usr/X11

How can I install Ruby 1.9.3 in Mac OS X Mountain Lion without Xcode?

情到浓时终转凉″ 提交于 2019-11-27 00:10:42
问题 I would like to know about alternative ways to build a development machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion, that does not require Xcode. Mountain Lion is now Golden Master as I'm writing this question, so it could be considered as final version. That cannot be said about Xcode, that is a preview release yet. RVM recommends to install osx-gcc-installer over Xcode, but I would like not to mess my system. What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode?

How to simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display?

别等时光非礼了梦想. 提交于 2019-11-26 23:25:55
How can you simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display? Dave Gallagher Search for , download, and install Apple's free Additional Tools for Xcode 8 (for previous Xcode releases search for Graphics Tools for Xcode according to your version). Note: free Apple Developer account required. Launch Quartz Debug application. Go to menu: Window ---> UI Resolution . Check Enable HiDPI display modes . Quit Quartz Debug . Open System Preferences . Select Displays icon. If using multiple display, select the configuration window on the display you wish to

Install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion

落爺英雄遲暮 提交于 2019-11-26 21:50:56
I want to install SDK 4.3 in xcode 4.4 on mountain lion (os x 10.8), but when I installed the 4.3 sdk package from xcode 4.1 and launched the simulator from xcode 4.4, the simulator just told me that the ios simulator could not find the sdk. The sdk may need to be reinstalled, which means it couldn't run! What's wrong with xcode 4.4 GM? Are there any ideas about how to solve this kind of problem? I've looked into it, and this is a deliberate behavior from Apple. Here is an (edited) extract of the cache for Xcode download locations: ~/Library/Caches/com.apple.dt.Xcode/Downloads

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

自闭症网瘾萝莉.ら 提交于 2019-11-26 21:20:41
问题 I have seen a number of posts on this before and have followed their instructions but nothing is working. I'll outline below what I have done, and the instructions I have follows - would be grateful for any advice! I have followed the following installation instructions: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac I have downloaded X-code for OSX Mountain Lion, and installed the gcc compiler: $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc