heads-up for arch linux users: rvm installer workaround

M

Martin DeMello

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

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
 
I

Intransition

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:

$ wgethttp://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.

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.
 
J

James Edward Gray II

=20
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 Gray II=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top