[openbox] obconf installation issue

Erik Iverson eriki at ccbr.umn.edu
Tue Feb 2 17:55:50 EST 2010


I hope this is the correct list to send this request.

At work, I am running 64-bit Linux.  I want to run openbox as my window 
manager, but I am not root on my machine.  Today, I installed openbox 
(Openbox 3.4.10), but I had to use the --prefix argument to configure to 
put it in my $HOME (/my/home) directory.  I start openbox from my 
.xinitrc, and everything is great.

Next, I wanted to install obconf (2.0.3).  Per the instructions on the 
wiki, I set PKG_CONFIG_PATH to the correct place 
(/my/home/lib/pkgconfig) to find obrender and obparser.

I then ./configure with my $HOME (/my/home) prefix for obconf, make, and 
make install.  All goes fine.  Except when I try to launch obconf, I get:

"obconf: error while loading shared libraries: libobrender.so.21: cannot 
open shared object file: No such file or directory".

According to config.log and the resulting Makefile for obconf, all looks 
well with the -L flag found in OPENBOX_LIBS (i.e., -L/my/home/lib is 
included), so pkg-config seems to be doing its job.

The gcc command line that is ultimately run is:

gcc  -g -O2  -Wl,-export-dynamic -o src/obconf  src/src_obconf-about.o 
src/src_obconf-archive.o src/src_obconf-windows.o 
src/src_obconf-moveresize.o src/src_obconf-margins.o 
src/src_obconf-mouse.o src/src_obconf-desktops.o src/src_obconf-dock.o 
src/src_obconf-main.o src/src_obconf-appearance.o 
src/src_obconf-preview.o src/src_obconf-preview_update.o 
src/src_obconf-theme.o src/src_obconf-tree.o -L/my/home/lib -lobrender 
-lSM -lICE -lXft -lpangoxft-1.0 -lXrender -lfontconfig -lfreetype -lX11 
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lobparser -lxml2 
-lglib-2.0   -lstartup-notification-1   -L/my/home/lib -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lpangocairo-1.0 
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lglade-2.0 
-lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 
-lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 
-lglib-2.0   -L/my/home/lib -lgdk_pixbuf-2.0 -lpng12 -lm -lgobject-2.0 
-lgmodule-2.0 -lglib-2.0

The files libobrender.so, libobrender.so.21, and libobrender.so.21.0.6 
all exist in /my/home/lib, as do their libobparser* counterparts.

If I do ldd ~/bin/obconf, I get everything looking fine, except:
	libobrender.so.21 => not found
	libobparser.so.21 => not found

If I set LD_LIBRARY_PATH to /my/home/lib, all is well, so maybe this 
isn't an openbox issue so much as one of my understanding of how this is 
supposed to work.  But why would openbox work without LD_LIBRARY_PATH 
being set, but not obconf? I'd really rather not set this if at all 

Any ideas here?

Thanks so much, I'm really excited to begin using this WM!

Erik Iverson

More information about the openbox mailing list