Upgrading MarkLogic server on Ubuntu 9.10Author: Dave Cassel | Category: Software Development
There are other posts out there describing how to install MarkLogic Server on Ubuntu versions 9.04 and 8.10. This post will update these directions for Ubuntu 9.10 and go over the steps for upgrading from MarkLogic 4.1-2 to 4.1-4. It’s a minor update, but it’s the first time I’ve upgraded my install; might as well share.
Before proceeding, let me throw in the usual disclaimer that Ubuntu is not a supported platform for MarkLogic server; Red Hat Linux is, hence the RPMs, which we’ll convert to a .deb file.
Because this upgrade is only a minor release, I don’t have to worry about data migration or anything, just replacing the software. Here are the basic steps:
- Shut down MarkLogic server
- Uninstall ML 4.1-2
- Install ML 4.1-4
Easy as pie, as my daughter likes to say. The admin view has a Shutdown button on the Configure screen, Status tab. (Is pie easy? I’ve never made one.)
Uninstall MarkLogic server 4.1-2
Again, pretty simple:
sudo dpkg --remove marklogic
Using –remove instead of –purge will hang onto the various configuration files.
Install MarkLogic server 4.1-4
I started with Donnie’s and Jim’s posts and updated a step or two.
One quick note: the previous posts included steps to install lsb-base_3.2-22. I understand there had been a problem in an earlier version of lsb-base, so that it was necessary to make sure you had at least -22. Under Ubuntu 9.04, I had to prevent the Update Manager from updating package past -23, or MarkLogic Server wouldn’t run. But it appears the fix has made it into the main distribution, and as of Ubuntu 9.10, we no longer have to worry about it.
$ sudo apt-get install rpm alien wajig
- Download the new MarkLogic rpm.
$ sudo alien -k --to-deb MarkLogic-4.1-4.x86_64.rpm(change if you’re using 32-bit) [thanks to Christian for telling me about the -k flag — without it, this rpm gets changed to 4.1-5 instead of 4.1-4]
$ sudo dpkg -i marklogic_4.1-4_amd64.deb
$ sudo mkdir /var/lock/subsys
$ sudo /etc/init.d/MarkLogic start
And we’re off! I hit localhost:8001, and after accepting the license agreement, the admin tool reported that it needed to upgrade security and config files to the latest version. I hit okay and a few moments later, I was back up with the new version showing me my old data.