# Heads-up for arch linux users: rvm installer workaround

**URL:** <https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262>\
**Category:** Ruby\
**Created:** [May 27, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262 "2010-05-27T18:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [May 27, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262/1 "2010-05-27T18:03:46Z")

</div>

Anyone on arch linux planning on using rvm, note that the installer  
script is broken. The basic problem is that arch linux by default  
installs hd2u to provide dos2unix, and this does the wrong thing when  
run on a unix file (hd2u’s default behaviour is to flip unix-\>dos or  
dos-\>unix, rather than to leave unix as unix). The workaround:

$ wget [http://rvm.beginrescueend.com/releases/rvm-install-head](http://rvm.beginrescueend.com/releases/rvm-install-head)

and edit the file to remove the dos2unix invocation

Still trying to work out who I should file a bug with; everyone is  
individually doing the right thing. My personal preference would be  
for hd2u to install both dos2unix and unix2dos wrappers, and for it’s  
behaviour to change depending on whether it is invoked as dos2unix or  
unix2dos; as it is, adding a flag to the dos2unix invocation in  
rvm-install-head will likely break it on platforms that install a  
proper dos2unix/unix2dos pair. Anyway, if anyone on arch is facing an  
installer that quits with mysterious bash errors, this is the  
workaround.

martin

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [May 27, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262/2 "2010-05-27T18:45:21Z")

</div>

On May 27, 12:02 pm, Martin DeMello [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Still trying to work out who I should file a bug with; everyone is  
> individually doing the right thing. My personal preference would be  
> for hd2u to install both dos2unix and unix2dos wrappers, and for it’s  
> behaviour to change depending on whether it is invoked as dos2unix or  
> unix2dos; as it is, adding a flag to the dos2unix invocation in  
> rvm-install-head will likely break it on platforms that install a  
> proper dos2unix/unix2dos pair. Anyway, if anyone on arch is facing an  
> installer that quits with mysterious bash errors, this is the  
> workaround.

Personally I don’t understand why rvm uses so much bash scripting.  
Can’t most, if not all of it, be done in Ruby? I’m pretty sure it can.

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Post date:** [May 27, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/heads-up-for-arch-linux-users-rvm-installer-workaround/189262/3 "2010-05-27T19:40:23Z")

</div>

On May 27, 2010, at 11:44 AM, Intransition wrote:

> > 
> 
> Personally I don’t understand why rvm uses so much bash scripting.  
> Can’t most, if not all of it, be done in Ruby? I’m pretty sure it can.

Because you don’t want to have to have Ruby installed to install Ruby.  
Also, what RVM does is shell work and it’s no surprise that shell  
languages, like Bash, are superior for that.

James Edward G. II
