When trying to install REE using RVM on OS X Lion (10.7) you may come across the following error:
/usr/bin/gcc -dynamiclib system_allocator.c -install_name @rpath/libsystem_allocator.dylib -o libsystem_allocator.dylib
mkdir -p .ext/common
make PREINCFLAGS='-I/opt/local/include' PRELIBS='-L/opt/local/lib -Wl,-rpath,/Users/Gavin/.rvm/rubies/ree-1.8.7-2011.03/lib -L/Users/Gavin/.rvm/rubies/ree-1.8.7-2011.03/lib -lsystem_allocator'
./ext/purelib.rb:2: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.1.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
make: *** [.rbconfig.time] Abort trap: 6
The problem: Xcode and OS X Lion now use llvm-gcc, instead of gcc as the default compiler.
The solution: Temporarily set your CC environment variable back to the old gcc:
$ export CC=/usr/bin/gcc-4.2
Now try and reinstall REE passing the force argument to re-download and compile using gcc
$ rvm install ree --force
I use screenshots all the time! Combined with CloudApp screenshots are a really fast and easy way to share visual information between colleagues and clients.
If you don't already know how to take a screenshot on Mac OS X, simply press shift + cmd + 3 or shift + cmd + 4 to take a section of the screen.
The problem with taking a lot of screenshots is that your desktop soon fills up with dozens of image files - making it difficult to sort through. Here's my solution to keeping your screenshots in check:
Open terminal (Applications > Utilities Terminal) and type the following commands:
mkdir ~/Screenshots
defaults write com.apple.screencapture location /Users/[YourUsername]/Screenshots
note - replace [YourUsername] with your apple user name. In my case /Users/Gavin/Screenshots
Now log out of OS X and log back in.
From now on your screenshots should be saved to /Users/YourName/Screenshots
I've spent the day trying to install erlang on OS Lion and also to install Riak Search - quite frustrating to say the least.
The installation instructions on the basho site don't seem to work as they link to a tar ball that doesn't seem to exist.
Here's how I managed to install RiakSearch on OS Lion:
$ curl -O http://downloads.basho.com/riak-search/riak-search-0.14/riak_search-0.14.0-osx-i386.tar.gz
$ tar xzvf riak_search-0.14.0-osx-i386.tar.gz
The tar ball is precompiled so you should be able to test if it worked simply by typing:
$ riak_search-0.14.0-osx-i386/bin/riaksearch start
Note - that the time of writing, the latest version is 0.14.0. You can check for the latest version by looking in the riak downloads directory
Hope that helps.