Recently I’ve been taking a look at the MarkLogic Server platform.
Of the available Linux distributions it is officially only supported on RedHat Enterprise Linux.
Since my Linux distribution of choice recently is Ubuntu I was happy to find that Donnie Cameron had documented how to install and run the MarkLogic Server platform on Ubuntu v8.10.
I’m pleased to report that the procedure also works for Ubuntu 9.04.
One item to note is that the step that uses alien to perform a conversion from an rpm package to a deb takes a bit of time and if you’re not patient you might think the process has hung.
Below are the steps that I used to install MarkLogic Server on Ubuntu 9.04 which are a slight change from the steps outlined by Donnie Cameron.
- Create a temporary directory for staging the creation of the new deb file and cd into that directory
- $ sudo apt-get install rpm alien
- $ wget http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-base_3.2-22_all.deb ( the reason for using an updated lsb package )
- Get the appropriate Mark Logic server RPM file from here: http://developer.marklogic.com/download
- $ sudo gdebi lsb-base_3.2-22_all.deb
- $ sudo alien –to-deb –verbose MarkLogic-4.0-5.i686.rpm (patience)
- $ sudo dpkg -i marklogic_4.0-5_i386.deb (using the actual .deb name)
- $ sudo mkdir /var/lock/subsys
- $ sudo /etc/init.d/MarkLogic start
The MarkLogic init scripts are in /etc/init.d/ and work in the expected fashion.
I’m looking forward to working with MarkLogic Server and even more specifically using XQuery and anticipate reporting my findings in future entries.





Any updates for Ubuntu 10?
I’m just trying out running Ubuntu for the first time, and the first step you gave, “sudo apt-get install rpm alien”, failed for me with
Package rpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package rpm has no installation candidate
What does it mean?
The command works for me in Ubuntu 10.04. A search for the error message on Google did yield the following link http://ubuntuforums.org/showthread.php?t=653953.
Thanks! I should have posted a follow-up. I got it to work, and appreciate your post. I think that the above error wasn’t really an error at all, but just an indication that I already had rpm installed.
After changing some of the version numbers in your above instructions to match the latest available, it worked.
Very good. I’m glad it worked for you.
thanks a lot – it worked for me – just a small correction above, when you do sudo dpkg -i it’s the deb package that you give as an argument, not the rpm. in my case it is:
marklogic_4.1-7_i386.deb
Corrected. Thank you for taking the time to point out the error.
I was trying the tutorial you’ve set up. But when I’m downloading the lsb-base_3.2-22_all.deb it says ERROR 404: Not Found.
The lsb base version has been updated try
$ wget http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-base_3.2-23.1_all.deb.