SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64 bit

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
getut

SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64 bit

Post by getut »

Ok.. I'm a corporate user so don't have any choice on my mail app. I have beaten my head into a wall for a week trying to get Notes working on Mint 13.

I have been using the following site as a guideline but am striking out. The procedure is rough, but people have gotten this working on Ubuntu 12.04 64 bit, but I am failing miserably on Mint 13 64 bit. Thanks to the guy on wordpress for the initial work to get this far.

http://usablesoftware.wordpress.com/201 ... -04-64bit/

Current Status = WORKING!!!! The below steps cleans up the above tutorial just a little and has some tweaks that seem to be specific to Mint 13

1) Starting state = Fresh install of Mint 13 64 bit Cinnamon in a virtual machine with all updates and VMWare tools loaded.

2) A lotus notes 8.5.3 deb file modified as per the web page above so that there are no dependencies listed.

3) Run the following apt-get to bring in the packages called out on the web site. I have lumped together 2 different apt-get lines in the above tutorial into one line:

Code: Select all

sudo apt-get install libgnomeprintui2.2-0 ia32-libs ttf-xfree86-nonfree t1-xfree86-nonfree g++-multilib libgtk2.0-dev
4) Install getlibs to allow us to bring in 32 bit libraries in the next step. Let it be known that I tried bringing in the packages listed in step 5 with apt-get and putting a :i386 after each one. It pretty much hosed my test rig trying it that way and just reverted to my snapshot to try again.

Code: Select all

wget https://launchpad.net/~jcollins/+archive/jaminppa/+build/1482994/+files/getlibs_2.06-0ubuntu1%7Eppa2_all.deb
sudo dpkg -i getlibs_2.06-0ubuntu1~ppa2_all.deb
5) Use getlibs to install 32bit libraries. This is the same list from the website above except for libmotif3 and libgnome-desktop-3-0 which don't exist... and gtk2-engines-aurora which seems to have a substitute package in mint (pablo something something).

Code: Select all

sudo getlibs -p libgnomeprintui2.2-0 libgnomeprint2.2-0 libgnomevfs2-0 libgnomeui-0 libxkbfile1 libstartup-notification0 libsepol1 libselinux1 libgsf-1-114 libgsf-1-dev librsvg2-2 librsvg2-common libavahi-client3 libavahi-common3 libavahi-glib1 libbonoboui2-0 libcroco3 libdbus-1-3 libdbus-glib-1-2  libgnome2-0 libgnomecanvas2-0 libgnome-keyring0 libgnome-menu2 libesd0 gtk2-engines libgnome-desktop-2-17 libmotif4 libavahi-glib1 gtk2-engines-oxygen gtk2-engines-qtcurve  gtk2-engines-murrine gtk2-engines-equinox  alsa-base alsa-utils iproute libgnome-desktop-3-2 liborbit2 libbonobo2-0 libgconf2-4 libx11-6 libxt6 libxext6  libc6  libgcc1  libgtk2.0-0  libxkbfile1 libglib2.0-0  libstdc++6 bash libart-2.0-2 libpopt0 libgnomeui-0
6) cd to the folder where your modified ibm-lotus-notes-8.5.3.i586.deb file is located and run this:

Code: Select all

sudo dpkg -i ibm-lotus-notes-8.5.3.i586.deb
(or whatever you named your modified one to keep it separate form the original)

7) GDK Fix

Code: Select all

mkdir ~/temp
cd ~/temp
wget https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/Makefile
wget https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/libnotesgtkfix.c
wget https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/notes-wrapper
sed -i 's/gcc -Wall -Wextra `pkg/gcc -Wall -Wextra -m32 `pkg/g' Makefile
make
chmod +x notes-wrapper
sudo cp notes-wrapper libnotesgtkfix.so /opt/ibm/lotus/notes/
sudo sed -i 's/\.\.\/notes\ \%F/\.\.\/notes\-wrapper\ \%F/g' /usr/share/applications/LotusNotes8.5.desktop
8) Edit your notes-wrapper file for your environment. This was the breakthrough AHA moment for getting this to work. This file was especially munged by the wordpress site in the original link. Overwrite the contents of your notes-wrapper file with this:

Code: Select all

#!/bin/sh

cd `dirname "$0"`

echo “setting locale …”

export LANG="en_US.UTF-8"

echo “setting notes environment …”

NOTESBIN=/opt/ibm/lotus/notes

NOTESDATA=~/lotus/notes/data

NOTESDIR=/opt/ibm/lotus/notes

LD_LIBRARY_PATH=$NOTESBIN:/lib32/i386-linux-gnu:/usr/lib32:/usr/lib/i386-linux-gnu:$NOTESBIN/jvm/bin/classic:$NOTESBIN/jvm/bin:$LD_LIBRARY_PATH

PATH=$NOTESBIN/jvm/bin:$NOTESBIN:$PATH

CLASSPATH=./:$NOTESBIN/:$CLASSPATH

export NOTESBIN NOTESDATA NOTESDIR LD_LIBRARY_PATH PATH CLASSPATH

#/opt/ibm/Workplace Managed Client/rcp/richclient -personality com.ibm.workplace.noteswc.standalone.linux.personality

echo “starting notes …”

LD_PRELOAD=/opt/ibm/lotus/notes/libnotesgtkfix.so /opt/ibm/lotus/notes/notes $*
9) Fix openwith

Code: Select all

sudo mv /opt/ibm/lotus/notes/openwith /opt/ibm/lotus/notes/openwith.bak
sudo ln -s /usr/bin/gnome-open /opt/ibm/lotus/notes/openwith
larkint

