Upgrading MarkLogic server on Ubuntu 9.10

Author: 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:

  1. Shut down MarkLogic server
  2. Uninstall ML 4.1-2
  3. Install ML 4.1-4

Shut down

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.

  1. $ sudo apt-get install rpm alien wajig
  2. Download the new MarkLogic rpm.
  3. $ 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]
  4. $ sudo dpkg -i marklogic_4.1-4_amd64.deb
  5. $ sudo mkdir /var/lock/subsys
  6. $ 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.

Tags: ,

8 Responses to “Upgrading MarkLogic server on Ubuntu 9.10”

  1. Christian Says:

    sudo alien -k –to-deb MarkLogic-4.1-4.x86_64.rpm

    Passing -k will keep the version number.

    “-k, –keep-version Do not change version of generated package.”

  2. Dave Cassel Says:

    Christian, thanks for the tip on the -k flag! It took me a while to get around to it, but I’ve updated the post.

  3. Nuno Job Says:

    Hi Dave,

    I created a simply script based on your blog post.
    Hope you like it

    http://github.com/dscape/ML-Scripts/blob/master/ml-install-debian

    Nuno

  4. Dave Cassel Says:

    Nuno,

    Nice, I’ll make use of that next time I upgrade. Thanks for posting the link.

    Dave.

  5. Nuno Job Says:

    Ups- changed the file name :)

    http://github.com/dscape/ML-Scripts/blob/master/ml-repackage

  6. sadhasivam Says:

    Hi

    is there any install of marklogic on MacOSX 10.6 ( Intel ) machines ??

    -s

  7. Dave Cassel Says:

    Hi sadhasivam… the upcoming 4.2 release will include developer (not production) builds for the Mac.

  8. sadhasivam Says:

    Hi
    Thanks Dave. let me keep my fingers crossed till the release :) i am thrilled to have this news.

    thanks again

Leave a Reply