# Instalation problem

**URL:** <https://www.ruby-forum.com/t/instalation-problem/226769>\
**Category:** Ruby\
**Created:** [February 20, 2013, 8:57pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769 "2013-02-20T20:57:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 20, 2013, 8:57pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/1 "2013-02-20T20:57:35Z")

</div>

HI!!  
I’m a complete newby and I’m trying to follow a tutorial on learning  
ruby on rails.  
I am on a new mac and require an updated version of ruby to follow  
the tutorial. Everything I’ve read has pointed me towards downloading  
and using RVM.  
I typed \curl -L [https://get.rvm.io](https://get.rvm.io) | bash -s stable --ruby in my  
terminal and this is a shortened version of what happened:

Upgrade of RVM in /Users/carlosamengual/.rvm/ is complete.

# Carlos Amengual,

# 

# Thank you for using RVM!

# I sincerely hope that RVM helps to make your life easier and

# more enjoyable!!!

# 

# ~Wayne

rvm 1.18.8 (stable) by Wayne E. Seguin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid), Michal  
Papis [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [[https://rvm.io/](https://rvm.io/)]

Searching for binary rubies, this might take some time.  
No binary rubies available for: osx/10.8/x86\_64/ruby-1.9.3-p385.  
Continuing with compilation. Please read ‘rvm mount’ to get more  
information on binary rubies.  
Fetching yaml-0.1.4.tar.gz to /Users/carlosamengual/.rvm/archives  
Extracting yaml to /Users/carlosamengual/.rvm/src/yaml-0.1.4  
Configuring yaml in /Users/carlosamengual/.rvm/src/yaml-0.1.4.  
Error running ‘env LDFLAGS=-L/opt/sm/pkg/active/lib  
CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include  
./configure --prefix=/Users/carlosamengual/.rvm/usr --disable-shared’,  
please read  
/Users/carlosamengual/.rvm/log/ruby-1.9.3-p385/yaml/configure.log  
Compiling yaml in /Users/carlosamengual/.rvm/src/yaml-0.1.4.  
Error running ‘make -j2’, please read  
/Users/carlosamengual/.rvm/log/ruby-1.9.3-p385/yaml/make.log  
Installing Ruby from source to:  
/Users/carlosamengual/.rvm/rubies/ruby-1.9.3-p385, this may take a while  
depending on your cpu(s)…  
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while  
depending on your connection…  
ruby-1.9.3-p385 - #extracted to  
/Users/carlosamengual/.rvm/src/ruby-1.9.3-p385 (already extracted)  
ruby-1.9.3-p385 - #configuring  
Error running ‘env LDFLAGS=-L/opt/sm/pkg/active/lib  
CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include  
./configure --disable-install-doc  
–prefix=/Users/carlosamengual/.rvm/rubies/ruby-1.9.3-p385  
–with-opt-dir=/Users/carlosamengual/.rvm/usr --disable-shared’, please  
read /Users/carlosamengual/.rvm/log/ruby-1.9.3-p385/configure.log  
There has been an error while running configure. Halting the  
installation.

I see that rvm has been installed, but something has obviously gone  
wrong…any ideas. This is like the third time I’m doing it because when  
I try and install an updated version of Ruby I get similar messages.  
Thanks in advanced for your help.

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 20, 2013, 10:00pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/2 "2013-02-20T22:00:40Z")

</div>

I am on Mac too. I installed rvm. I had the same error message you got.  
I am sorry for not having a clear answer but even if I had this error  
message, ultimately everything worked perfectly: rvm, ruby 1.9.3  
installed.  
I am not being arrogant but just want to make sure that you are not  
being alarmed for no reason. Are you sure the installation is not  
actually completed?  
What do you see when typing this code in you Terminal? which ruby  
or you can type: ruby -v

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 20, 2013, 10:04pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/3 "2013-02-20T22:04:33Z")

</div>

On Thu, Feb 21, 2013 at 04:57:39AM +0900, Carlos A. wrote:

I don’t use rvm but it sounds like you did not install Xcode which is  
needed to compile ruby. You can get it from the app store

You might get more information using these commands: ‘rvm notes’ and  
‘rvm  
requirements’.

Since there’s also compilation problems lately related to recent Xcode  
versions, [https://rvm.io/os/osx/](https://rvm.io/os/osx/) could be helpful

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 21, 2013, 11:28am UTC](https://www.ruby-forum.com/t/instalation-problem/226769/4 "2013-02-21T11:28:22Z")

</div>

> I also have Xcode installed, but have not done anything with…do I have  
> to do something with it??  
> Thanks again!!

Yes! You have to install the command line tools. There are different  
version depending on what version of Mac OS X you are using, but you can  
either download the command line tools directly from Apple here:

> **[Downloads Overview](https://developer.apple.com/download/)**
>
> Download tools for developing great apps for Apple platforms.

or from within Xcode. You have to open he Preferences and in the  
Downloads tab there is a listing for Command Line Tools. Click the  
install button next to it and that will install all the parts needed.

Wayne

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 20, 2013, 10:52pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/5 "2013-02-20T22:52:15Z")

</div>

Hakim B. wrote in post #1098061:

> I am on Mac too. I installed rvm. I had the same error message you got.  
> I am sorry for not having a clear answer but even if I had this error  
> message, ultimately everything worked perfectly: rvm, ruby 1.9.3  
> installed.  
> I am not being arrogant but just want to make sure that you are not  
> being alarmed for no reason. Are you sure the installation is not  
> actually completed?  
> What do you see when typing this code in you Terminal? which ruby  
> or you can type: ruby -v

Hi,  
My version is the same as prior to doing anything. ruby 1.8.7!!  
This is driving me crazy!!  
I also have Xcode installed, but have not done anything with…do I have  
to do something with it??  
Thanks again!!

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 21, 2013, 6:49pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/6 "2013-02-21T18:49:07Z")

</div>

On Thu, Feb 21, 2013 at 4:39 AM, Carlos A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> this other pkg-config.  
> You must have previously installed the SM framework [https://smf.sh/](https://smf.sh/).  
> It most likely put a line near the end of your .bashrc or .profile or  
> .bash\_profile that adds its bin directories to your PATH; try  
> commenting that out. (I’m not sure what to advise if you actually need  
> to use SM; and this warning from Homebrew may not even be anything to  
> worry about.)

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 21, 2013, 11:39am UTC](https://www.ruby-forum.com/t/instalation-problem/226769/7 "2013-02-21T11:39:21Z")

</div>

Prefect!! Thanks for your help!!  
I’ve now got Xcode up and running and GCC is also good!  
Now I’m having problems with Homebrew…when I type brew doctor I get  
this message:

Warning: You have a non-Homebrew ‘pkg-config’ in your PATH:  
/opt/sm/pkg/active/bin/pkg-config

`./configure` may have problems finding brew-installed packages using  
this other pkg-config.

The tutorial says it should say ‘Your system is rearing to brew’  
Any ideas?!?!  
Thanks!!

---

<div class="post-metadata">

**Author:** ![winkel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/dbc845/32.png) [@winkel](https://www.ruby-forum.com/u/winkel)\
**Post date:** [February 21, 2013, 10:44pm UTC](https://www.ruby-forum.com/t/instalation-problem/226769/8 "2013-02-21T22:44:41Z")

</div>

Eric C. wrote in post #1098256:

> On Thu, Feb 21, 2013 at 4:39 AM, Carlos A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
> It most likely put a line near the end of your .bashrc or .profile or  
> .bash\_profile that adds its bin directories to your PATH; try  
> commenting that out.

Sorry, but I am just starting out with all of this…how would I do  
that??

Thanks!!
