# Dir.tmpdr mac os x

**URL:** <https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304>\
**Category:** Ruby\
**Created:** [January 19, 2007, 4:53am UTC](https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304 "2007-01-19T04:53:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [January 19, 2007, 4:53am UTC](https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304/1 "2007-01-19T04:53:04Z")

</div>

Hey All,

Has anyone experienced Dir.tmpdir being undefined on a mac os x?

thanks.  
smith

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [January 19, 2007, 4:55am UTC](https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304/2 "2007-01-19T04:55:17Z")

</div>

Aaron S. wrote:

> Hey All,
> 
> Has anyone experienced Dir.tmpdir being undefined on a mac os x?
> 
> thanks.  
> smith

I got it… I had to require ‘tmpdir’… duh.

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304/3 "2007-01-19T16:31:23Z")

</div>

Aaron S. wrote:

> Aaron S. wrote:
> 
> > Hey All,
> > 
> > Has anyone experienced Dir.tmpdir being undefined on a mac os x?
> > 
> > thanks.  
> > smith
> 
> I got it… I had to require ‘tmpdir’… duh.

There’s nothing ‘duh’ about it. It should be core. Having to require a  
library for this one method is kinda lame IMO.

Regards,

Dan

---

<div class="post-metadata">

**Author:** ![ktheory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Post date:** [September 25, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/dir-tmpdr-mac-os-x/82304/4 "2007-09-25T22:32:27Z")

</div>

yeah I agree. but still… if it is undefined… the first thing you check  
is  
where it is defined and include it…

smith
