Notes on Linux: Run a compact from the OS

I have been pretty busy as of late, hence my reduced blogging – but this is one I come across as a question quite frequently from people who are new to Notes/Domino on Linux.

On the Windows OS it is quite simple to run a compactor task from a command prompt or a batch file. However, when on Linux you will often be met by the following error message:

error while loading shared libraries: cannot open shared object file: No such file or directory

This error message can appear on either a Linux desktop that has the Notes client installed or a server that has Domino installed. Basically the OS is complaining that it can’t find which usually resides in the /usr/lib folder on your machine. All you have to do is to create some links so that the Notes/Domino code can find this file. And, you will need to do the same for two other files as t the same time.

You will have to be root or have sudo rights to execute this:

sudo ln -s /opt/ibm/lotus/notes/ /usr/lib/
sudo ln -s /opt/ibm/lotus/notes/ /usr/lib/
sudo ln -s /opt/ibm/lotus/notes/ /usr/lib/

You can see, I have my Notes client (Ubuntu 10.04) installed in [/opt/ibm/lotus/notes] which is the default location. If you have Notes installed someplace else, you will need to adjust the commands above accordingly.

the same commands will solve this issue for Domino server installations as well, though you will likely have Domino installed in [/opt/ibm/lotus/domino]  so just adjust the commands and off you go!

3 thoughts on “Notes on Linux: Run a compact from the OS

  1. Thanks, notesbusters.

    Your solution works. If I may suggest it, a more “proper” solution to accomplish the same thing would be to add the “/opt/ibm/lotus/notes” library path to /etc/

    In the case of Ubuntu, and other right-minded distros, packages can maintain their own separate files by dropping them into the /etc/ directory.

    To do this for Lotus Notes, simply cut and paste these bits:

    # Create the conf file and put into place
    echo “/opt/ibm/lotus/notes” >/tmp/lotus-notes.conf
    sudo install -m 644 /tmp/lotus-notes.conf /etc/

    # Tell the linker to use it
    sudo ldconfig


    Cheers, -Brian


Leave a Reply

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

You are commenting using your 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