Re: SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64

Post by larkint »

I'm not a programmer and seem to be stuck at compiling the libnotesgtkfix.c file:

gtkfix # make
gcc -Wall -Wextra -m32 `pkg-config --cflags gtk+-2.0` -shared libnotesgtkfix.c -o libnotesgtkfix.so -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [all] Error 1

I have all the 32 bit libraries installed in /usr/lib/i386-linux-gnu OK and ldd shows the built notes binaries are linking them there, but
gcc is picking up the 64 bit version, so not sure how I get around this....

Appreciate any pointers....Thanks.
larkint

Re: SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64

Post by larkint »

Had to add this to get the compile to work:

gcc -Wall -Wextra -shared -m32 -L/lib/i386-linux-gnu -lgcc_s `pkg-config --cflags gtk+-2.0` -shared libnotesgtkfix.c -o libnotesgtkfix.so -ldl

Probably specific to the way I have my symlinks to 32 bit libraries.....
Queeq

Re: SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64

Post by Queeq »

Thank you for the great tutorial. Although I've been following it and having Lotus Notes installed successfully, it doesn't run. The only difference in my case is that I have Notes 8.5.2 and MATE desktop. This same .deb perfectly worked on Mint 10 with Gnome even without dependencies removed.

First thing I noticed is that it throws out the message:

Code: Select all

ERROR: ld.so: object '/opt/ibm/lotus/notes/libnotesgtkfix.so' from LD_PRELOAD cannot be preloaded: ignored.
However the original tutorial has a comment that this doesn't really matter and it still works.

When I run the wrapper script it tries to run notes, but then exits with the message:

Code: Select all

/tmp/_lap6873693017331743520wrapper $?=0
Filename each time is different and this is also some kind of script

Code: Select all

#!/bin/sh
export LANG=en_US.UTF-8
uxterm -T "" -e "echo;/tmp/_lap8015830388736410273invoker"
sleep 1
pid=`ps -ef | egrep /tmp/_lap8015830388736410273invoker | grep /bin/sh | awk '{print $2}'`
sleep 1
rc=0
while [ $rc -eq 0 ]
do
 sleep 1
 ps -p $pid >/tmp/_lap8585831640580304361pid.out 2>/tmp/_lap90799629909504262pid.err
 rc=$?
done
cat /tmp/_lap8015830388736410273invoker

Code: Select all

#!/bin/sh
"/opt/ibm/lotus/notes/jvm/bin/java" -Duser.language=en -Duser.country=US -cp "/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.lapinvoker_6.2.2.20100729-1241/LAPApp.jar" com.ibm.lex.lapapp.LAP -text_only -l "/opt/ibm/lotus/notes/framework/license/src" -s "/home/queeq/lotus/notes/data/workspace"
RETURN_VALUE=$?
echo $RETURN_VALUE > /tmp/_lap3735523385195077385result
echo $RETURN_VALUE
Both /tmp/_lap3735523385195077385result and /tmp/_lap8585831640580304361pid.out are empty.
/tmp/_lap90799629909504262pid.err contains

Code: Select all

ERROR: ld.so: object '/opt/ibm/lotus/notes/libnotesgtkfix.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: List of process IDs must follow -p.
... usage information ...
Then I decided to look into the strace output, so I modified lotus launch command in wrapper script:

Code: Select all

LD_PRELOAD=/opt/ibm/lotus/notes/libnotesgtkfix.so strace /opt/ibm/lotus/notes/notes $* > /home/queeq/lotus.trace 2>&1
Found nothing there that could give me a clue. The only thing is that child process exits instantly after being started.

Code: Select all

...
lstat64("/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/opt/ibm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/opt/ibm/lotus", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/opt/ibm/lotus/notes", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
lstat64("/opt/ibm/lotus/notes/notes", {st_mode=S_IFREG|0755, st_size=40661, ...}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0) = 13132
waitpid(13132, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WSTOPPED) = 13132
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0)                           = ?
[ Process PID=13131 runs in 32 bit mode. ]

/tmp/_lap4693861862953360088wrapper $?=0
Any help would be greatly appreciated.
Queeq

SOLVED

Post by Queeq »

WOOHOO! Solved! :))

Firstly, I needed to apt-get install xterm, because it's uxterm being run from /tmp/_lap<many-digits>wrapper script to show you the license agreement.
Secondly, I got a message:

Code: Select all

/opt/ibm/lotus/notes/notes: error while loading shared libraries: libgnomeui-2.so.0: cannot open shared object file: No such file or directory
So, I found it with locate command at /usr/lib32/i386-linux-gnu/libgnomeui-2.so.0
Thus I modified LD_LIBRARY_PATH in /opt/ibm/lotus/notes/notes-wrapper so it now looks like:

Code: Select all

LD_LIBRARY_PATH=$NOTESBIN:/lib32/i386-linux-gnu:/usr/lib32:/usr/lib/i386-linux-gnu:/usr/lib32/i386-linux-gnu:$NOTESBIN/jvm/bin/classic:$NOTESBIN/jvm/bin:$LD_LIBRARY_PATH
And finally it started up! :)
tsiamitas

Re: SOLVED Help getting Lotus Notes 8.5.3 working Mint 13 64

Post by tsiamitas »

The above comment "SOLVED" post by Queeq on Wed Jul 18, 2012 6:28 am
is also applicable to Linux Mint 14 MATE edition and Lotus Notes 8.5.3 or Lotus Notes 8.5.3 FP2.

Thanks Queeq :)
Post Reply

Return to “Tutorials”