# Array#pack problem on OS X

**URL:** <https://rubytalk.org/t/array-pack-problem-on-os-x/6606>\
**Category:** ruby-talk\
**Created:** [28 June 2003 11:30 UTC](https://rubytalk.org/t/array-pack-problem-on-os-x/6606 "2003-06-28T11:30:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Shultz](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Barry\_Shultz](https://rubytalk.org/u/Barry_Shultz)\
**Post date:** [28 June 2003 11:30 UTC](https://rubytalk.org/t/array-pack-problem-on-os-x/6606/1 "2003-06-28T11:30:24Z")

</div>

Hi,

> **···**
>
> > At Sat, 28 Jun 2003 18:33:48 +0900, \>Barry Shultz wrote:
> > 
> > > ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]  
> > > irb(main):002:0\> [65].pack(‘v’)  
> > > “\000A”
> > 
> > It’s obviously strange. Is there a line contains  
> > WORD\_BIGENDIAN in config.h?
> 
> I’m using the compiled version of Ruby that came with OS X; I don’t have a  
> config.h file.  
> As soon as I can, I will compile Ruby 1.7.x on it, but I wanted to make sure  
> that other people using  
> the loaded version have the same problem.
> 
> Barry
> 
> * * *
> 
> MSN 8 with e-mail virus protection service: 2 months FREE\*  
> [http://join.msn.com/?page=features/virus](http://join.msn.com/?page=features/virus)

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nobuyoshi\_Nakada](https://rubytalk.org/u/Nobuyoshi_Nakada)\
**Post date:** [28 June 2003 11:47 UTC](https://rubytalk.org/t/array-pack-problem-on-os-x/6606/2 "2003-06-28T11:47:08Z")

</div>

Hi,

> > > ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]  
> > > irb(main):002:0\> [65].pack(‘v’)  
> > > “\000A”
> > 
> > It’s obviously strange. Is there a line contains  
> > WORD\_BIGENDIAN in config.h?
> 
> I’m using the compiled version of Ruby that came with OS X; I don’t have a  
> config.h file.

I’ve heard that there is a package for development, which  
contains the file.

> As soon as I can, I will compile Ruby 1.7.x on it, but I wanted to make sure

1.7 is already outdated, you’d better to try with 1.8.0 latest  
snapshot.

> **···**
>
> At Sat, 28 Jun 2003 20:30:24 +0900, Barry Shultz wrote:
> 
> –  
> Nobu Nakada
