# Beginner needs help w/ tk in Mac OSX

**URL:** <https://www.ruby-forum.com/t/beginner-needs-help-w-tk-in-mac-osx/70117>\
**Category:** Ruby\
**Created:** [September 26, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/beginner-needs-help-w-tk-in-mac-osx/70117 "2006-09-26T22:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![damoncali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@damoncali](https://www.ruby-forum.com/u/damoncali)\
**Post date:** [September 26, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/beginner-needs-help-w-tk-in-mac-osx/70117/1 "2006-09-26T22:47:10Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![damoncali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@damoncali](https://www.ruby-forum.com/u/damoncali)\
**Post date:** [September 26, 2006, 11:11pm UTC](https://www.ruby-forum.com/t/beginner-needs-help-w-tk-in-mac-osx/70117/2 "2006-09-26T23:11:17Z")

</div>

Nevermind. Figured it out.

I needed to install X11 from the Tiger DVD.

---

<div class="post-metadata">

**Author:** ![damoncali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@damoncali](https://www.ruby-forum.com/u/damoncali)\
**Post date:** [October 29, 2007, 7:52am UTC](https://www.ruby-forum.com/t/beginner-needs-help-w-tk-in-mac-osx/70117/3 "2007-10-29T07:52:14Z")

</div>

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.

1. 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.

1. Check X11 and click the Install button.
