build your own software collections<\/a> if you like but I won’t go into that with this post.\u00a0Now\u00a0you will have the newer versions available to install such as ruby193. Run the following to install ruby193.<\/p>\n\nyum install -y ruby193\n<\/pre>\nI run minimal installs so I never have any other versions of software installed unless I need them so if I was to run ruby -v<\/strong> on the command line I would get the following:<\/p>\n\n[root@machine1 ~]# ruby -v\n-bash: ruby: command not found\n<\/pre>\nNow you might think that ruby hasn’t installed, it has it’s just not part of your path or current session. To enable ruby run\u00a0the following command.<\/p>\n
\n[root@machine1\u00a0~]# source \/opt\/rh\/ruby193\/enable\n[root@machine1 ~]# ruby -v\nruby 1.9.3p448 (2013-06-27) [x86_64-linux]\n<\/pre>\nAs you can see we’ve now got access to ruby 1.9.3 from the software collections. There is a whole bunch of ruby193 packages available you can find them using search with yum. As I don’t use the standard ruby packages at all I want to make the SCL version my default version. The above commands are great for the current session but you would have to run source<\/strong>\u00a0 every login. \u00a0A nice way to make sure that this is working across logout and reboots is to put the source command in the profile.<\/p>\n\necho "source \/opt\/rh\/ruby193\/enable" | sudo tee -a \/etc\/profile.d\/ruby193.sh\n<\/pre>\nThis will make it available as default for all users.<\/p>\n","protected":false},"excerpt":{"rendered":"
I wanted to cut the amount of repositories that my systems were running and I recently came across Red Hats Software Collections\u00a0(SCL). Software collections is a relatively new system that allows you to run some newer versions of popular packages including ruby, php, postgreSQL and more. I needed a newer …<\/p>\n
Centos 6.5 and Ruby 1.9.3 via Software Collections<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[5,9],"tags":[22,34,113,167,184],"yoast_head":"\nCentos 6.5 and Ruby 1.9.3 via Software Collections<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n