Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15309040
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类: LINUX

2012-11-22 18:08:38

安装好lotus notes后参考下面文章的9,10步,下载相应的文件编译。
From:
Install Lotus Notes 8.5.3 En on Ubuntu 11.04 64bit

So here finally it comes – more detailed installation instructions. This time for the 64bit version of Natty Narwhal.

1) Create a folder for the files. In this case

mkdir ~/LN853install

cd ~/LN853install

2) Copy all Lotus files you want to install

ls -la ~/LN853install

-rw-r–r–  1 anders anders   5015238 2011-10-10 17:44 ibm-lotus-activities-8.5.3.i586.deb
-rw-r–r–  1 anders anders   3933118 2011-10-10 17:44 ibm-lotus-cae-8.5.3.i586.deb
-rw-r–r–  1 anders anders    108796 2011-10-10 17:44 ibm-lotus-feedreader-8.5.3.i586.deb
-rw-r–r–  1 anders anders 342931012 2011-10-10 17:47 ibm-lotus-notes-8.5.3.i586.deb
-rw-r–r–  1 anders anders  53008774 2011-10-10 17:45 ibm-lotus-sametime-8.5.3.i586.deb
-rw-r–r–  1 anders anders 146089190 2011-10-10 17:47 ibm-lotus-symphony-8.5.3.i586.deb

3) Modify packages to get them installed

a) Lotus Notes

In Nautilus, right click on ibm-lotus-notes-8.5.3.i586.deb and select extract here. When extracting finished then Rename file ibm-lotus-notes-8.5.3.i586.deb to somehting else.

Enter folder LN853install/ibm-lotus-notes-8.5.3.i586/DEBIAN and open file CONTROL in text editor.

Make sure following lines are empty

Pre-Depends:
Depends:
Recommends:
Conflicts:
So nothing after semicolon!  Now save the file.

b) Lotus Sametime

In Nautilus, right click on  ibm-lotus-sametime-8.5.3.i586.deb and select extract here. When extracting finished then Rename file  ibm-lotus-sametime-8.5.3.i586.deb to somehting else.

Enter folder LN853install/ibm-lotus-sametime-8.5.3.i586/DEBIAN and open file CONTROL in text editor.

Make sure following lines are empty

Pre-Depends:
Depends:

So nothing after semicolon!  Now save the file.

c) Convert them to debs again!

sudo dpkg-deb -b ibm-lotus-notes-8.5.3.i586

dpkg-deb: building package `ibm-lotus-notes:i386′ in `ibm-lotus-notes-8.5.3.i586.deb’.

and

sudo dpkg-deb -b ibm-lotus-sametime-8.5.3.i586.deb

dpkg-deb: building package `ibm-lotus-sametime:i386′ in `ibm-lotus-sametime-8.5.3.i586.deb’.

In order to install i386 packages in a good manner we need the tool getlibs. Here is how it is installed:

4) Install extra libraries

sudo apt-get -y install libgnomeprintui2.2-0 ia32-libs ttf-xfree86-nonfree t1-xfree86-nonfree

5) Install getlibs

wget ~jcollins/+archive/jaminppa/+build/1482994/+files/getlibs_2.06-0ubuntu1%7Eppa2_all.deb

sudo dpkg -i getlibs_2.06-0ubuntu1~ppa2_all.deb
Selecting previously deselected package getlibs.
(Reading database … 167584 files and directories currently installed.)
Unpacking getlibs (from getlibs_2.06-0ubuntu1~ppa2_all.deb) …
Setting up getlibs (2.06-0ubuntu1~ppa2) …

6) Install compatibility libraries (some may not be needed, plz help me update this)

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 libmotif3 libgnome-desktop-3-0 libavahi-glib1 gtk2-engines-oxygen gtk2-engines-aurora gtk2-engines-qtcurve  gtk2-engines-murrine gtk2-engines-equinox  alsa-base alsa-utils iproute

7) Symbolic link

sudo ln -s /usr/lib32/i386-linux-gnu/libavahi-glib.so.1 /usr/lib32/

8) Install Lotus Notes

Optional, remove temporary directories: rm -rf ibm-lotus-notes-8.5.3.i586 ibm-lotus-sametime-8.5.3.i586

Important: It is two dashes before force-all that is – - (without the space between them).

a) sudo dpkg -i –force-all ibm-lotus-notes-8.5.3.i586.deb

