Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby Development Environment

I get an error when trying to install

BUILD FAILED

Inspect or clean up the working tree at /var/folders/n1/8zxjtj817j1gdf6lkqy69qfc0000gn/T/ruby-build.20140109103412.17458 Results logged to /var/folders/n1/8zxjtj817j1gdf6lkqy69qfc0000gn/T/ruby-build.20140109103412.17458.log

Last 10 log lines: echo " #define DATE \"LC_ALL=C LC_TIME=C date\""; \ echo '#endif' ) >buildinf.h cc -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -I/Users/darealred/.rbenv/versions/2.0.0-p353/include -c -o cryptlib.o cryptlib.c In file included from cryptlib.c:117: ./cryptlib.h:62:10: fatal error: 'stdlib.h' file not found

include <stdlib.h>

     ^

1 error generated. make[1]: *** [cryptlib.o] Error 1 make: *** [build_crypto] Error 1 Shaun-Thomass-MacBook-Pro:~ darealred$

5 Answers

Could you share your error clear?

Not sure what you mean.

I installed this rbenv:

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

then when I go to ->

rbenv install 2.0.0-p353

and get ...

Shaun-Thomass-MacBook-Pro:~ darealred$ rbenv install 2.0.0-p353 Downloading openssl-1.0.1e.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/66bf6f10f060d561929de96f9dfe5b8c Installing openssl-1.0.1e...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/n1/8zxjtj817j1gdf6lkqy69qfc0000gn/T/ruby-build.20140109232316.23936 Results logged to /var/folders/n1/8zxjtj817j1gdf6lkqy69qfc0000gn/T/ruby-build.20140109232316.23936.log

Last 10 log lines: echo " #define DATE \"LC_ALL=C LC_TIME=C date\""; \ echo '#endif' ) >buildinf.h cc -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -I/Users/darealred/.rbenv/versions/2.0.0-p353/include -c -o cryptlib.o cryptlib.c In file included from cryptlib.c:117: ./cryptlib.h:62:10: fatal error: 'stdlib.h' file not found

include <stdlib.h>

     ^

1 error generated. make[1]: *** [cryptlib.o] Error 1 make: *** [build_crypto] Error 1

Have you installed Xcode and Xcode Command Line Tools?

Yes I've installed Xcode , I did recently upgrade to Maverick , wonder if that has any issues.

I guess you should update XCode and XCode Command Line Tools.