title: rbenv build failed , while trying to install ruby version 1.9.3-p327
body: <p>Update:</p>
  
  <p>I was able to install 2.0.0-p451 and 1.9.3-p545 sucessfully,
  However I am still not able to install 1.9.3-p327 and when I tried to install 1.8.7-p375 I get the following error message:</p>
  
  <p>Checking out svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7...
  Installing ruby-1.8.7-p375...</p>
  
  <p>BUILD FAILED</p>
  
  <p>Inspect or clean up the working tree at /tmp/ruby-build.20140324164042.15847
  Results logged to /tmp/ruby-build.20140324164042.15847.log</p>
  
  <p>Last 10 log lines:
  ossl_pkey_ec.c:815: error: 'EC_GROUP_new_curve_GF2m' undeclared (first use in this function)
  ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once
  ossl_pkey_ec.c:815: error: for each function it appears in.)
  ossl_asn1.c: In function 'ossl_asn1_decode0':
  ossl_asn1.c:726: warning: passing argument 1 of 'ASN1_get_object' from incompatible pointer type
  /usr/include/openssl/asn1.h:944: note: expected 'const unsigned char <strong>' but argument is of type 'unsigned char **'
  make[1]: *</strong> [ossl_pkey_ec.o] Error 1
  make[1]: <strong>* Waiting for unfinished jobs....
  make[1]: Leaving directory `/tmp/ruby-build.20140324164042.15847/ruby-1.8.7-p375/ext/openssl'
  make: *</strong> [all] Error 1</p>
  
  <p>Could anyone please tell me why this is happening... </p>
  
  <hr>
  
  <p>I am trying to install like this: rbenv install 1.9.3-p327</p>
  
  <p>And the results are:</p>
  
  <p>Downloading yaml-0.1.5.tar.gz...
  -> <a href="http://dqw8nmjcqpjn7.cloudfront.net/24f6093c1e840ca5df2eb09291a1dbf1" rel="nofollow">http://dqw8nmjcqpjn7.cloudfront.net/24f6093c1e840ca5df2eb09291a1dbf1</a>
  Installing yaml-0.1.5...
  Installed yaml-0.1.5 to /home/user/atatachar/.rbenv/versions/1.9.3-p327</p>
  
  <p>Downloading ruby-1.9.3-p327.tar.gz...
  -> <a href="http://dqw8nmjcqpjn7.cloudfront.net/96118e856b502b5d7b3a4398e6c6e98c" rel="nofollow">http://dqw8nmjcqpjn7.cloudfront.net/96118e856b502b5d7b3a4398e6c6e98c</a>
  Installing ruby-1.9.3-p327...</p>
  
  <p>BUILD FAILED</p>
  
  <p>Inspect or clean up the working tree at /tmp/ruby-build.20140324141730.6887
  Results logged to /tmp/ruby-build.20140324141730.6887.log</p>
  
  <p>Last 10 log lines:
  Generating docs for compound YYSTYPE...
  Generating docs for compound zone...
  Generating docs for compound zstream...
  Generating docs for nested compound zstream::zstream_funcs...
  Generating namespace index...
  Generating namespace member index...
  Generating graph info page...
  Generating file index...
  Generating example index...
  Generating file member index...</p>
  
  <p>I tried doing the following things to make rbenv work:</p>
  
  <p>1) Completely remove .rbenv directory and reinstalled rbenv.</p>
  
  <p>2) Tried installing other versions.</p>
  
  <p>3) Tried to install rbenv in a temporary directory </p>
  
  <p>4) I also took a look into the log file
  and the following looked suspicious to me:</p>
  
  <p>-> Version of /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/compar.c : linking transcoder escape.so
  (null)</p>
  
  <p>There are a lot of files with (null) like above.</p>
  
  <p>The build process continues after these null until these following statements:</p>
  
  <p>/tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:18: Warning: include file ruby/ruby.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:19: Warning: include file ruby/st.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:20: Warning: include file ruby/encoding.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/regenc.h:33: Warning: include file ruby/config.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/regenc.h:34: Warning: include file ruby/defines.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/regenc.h:40: Warning: include file ruby/oniguruma.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:26: Warning: include file stdio.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:27: Warning: include file errno.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/ext/ripper/ripper.y:28: Warning: include file ctype.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?
  /tmp/ruby-build.20140324141730.6887/ruby-1.9.3-p327/id.c:12: Warning: include file ruby/ruby.h not found, perhaps you forgot to add its directory to INCLUDE_PATH?</p>
  
  <p>And the build continues with the last statement being :
  Generating file member index....</p>
  
  <p>I am not able to make out anything from the log file. Could anybody please help me..</p>
  
  <p>Thanks a lot in advance..</p>