MarkLogic Server on Ubuntu 9.04

14 06 2009

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.

  1. Create a temporary directory for staging the creation of the new deb file and cd into that directory
  2. $ sudo apt-get install rpm alien
  3. $ 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 )
  4. Get the appropriate Mark Logic server RPM file from here: http://developer.marklogic.com/download
  5. $ sudo gdebi lsb-base_3.2-22_all.deb
  6. $ sudo alien –to-deb –verbose MarkLogic-4.0-5.i686.rpm (patience)
  7. $ sudo dpkg -i marklogic_4.0-5_i386.deb (using the actual .deb name)
  8. $ sudo mkdir /var/lock/subsys
  9. $ 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.


Actions

Information

8 responses

27 05 2010
Klortho

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?

1 06 2010
Jim McDonald

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.

1 06 2010
Klortho

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.

1 06 2010
Jim McDonald

Very good. I’m glad it worked for you.

7 07 2010
Victor

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

10 07 2010
Jim McDonald

Corrected. Thank you for taking the time to point out the error.

20 07 2010
Aionius

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.

21 07 2010
Jim McDonald

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 .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.