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

ahmed suleiman
PLUS
ahmed suleiman
Courses Plus Student 11,685 Points

Can't install ruby on my mac

this is the error that I am getting when installing ruby rbenv install 2.2.3 Downloading openssl-1.0.1p.tar.gz... -> https://dqw8nmjcqpjn7.cloudfront.net/bd5ee6803165c0fb60bbecbacacf244f1f90d2aa0d71353af610c29121e9b2f1 Installing openssl-1.0.1p...

BUILD FAILED (OS X 10.10.1 using ruby-build 20151028-10-gf174d58)

Inspect or clean up the working tree at /var/folders/5m/_jv81jbx1tj3ngl3t99r0yxr0000gn/T/ruby-build.20151114103815.75142 Results logged to /var/folders/5m/_jv81jbx1tj3ngl3t99r0yxr0000gn/T/ruby-build.20151114103815.75142.log

Last 10 log lines: Undefined symbols for architecture x86_64: "__divti3", referenced from: __muloti4 in libclang_rt.osx.a(muloti4.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: *** [link_a.darwin] Error 1 make[3]: *** [do_darwin-shared] Error 2 make[2]: *** [libcrypto.1.0.0.dylib] Error 2 make[1]: *** [shared] Error 2 make: *** [build_crypto] Error 1

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Ahmed,

Ruby is already installed on Macs by default. From your command line if you type ruby --version it should tell you the version you have installed.

Here is some documentation on Ruby installation and updating that hopefully will help with your issues.

:)

ahmed suleiman
PLUS
ahmed suleiman
Courses Plus Student 11,685 Points

sorry what I meant to say is the latest version, I am trying to use rbenv and homebrew to install it but it seems I keep on getting error this now rbenv install 2.2.3 Downloading ruby-2.2.3.tar.gz... -> https://dqw8nmjcqpjn7.cloudfront.net/df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce Installing ruby-2.2.3...

BUILD FAILED (OS X 10.10.1 using ruby-build 20151028-10-gf174d58)

Inspect or clean up the working tree at /var/folders/5m/_jv81jbx1tj3ngl3t99r0yxr0000gn/T/ruby-build.20151114141238.94645 Results logged to /var/folders/5m/_jv81jbx1tj3ngl3t99r0yxr0000gn/T/ruby-build.20151114141238.94645.log

Last 10 log lines: config.guess already exists config.sub already exists checking build system type... x86_64-apple-darwin14.0.0 checking host system type... x86_64-apple-darwin14.0.0 checking target system type... x86_64-apple-darwin14.0.0 checking whether the C compiler works... no configure: error: in /var/folders/5m/_jv81jbx1tj3ngl3t99r0yxr0000gn/T/ruby-build.20151114141238.94645/ruby-2.2.3': configure: error: C compiler cannot create executables Seeconfig.log' for more details make: *** No targets specified and no makefile found. Stop.

my file path is /usr/local/var/rbenv/plugins, I clone it in the plugins