|
From: | Alex Lai (Scotia Capital) |
Subject: | emacs GUI please help |
Date: | Mon, 21 Feb 2011 18:38:31 -0500 |
Hi emacs gurus,
I’m wondering if you would help me with an emacs GUI issue I have
recently when I installed emacs 23.2 for use by our financial engineering
group.
[Problem]
$ DISPLAY=sbtorsvr329:23.0; export DISPLAY $ /usr/local/bin/emacs $
DISPLAY=sbdevsvr286.dev:148.0; export DISPLAY $
/usr/local/bin/emacs
à successful We use the emacs and dependent
packages compiled by sunfreeware.com (SMC* packages) for Solaris 10 sparc. The problem I have with GUI emacs
lauch is that the success depends on the display set. It will launch fine
for one display but crash for the other. -------------------------- $ DISPLAY=sbtorsvr329:23.0;
export DISPLAY $ grep
rsvg_handle_get_dimensions emacs.dis=sbtorsvr329:23.0|wc -l $
DISPLAY=sbdevsvr286.dev:148.0; export DISPLAY $ grep
rsvg_handle_get_dimensions emacs.disp=sbdevsvr286.dev:148.0 $ ldd
/usr/local/bin/emacs|grep librsvg The above library is installed with
SUNWgnome-base-libs package and doesn’t contain the definition for symbol
rsvg_handle_get_dimensions: $ ls -l /usr/lib/librsvg* $ echo $LD_LIBRARY_PATH
$ /usr/ccs/bin/nm
/usr/lib/librsvg-2.so.2 | grep
rsvg_handle_get_dimensions
à return empty The behaviour that emacs resolve the
rsvg_handle_get_dimensions symbol for one display but not for the other is really
a mystery for me. Continuing investigation, if I add
path /usr/local/lib before /usr/lib, then the rsvg_handle_get_dimensions
error doesn't appear since the librsvg provided by SMClrsvg contains the
definition for the symbol, but then, emacs crashes with
/usr/local/lib/libgtk-x11-2.0.so.0.1200.0 segmentation fault: $
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/lib/X11; export LD_LIBRARY_PATH $ ldd
/usr/local/bin/emacs|grep svg
librsvg-2.so.2 =>
/usr/local/lib/librsvg-2.so.2 $ /usr/ccs/bin/nm
/usr/local/lib/librsvg-2.so.2 | grep
rsvg_handle_get_dimensions [1594] |
163320| 1144|FUNC |GLOB |0
|13 |rsvg_handle_get_dimensions
(emacs:19813): Gtk-WARNING
**: Conversion from character set '646' to 'UTF-8' is not supported $ mdb
/usr/local/bin/emacs (emacs:19831): Gtk-WARNING
**: Conversion from character set '646' to 'UTF-8' is not supported For most of the graphics libraries,
there are two versions: the native SUNWgnome-base-libs version located in
/usr/lib and SMCgtk version from sunfreeware.com located in /usr/local/lib:
$ ls -l
/usr/local/lib/libgtk-x11* $ ls -l
/usr/lib/libgtk-x11* SMCemacs 23.2 requires
SMCgtk 2.12.0, which means the correct version of library was
loaded. I was thinking to try the
native libgtk-x11 library, to do this, /usr/lib has been be put
before /usr/local/lib, but then it will hit the
rsvg_handle_get_dimensions error again. Can someone please help? Regards, Alex Lai Email: Alex_lai@scotiacapital.com Tel: (416)6074789 --- |
[Prev in Thread] | Current Thread | [Next in Thread] |