# Uninitialized constant SDL::TTF (NameError)

**URL:** <https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364>\
**Category:** Ruby\
**Created:** [April 5, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364 "2010-04-05T20:21:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinhoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/958977/32.png) [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Post date:** [April 5, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364/1 "2010-04-05T20:21:07Z")

</div>

Hello

```
  I am getting the above error when I tried the SDL::TTF.init

```

function. I have rubysdl gem installed. Synaptic shows that all the  
necessary libsdl libraries installed. Is the sdl\_ttf distributed as a  
seperate gem. Any help is appreciated.

Thanks  
Venkat

---

<div class="post-metadata">

**Author:** ![spinhoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/958977/32.png) [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Post date:** [April 6, 2010, 11:51am UTC](https://www.ruby-forum.com/t/uninitialized-constant-sdl-ttf-nameerror/186364/2 "2010-04-06T11:51:10Z")

</div>

Hei Venkat,

you should make sure that the package libsdl-ttf2.0-dev is installed  
on  
your system. If not, install it and then reinstall the rubysdl gem.

Best,

–  
Andrea D.

> **[GitHub - bolthar/freightrain: Ruby desktop development made easy](https://github.com/bolthar/freightrain)**
>
> Ruby desktop development made easy. Contribute to bolthar/freightrain development by creating an account on GitHub.

> **[using (IMHO)](https://usingimho.wordpress.com)**
>
> Andrea Dallera 's blog
