Permalink
Browse files

Update ubuntu post to point at pkg-config

#shakefist @ ubuntu maintainers
  • Loading branch information...
1 parent 400fbc2 commit c982a1b8d9724e86cd4410cf518f1c1b238d2bb0 @radar committed Jan 31, 2013
@@ -5,10 +5,10 @@ title: Ubuntu, Ruby, RVM, Rails, and You
wordpress_url: http://ryanbigg.com/?p=1215
---
-<strong>Last updated: November 20th, 2012</strong>
+<strong>Last updated: Thursday January 31st 2013</strong>
<p>
- <strong>This beginner's guide will set up with Ruby 1.9.3, RVM and Rails 3.2.9 and is specifically written for a <em>development</em> environment on Ubuntu (versions 10 through 12), but will probably work on many other operating systems, including older / newer versions of Ubuntu and Debian. YMMV.</strong>
+ <strong>This beginner's guide will set up with Ruby 1.9.3, RVM and Rails 3.2.9 and is specifically written for a <em>development</em> environment on Ubuntu 12.04, but will probably work on many other operating systems, including older / newer versions of Ubuntu and Debian. YMMV.</strong>
</p>
<p>
@@ -60,7 +60,7 @@ The next command we run will tell us what other packages we need to install for
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
- libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkgconfig
+ libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
A couple of things to note in this is that the `build-essential` package is
installed, which will install all the essential build tools for Ubuntu, so
@@ -75,7 +75,11 @@ These packages will lessen the pain when we're working with Ruby. For example, t
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \
- subversion pkgconfig
+ subversion pkg-config
+
+If you're using an older version of Ubuntu, the `pkg-config` package is called `pkgconfig`. You will need to install that instead:
+
+ sudo apt-get install pkgconfig
Now our Ruby lives will be as painless as possible.
@@ -11,8 +11,8 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<article>
<a href="/2010/12/ubuntu-ruby-rvm-rails-and-you"><header>Ubuntu, Ruby, RVM, Rails, and You</header></a>
<small>25 Dec 2010</small><br>
- <strong>Last updated: November 20th, 2012</strong><p>
- <strong>This beginner's guide will set up with Ruby 1.9.3, RVM and Rails 3.2.9 and is specifically written for a <em>development</em> environment on Ubuntu (versions 10 through 12), but will probably work on many other operating systems, including older / newer versions of Ubuntu and Debian. YMMV.</strong>
+ <strong>Last updated: Thursday January 31st 2013</strong><p>
+ <strong>This beginner's guide will set up with Ruby 1.9.3, RVM and Rails 3.2.9 and is specifically written for a <em>development</em> environment on Ubuntu 12.04, but will probably work on many other operating systems, including older / newer versions of Ubuntu and Debian. YMMV.</strong>
</p><p>
<strong>If you're looking for a way to set this up on a production server then I would recommend the use of <a href='https://github.com/joshfng/railsready'>the railsready script</a> which installs all the necessary packages for Ruby 1.9.3p0 and then that version of Ruby itself, Bundler and Rails. Then it leaves it up to you to install Apache or nginx to get your application online.</strong>
</p><h2>Under no circumstance should you install Ruby, Rubygems or any Ruby-related packages from apt-get. This system is out-dated and leads to major headaches. Avoid it for Ruby-related packages. We do Ruby, we know what's best. Trust us.</h2>
@@ -55,7 +55,7 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
# For Ruby / Ruby HEAD (MRI, Rubinius, &amp; REE), install the following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
-libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkgconfig</code></pre>
+libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config</code></pre>
<p>A couple of things to note in this is that the <code>build-essential</code> package is installed, which will install all the essential build tools for Ubuntu, so we&#8217;ll be able to download and compile Ruby, amongst other things.</p>
@@ -66,7 +66,11 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<pre><code>sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \
-subversion pkgconfig</code></pre>
+subversion pkg-config</code></pre>
+
+<p>If you&#8217;re using an older version of Ubuntu, the <code>pkg-config</code> package is called <code>pkgconfig</code>. You will need to install that instead:</p>
+
+<pre><code>sudo apt-get install pkgconfig</code></pre>
<p>Now our Ruby lives will be as painless as possible.</p>
<h3>Ruby</h3>

0 comments on commit c982a1b

Please sign in to comment.