Installing Subversion on a MediaTemple DV 3.0 Virtual Server
March 14th, 2007
[Updated for the dv 3.5 here]
I’m currently testing a web application on a MediaTemple “dedicated virtual server” (dv). This means I need to have Subversion installed to check the current version of the application from the repository. Unfortunately, while MediaTemple installs Subversion on their (oft-derided) “grid-server” (gs), they don’t install it on the (dv).
What to do? I put in a request with MediaTemple, but after vainly waiting 24 hours for a response, I decided to use yum to install Subversion. This seems like a better idea than working with rpms; the likelihood is that I’ll need to install other packages, after all. Yum doesn’t come with the (dv), however – for reasons unknown – so the first thing we need to do is get yum (following this post) [in a comment below, Bart has updated the location of the rpms].
$ wget http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm
$ wget http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm
$ wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm
It has dependencies, so we need get them too.
$ rpm -ivh --nodeps http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-6.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/rpm-python-4.3.3-18_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
$ rpm -ivh –nodeps http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/rpm-python-4.3.3-22_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
$ rpm -ivh –nodeps http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/rpm-python-4.3.3-23_nonptl.i386.rpm http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
Now we can install yum:
$ rpm -Uvh yum-2.4.3-3.el4.centos.noarch.rpm
Check if it’s installed:
$ rpm -q yum
With yum installed successfully, we can use it to install Subversion.
$ yum install subversion
That should do it.
-
I should add that I didn’t know at first what flavor of Linux was running on MediaTemple’s (dv). I found that we were dealing with CentOS 4.4 by running:
$ cat /etc/*release /etc/*version
April 19th, 2007 at 11:56 am
Man I love you
After 2 months passing GPU limit, I’ve just switched to dvServers. I lagh when they say that 99% of the sites don’t need more than 1000 GPUs. Bad for them.
April 19th, 2007 at 12:11 pm
I ended up dropping my DV because the installed PHP didn’t come with the Tokenizer module (required for a component of the application), and I didn’t want to recompile PHP, because it would have meant unsubscribing from the automatic updates to the server software. Because the Tokenizer is included by default in almost every PHP distribution, I couldn’t find an RPM to add it to the installed PHP. It was pretty disappointing, and, as I’ve come to expect, MediaTemple support was less than helpful in resolving the issue.
June 8th, 2007 at 11:47 am
What version of Subversion did it install? svn –version says I already have 1.1.4, but I want 1.4.3.
Please shoot me an email if you could… Thanks!
June 8th, 2007 at 11:52 am
I can’t check the version, sadly, because I got rid of my dv. I’m pretty sure that it was a 1.4.x version – it was whatever yum gave me.
July 10th, 2007 at 11:54 pm
Hi Michael,
Thanks for this how-to…
You saved me a couple of hours work!!
Bart
The Netherlands
July 10th, 2007 at 11:55 pm
oh, the links you provided did not work on 11 juli 2007. I had to use:
wget http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm
rpm -ivh –nodeps http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/libxml2-python-2.6.16-10.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/rpm-python-4.3.3-22_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
July 11th, 2007 at 5:41 pm
hi, thank you SOOOO much for this.
while i love media temple overall, the difficulty of going off their beaten path is so frustrating. i am installing memcache/pecl memcache for a new project im working on, it is on a dv3 server with them as well, and at the moment i am trying to get yum following your instructions, here is the error i came across while installing the python-sqlite rpm:
rpm -ihv http://centos.mirror.vpslink.com/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
Retrieving http://centos.mirror.vpslink.com/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
warning: /var/tmp/rpm-xfer.T5m3xs: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
libsqlite3.so.0 is needed by python-sqlite-1.1.7-1.2.1.i386
do you have any idea what this would be? does it mean i dont have sqlite installed? i thought it came in media temples dev tools…
thanks again for your article.
July 11th, 2007 at 5:55 pm
nevermind, i just needed to install the sqlite rpm. anyway, thanks again for the article!
July 12th, 2007 at 7:24 am
Tim, I’m glad you got that working. Considering the number of people who decide to ‘upgrade’ from their grid server to dedicated virtual, I would expect mediatemple would reduce the differences in configuration between the gs and dv instances. And it seems that something as basic as a package manager would be installed by default!
July 17th, 2007 at 1:13 pm
if you run into dependency errors, make sure you format the RPM command as follows:
rpm -ivh –[two dashes and without brackets]nodeps
I ran into this when copying and pasting.