Showing posts with label RVM. Show all posts
Showing posts with label RVM. Show all posts

Saturday, September 8, 2012

openSUSE-12.2 : upgrading again …

  • downloading the 4.7GB DVD ISO image from a mirror – funny to watch a download rate of 1.92M/s with wget; my last installation was with the network CD, but this time I am giving the DVD installation another try, as I want to implement this upgrade on 3 boxes within a rather short time after the release of 12.2, so there should only be a few upgrades necessary and most packages will get installed from the DVD anyway
  • checking the download: sha1sum openSUSE-12.2-DVD-i586.iso
  • cutting the DVD – doing this on my Mac using Disk Utility – OS X refused to mount the DVD afterwards; but the PC booted from it (etc.) w/o complaints
  • installing 12.2 on the Eee Box
  • rcxdm failed; I removed /etc/X11/xorg.conf, after that I am able to start up rcxdm successfully; apparently /etc/X11/xorg.conf.install is also quite suitable /etc/X11/xorg.conf – it uses the screen with 1024x768 at least
  • logging into the system with ssh works as usual for root but not for my personal account – solved! they changed something in sshd_config, from now on only .ssh/authorized_keys counts
  • installing 12.2 on the NEO
  • installing 12.2 on the ASUS notebook
  • installing 12.2 on a "x86_64-suse-linux" VirtualBox VM with Mac OS X as host
  • [now] …
Of course I need these, and of course I have notes on them here on the blog:
  • $ zypper install gcc
  • $ zypper install patch
  • $ zypper install libcurl-devel
  • perl: $ perlbrew available # perl-5.16.1 (needed "--force --notest"), perl-5.14.3-RC1 (???), perl-5.14.2 (broken on my x86_64-suse-linux), … – it does not list all available ones, only the most recent ones on all major releases – here are all of them: www.cpan.org/src/5.0/ – you may want to pre-download a few of them ("$ perlbrew download perl-5.14.1"), and they go here: $PERLBREW_ROOT/dists/
  • perl: $ perlbrew install-cpanm; perlbrew install-patchperl
  • perl: migrate CPAN modules using perlbrew and cpanm (https://metacpan.org/module/perlbrew)
  • ruby: rvm

Friday, August 31, 2012

how to transfer all modules from one perlbrew environment to another?

I mean something like rvm's migrate resp. upgrade.
Looks like list-modules helps me there.

I had to upgrade somehow, but the published path didn't work for me. After I removed $HOME/.perlbrew and I did a fresh installation, I was successfully upgraded.
Now this runs smoothly:
$ perlbrew list-modules
Right now I am running a
$ perlbrew upgrade-perl # upgrading to 5.16.1
And I hope, even this will run smoothly afterwards:
$ perlbrew list-modules | perlbrew exec --with perl-5.16.1 cpanm 
It said:

Upgrading perl-5.16.0 to 5.16.1
Fetching perl-5.16.1 as /usr/local/perlbrew/dists/perl-5.16.1.tar.bz2
Installing /usr/local/perlbrew/build/perl-5.16.1 into /usr/local/perlbrew/perls/perl-5.16.0

Installing 5.16.1 broke today. Alright, I will try something else:
$ perlbrew list-modules | perlbrew exec --with perl-5.14.2 cpanm

I had a few messages like this one:
! Finding HTML-TableExtract on cpanmetadb failed.
Installing manually with cpanm replacing "-" by "::" worked anyway, eg. HTML::TableExtract instead of HTML-TableExtract.

==========


I will try installing ("upgrade-perl") 5.16.1 again sooner or later …

I wonder, what this will say afterwards:
$ perlbrew list
Will it list 5.16.0 and also 5.16.1?

I like my "stable" alias:
$ perlbrew alias create perl-5.16.1 stable 

Thursday, September 29, 2011

How to install Ruby 1.9.3rc1 with RVM

How to install Ruby 1.9.3rc1 with RVM - waiworinao ★ random notes by arvid andersson

On my openSUSE box I happened to not have "automake" installed. "autoreconf" did not find "aclocal" then… . I just entered "aclocal" on the command line then. It wasn't available, but the shell suggested to "cnf aclocal", and that was the key. I ended up installing "automake" like this:
$ sudo zypper install automake

I have no idea, why rvm successfully (?!?) operated on that box before.

Monday, February 21, 2011

RVM: Ruby Version Manager

http://rvm.io (!!! worth having a look there for the most up-to-date installation procedure !!!)

Allows you to work very well with more than one ruby installation, just like App::perlbrew for perl.

The rvm command is implemented through a lot of bash functions.

The PragProg ruby3 and the jruby book both talk about rvm, and it looks, as if rvm is really quite helpful, if  you deal with more than one ruby interpreter.

I installed rvm locally on an openSUSE-11.3 system and also remotely (git-based), and also on Mac OS X 10.6.6 (not git-based (yet)).

Update 2011-02-22:
Output from my $HOME/.bashrc disturbed the smooth execution of rvm, I had to remove that output (although I really liked that).

Update 2011-07-15 – how to upgrade:
$ rvm get stable
$ rvm reload
$ rvm list known
$ rvm list
$ rvm install jruby-1.6.99999
$ rvm install ruby-1.9.99999
rvm all do gem install xml-simple
$ …


Update 2012-01-… – trouble with "get head"!!!
$ rvm get head # looks broken, avoid it for the time being!
This really caused me a lot of grief and fear.

$ rvm get stable # better for me

Update 2013-09-30
(Nowadays) before running rvm, you need to run some initialisation code:
source $HOME/.rvm/scripts/rvm