# Installing on Ubuntu

**URL:** <https://www.ruby-forum.com/t/installing-on-ubuntu/81122>\
**Category:** Radiant CMS\
**Created:** [January 4, 2007, 5:31am UTC](https://www.ruby-forum.com/t/installing-on-ubuntu/81122 "2007-01-04T05:31:50Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![sara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sara](https://www.ruby-forum.com/u/sara)\
**Post date:** [June 5, 2008, 4:40am UTC](https://www.ruby-forum.com/t/installing-on-ubuntu/81122/21 "2008-06-05T04:40:53Z")

</div>

Ruben D. Orduz wrote:

> Sara,
> 
> Other people have had problem with yml files since they ARE tab- and  
> space-sensitive. Make sure you’re editing them in a text-safe  
> environment and that there’s no cross-OS problems. Also, you can try  
> doing a SVN revert on that yml file and make sure you don’t mess with  
> the spacing or tabs.

If others run into this problem, I found a problem in mine that is  
related to this solution from Ruben. When I put my actual password in  
the .yml file, I must have misfired when I went for the space key before  
the password, so I had something like this:

production:  
adapter: mysql  
database: cr\_radiant\_live  
username: user  
password:notmyrealpassword

just adding the space between password: and notmyrealpassword was all  
it took to get things rolling.

jp

---

<div class="post-metadata">

**Author:** ![sara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sara](https://www.ruby-forum.com/u/sara)\
**Post date:** [January 24, 2010, 6:39am UTC](https://www.ruby-forum.com/t/installing-on-ubuntu/81122/22 "2010-01-24T06:39:53Z")

</div>

I knwo this is an old post but since I found it when i searched for my  
problem in google I thought i would tell you what I found so if anyone  
is looking for a solution to this they would find it as well. Its the  
only way I can give back right now since I am still new to rails.

In my mongrel\_cluster file I added an option:

set :mongrel\_clean, true

as per the manual I was working through. My app wouldnt start so I  
looked through the file and checked each item and after fiddling I found  
the corect way to write this was:

set: mongrel\_clean, true

You will notice the spaces where in the wrong place. The space was  
before the : and not after and thus this option was not working  
correctly. So, if you get the error:

/usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 9, col -1:`’ (ArgumentError)  
or something similar, where it states syntax error on line 9 is the line  
that has the problem in my config/mongrel\_cluster.yml file. in my case  
line 9 had the above set: item on it and was needed to be changed.

Good luck in figuring things out.

Gigg

---

<div class="post-metadata">

**Author:** ![sara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sara](https://www.ruby-forum.com/u/sara)\
**Post date:** [July 12, 2010, 4:11am UTC](https://www.ruby-forum.com/t/installing-on-ubuntu/81122/23 "2010-07-12T04:11:50Z")

</div>

Grant G. wrote:

> I knwo this is an old post but since I found it when i searched for my  
> problem in google I thought i would tell you what I found so if anyone  
> is looking for a solution to this they would find it as well. Its the  
> only way I can give back right now since I am still new to rails.
> 
> In my mongrel\_cluster file I added an option:
> 
> set :mongrel\_clean, true
> 
> as per the manual I was working through. My app wouldnt start so I  
> looked through the file and checked each item and after fiddling I found  
> the corect way to write this was:
> 
> set: mongrel\_clean, true
> 
> You will notice the spaces where in the wrong place. The space was  
> before the : and not after and thus this option was not working  
> correctly. So, if you get the error:
> 
> /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 9, col -1:`’ (ArgumentError)  
> or something similar, where it states syntax error on line 9 is the line  
> that has the problem in my config/mongrel\_cluster.yml file. in my case  
> line 9 had the above set: item on it and was needed to be changed.
> 
> Good luck in figuring things out.
> 
> Gigg

For me, I got this error when I was manually writing out my YAML file.  
I had the following line when it gave the “col -1” error.

blahblah: [8] Some String

Yaml didn’t like it, so I had to manually encode the square brackets  
(and then decode it when reading it into my app)

blahblah: \<left\_bracket/\>8\<right\_bracket/\> Game Title

[Previous page](https://www.ruby-forum.com/t/installing-on-ubuntu/81122.md?page=1)