dpkg: warning: overriding problem because –force enabled:
package architecture (i386) does not match system (amd64)
Selecting previously deselected package ibm-lotus-notes:i386.
(Reading database … 167588 files and directories currently installed.)
Unpacking ibm-lotus-notes:i386 (from ibm-lotus-notes-8.5.3.i586.deb) …
Setting up ibm-lotus-notes:i386 (8.5.3-20110916.0921) …
Processing triggers for bamfdaemon …
Rebuilding /usr/share/applications/bamf.index…
Processing triggers for desktop-file-utils …
Processing triggers for python-gmenu …
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache…
Processing triggers for python-support …

Optional Sametime b) sudo dpkg -i –force-all ibm-lotus-sametime-8.5.3.i586.deb
dpkg: warning: overriding problem because –force enabled:
package architecture (i386) does not match system (amd64)
Selecting previously deselected package ibm-lotus-sametime:i386.
(Reading database … 187774 files and directories currently installed.)
Unpacking ibm-lotus-sametime:i386 (from ibm-lotus-sametime-8.5.3.i586.deb) …
Setting up ibm-lotus-sametime:i386 (8.5.3-20110916.0921) .

Optional CAE, Activities, Symphony and maybe more for the localized packages.

9) We are not really there yet

sudo apt-get install g++-multilib libgtk2.0-dev

10) Install fix for gdk

Important: Double dashes before no-check-certficate , that is – - (without the space)

wget –no-check-certificate

wget –no-check-certificate

wget –no-check-certificate

Important: Note that the ‘ before s and after g is of type that is straight. Not that it is a backquote before pkg

sudo 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/

Important: Note that the ‘ before s and after g is of type that is straight.

sudo sed -i ‘s/..\/notes %F/..\/notes-wrapper %F/g’ /usr/share/applications/LotusNotes8.5.desktop

11) Go nag on IBM to make software that is more linux compatible!!

Update 2011-10-14:

For Oneric Ocelot final release. Do this:

sudo getlibs -p libgnome-desktop-3-2 liborbit2 libbonobo2-0 libgconf2-4

I still cannot get it to work at the moment though…

/opt/ibm/lotus/notes/notes: error while loading shared libraries: libgconf-2.so.4: wrong ELF class: ELFCLASS64
even though:

: ls -laFtr /usr/lib32/ | grep conf-2
-rw-r–r–  1 root root   182536 2011-10-14 14:29 libgconf-2.so.4.1.5
lrwxrwxrwx  1 root root       19 2011-10-14 14:29 libgconf-2.so.4 -> libgconf-2.so.4.1.5

Need to add this to the notes-wrapper file:

LD_LIBRARY_PATH=/usr/lib32

I hope I have time to give more exact details soon

Update 2011-11-07:

For Oneric install these before Lotus Notes

getlibs -p libx11-6 libxt6 libxext6  libc6  libgcc1  libgtk2.0-0  libxkbfile1 libglib2.0-0  libstdc++6 bash


附录:需要下载的几个文件的内容

Maek file:

all:
    gcc -Wall -Wextra -m32 `pkg-config --cflags gtk+-2.0`-shared libnotesgtkfix.c -o libnotesgtkfix.so -ldl

clean:
    rm -f libnotesgtkfix.so


libnotesgtkfix.c:

#include
#include
#include

#define __USE_GNU
#include

static void (*_gdk_window_shape_combine_region)(GdkWindow *window, const GdkRegion *shape_region, gint offset_x, gint offset_y) = NULL;

void gdk_window_shape_combine_region (GdkWindow *window, const GdkRegion *shape_region, gint offset_x, gint offset_y) {
    GdkWindowObject *private;
    private = (GdkWindowObject *) window;
    
    // Save value of shaped
    unsigned int shaped = private->shaped;

    // Initialize pointer if uninitialized.
    if (_gdk_window_shape_combine_region == NULL)
        _gdk_window_shape_combine_region =  dlsym(RTLD_NEXT, "gdk_window_shape_combine_region");

    // In the real 'gdk_window_shape_combine_region' this exact condition returns without doing anything
    // So set shaped to 1 to force not returning.
    if (!private->shaped && shape_region == NULL)
        private->shaped = 1;

    // Call real 'gdk_window_shape_combine_region'
    _gdk_window_shape_combine_region(window, shape_region, offset_x, offset_y);
    
    // Restore shaped value
    private->shaped = shaped;
}


notes-wrapper:

#!/bin/sh
cd `dirname "$0"`
LD_PRELOAD=`pwd`/libnotesgtkfix.so `pwd`/notes $*

阅读(3234) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~