Beginner needs help w/ tk in Mac OSX

Hi All,

I'm just starting to learn Ruby and have run into a problem getting tk
to work. I'm runnig Mac OS 10.4.7 and Ruby 1.8.2.

When I try to include 'tk' I get the following error:

dyld: NSLinkModule() error
dyld: Library not loaded: /usr/X11R6/lib/libX11.6.dylib
  Referenced from: /usr/lib/ruby/1.8/powerpc-darwin8.0/tcltklib.bundle
  Reason: image not found
Trace/BPT trap

What's going on? How do I fix this? Thanks!

···

--
Posted via http://www.ruby-forum.com/.

Nevermind. Figured it out.

I needed to install X11 from the Tiger DVD.

···

--
Posted via http://www.ruby-forum.com/.

Damon Cali wrote:

Nevermind. Figured it out.

I needed to install X11 from the Tiger DVD.

Since finding what you need to install is not easy, here are some
directions. I have the same os x version and ruby version as the op.

For future searchers these are the steps:

1) Slide the "Mac OS X Install Disc1" into your drive. A window that
says "Mac OS X Install Disc 1" will pop up showing you the contents of
the disc. Drag the window open as big as you can; or up in the menu
bar, click on View>as List.

2) Click on the file:

Optional Installs.mpkg

It's not inside a directory, so you shouldn't have to go searching
through any folders.

2) A wizard will lead you through the install. When you get to the page
that says:

Custom Install on "Macintosh HD(or whatever destination you chose on the
previous page)"

...click on the arrow to the left of Applications to reveal a list of
choices.

3) Check X11 and click the Install button.

···

--
Posted via http://www.ruby-forum.com/\.