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: libnotes.so: 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 libnotes.so 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/libnotes.so /usr/lib/libnotes.so
sudo ln -s /opt/ibm/lotus/notes/libndgts.so /usr/lib/libndgts.so
sudo ln -s /opt/ibm/lotus/notes/libxmlproc.so /usr/lib/libxmlproc.so

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!

Advertisements

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/ld.so.conf.

    In the case of Ubuntu, and other right-minded distros, packages can maintain their own separate ld.so.conf files by dropping them into the /etc/ld.so.conf.d/ 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/ld.so.conf.d/

    # Tell the linker to use it
    sudo ldconfig

    Done!

    Cheers, -Brian

    Like

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 )

Google+ photo

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

Connecting to %s