title: Getting error for libxml2.2.dylib "file is not of required architecture"
body: <p>I'm trying to use rvm to install Ruby 1.9.2 on my Mac running Snow Leopard.</p>
  
  <p>My <code>.bash_profile</code> contains</p>
  
  <pre><code>ARCHFLAGS="-arch x86_64"
  </code></pre>
  
  <p>To install ruby, I run:</p>
  
  <pre><code>rvm install 1.9.2 -C --enable-shared
  </code></pre>
  
  <p>I get an error during compiling. Here is the make.error.log:</p>
  
  <pre><code>[2010-01-20 10:03:00] make 
  ld: in /usr/local/lib/libxml2.2.dylib, file is not of required architecture
  collect2: ld returned 1 exit status
  make[1]: *** [../../.ext/i386-darwin10.2.0/tcltklib.bundle] Error 1
  make: *** [mkmain.sh] Error 1
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I installed readline from source and tried the install like this:</p>
  
  <pre><code>rvm install 1.9.2 -C --enable-shared,--with-readline-dir=/usr/local 
  </code></pre>
  
  <p>which resulted in the same error as before.</p>
  
  <p>The locations of the rcltklib.bundle file is:</p>
  
  <pre><code>/usr/local/lib/ruby/1.8/i686-darwin9.7.0/tcltklib.bundle  
  </code></pre>
  
  <p>(I think this file is part of the Ruby OSX installation)</p>