redK Laptop Bags

Archives

Highlighted events

    No events to show

segmentation fault when trying to create a new zone on solaris10 x86 (on vmware fusion on mac os x)

My environment:

mac os x snow leopard 10.6.8

vmware fusion Version 3.1.3 (416484)

solaris 10 x86: SunOS solaris10 5.10 Generic_141445-09 i86pc i386 i86pc

When I tried to create a zone, I got a Segmentation fault:

bash-3.00# zonecfg -z zone01
zone01: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:zone01> create
Segmentation Fault (core dumped)

I tried various things but could not find the problem.

It was this post that set me in the right direction:
http://mail.opensolaris.org/pipermail/zones-discuss/2010-April/006229.html

What was my LD_LIBRARY_PATH?
I rerun ldd and this time I noticed a clue:

bash-3.00# ldd /usr/sbin/zonecfg
[...]
libz.so.1 =>         /opt/csw/lib/libz.so.1
        libz.so.1 (SUNW_1.1) =>         (version not found)

The day before I had manually set the LD_LIBRARY_PATH in this shell to test a package downloaded from http://www.opencsw.org/. I had forgotten about it.
So I started a new shell and checked with ldd again:

bash-3.00# ldd /usr/sbin/zonecfg
[...]
libz.so.1 =>         /usr/lib/libz.so.1

This looks better, and in fact:

ash-3.00# zonecfg -z zone01
zone01: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:zone01> create
zonecfg:zone01>

no more segmentation fault.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot

German delicatessen in the outskirts of London

There is a nice little shop tucked away in the hamlet of Ham, it’s a secret hidden gem offering German delicious foods, most of which freshly baked by the shop owners. Breads and cakes, pretzels and laugenbrotchen… everything I have tasted from this shop is excellent and the baked products are really astonishing.

if you can’t see the image below, blame it on google maps..


View Larger Map

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot

missing psych warning installing ruby and rubygem on linux from source

I was trying to get ruby 1.9.3p0 and gem 1.8.15 installed from source on my ubuntu 10.04.3 LTS.

When trying to build and install rubygems, I got the following warning:

root@ubuntu:~/downloads/rubygems-1.8.15# ruby setup.rb
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
RubyGems 1.8.15 installed

I installed yaml and built it:

wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz

Various google searches, posts, tools and attempts later, I found the right way to get ruby built correctly:

./configure –with-opt-dir=/usr/local

and not, as other suggested, –with-opt-dir=/usr/local/lib.

Finally I got gem built with no warnings.

The helpful hint came from a comment to this article:

http://collectiveidea.com/blog/archives/2011/10/31/install-ruby-193-with-libyaml-on-centos/

a comment dated Nov. 18, 2011 which at the moment is the one before the last, by Christian Murphy. My thanks to him.

 

 

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot

Downgrade from Mac OS Lion to Snow Leopard

My wife needs Vectorworks, an old copy, on her MacBook Pro 15″. But she is running Lion. When she bought her laptop she received a free Lion upgrade that she installed herself via the Apple Store.

However Lion no longer supports older powerpc apps, like Vectorworks and so I offered to downgrade to Snow Leopard.

I got her to backup everything and to compile a list of all the apps she needs (beside Vectorworks) and then I proceeded to reinstall Snow Leopard from the original laptop DVD (insert DVD, reboot pressing the “c” key, follow the installation instructions).

I was up for a scary surprise: after the installation was completed and the laptop rebooted, the system would not come up and the boot would freeze with a spinning wheel of death.

I felt I had underestimated the task at hand and I had behaved in a less than professional manner.. I should have checked the Internet for advise and information.

A quick scan of the forums and posts revealed an even scarier scenario: that one could not downgrade from Lion if that was the OS the laptop was delivered with.

Not our case so I did not delve any deeper into the weirdness of this idea.

I rebooted from the Install DVD and this time before starting the install I launched the Disk Utility (look at the menu on top of the screen – also follow the hint of the big message that appears in the middle of the screen after you boot from the OS DVD) and I deleted and recreated the existing partition on the laptop hard disk and I re-initialised the newly created partition.  I took the liberty to rename the hard disk to my wife’s name instead of the usual “Macintosh HD”.

I restarted the installation and bingo! it worked. Finally we’ve shaken Lion off and we are back in sanity land, Snow Leopard we love you!!

PS: I think Snow Leopard could be the last OS that Apple made before it became completely obsessed with small things like iphones, ipads and ipods.  Who knows, maybe in 5 years Apple will have stopped making real computers (as we know them nowadays) to focus on appliances, portable devices with touch screens, brain-directed input devices and no more keyboards.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot

Ironman 2 [movie review]

I have been trying very hard to find words to review this movie. As a boy I was a super heroes fan, but already then I never particularly liked Ironman.
However this movie is such an historical low that I have one single word: BLEAH!

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • email
  • Google Buzz
  • LinkedIn
  • Reddit
  • Slashdot