Upgrading MarkLogic server on Ubuntu 9.10
Author: Dave Cassel | Category: Software DevelopmentThere 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
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.
$ 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.
December 13th, 2009 at 9:39 pm
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.”
December 21st, 2009 at 7:38 pm
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.
February 3rd, 2010 at 6:11 am
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
February 3rd, 2010 at 7:03 am
Nuno,
Nice, I’ll make use of that next time I upgrade. Thanks for posting the link.
Dave.
February 8th, 2010 at 11:34 am
Ups- changed the file name :)
http://github.com/dscape/ML-Scripts/blob/master/ml-repackage
October 5th, 2010 at 3:53 pm
Hi
is there any install of marklogic on MacOSX 10.6 ( Intel ) machines ??
-s
October 5th, 2010 at 4:35 pm
Hi sadhasivam… the upcoming 4.2 release will include developer (not production) builds for the Mac.
October 6th, 2010 at 4:20 pm
Hi
Thanks Dave. let me keep my fingers crossed till the release :) i am thrilled to have this news.
thanks again