Question : Unable to locate loadable module in module_path

Mandrake 10.0
Wine20050211
winetools210jo
gtk1.2.2

I installed wine onto my machine so that I could run winword and possibly never need windows again.  After installing wine, I successfully installed winzip and am able to use the built in notepad, winefile and even installed DVDshrink without a hitch.  I will not mention what errors I get when installing ms office because the main problem here is that I cannot use winetools and from the looks of it, winetools installs some key windows components necessary to run larger applications (DCOM98, windows installer, VB/C++ scripting, etc).  When I run winetools 'wt' command as any regular user, I get the following warning on the console, and consequently, the only menu that works in winetools is the main menu (if I chose 'base setup' and click ok, the window disappears for a second and then reappears.  It reappears as the menu window again and not the correct window that should be the 'base setup' window).

"Gtk-WARNING **: Unable to locate loadable module in module_path: "libgalaxy.so","

Note that as the root user, wt would work just fine.  Since the winetools instructions explicitly stated not to run wt as root, I need to find out a way to get this working for regular users.  

So it seems that the module_path is not setup correctly for the regular users but it is for the root user.   The root user does not have  a $HOME/.gtkrc file.  A search for the file libgalaxy.so returns the following
warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
/usr/lib/gtk-2.0/2.2.0/engines/libgalaxy.so
/usr/lib/gtk/themes/engines/libgalaxy.so

Ok, so I create a .gtkrc file for my regular user and it reads:
module_path "/usr/lib/gtk/themes/engines"

Try it out and the same warning occurs.  Change .gtkrc to:
module_path "/usr/lib/gtk-2.0/2.2.0/engines"

No go.  A search in the internet does not reveal much other than to check where the library is and to point module_path there.  There is even a suggestion to remove .gtkrc so that the system uses the default values.  So I remove .gtkrc entirely and the warning is the same.  I understand this is a theme issue so I change themes under my regular user and running wt still complains about libgalaxy.so.  The documentation online does not provide any more info and neither do the included docs.  Any help is appreciated.

Answer : Unable to locate loadable module in module_path

I will be very frank with you .I have done a mistake which gave us a lucky break I guess .I am supposed to tell you to add a line like below
$LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/other/paths
instead I gave you the other .

But we should understand why it is working . In you $PATH most of the paths relate to binaries .You observation was correct .But there is one path /usr/lib which is library path . Strangly no one has a library path attached into a bin path . Normally one library is dependant on other libraries .because all of them are dynamic libraries .  So we can do a small test . Just add the below line in .bash_profile and try again .
LD_LIBRARY_PATH=/usr/lib:/rest/of/your/gtk/paths
and then try running it .
Also one more sure shot test about what libraries this library wants internally is
run the below comand and paste the output
# ldd /usr/lib/gtk/themes/engines/libgalaxy.so
It will show all the internally called libraries and their respecttive paths . If any library is missing it will show a blank . We can add that path in the LD_LIBRARY_PATH .   THis is a sure shot way to figure out what other libraries this one requires .

In my experience I have seen that the global setting also fails if internal dependancies are missing . Any dependancy paths we add in the LD_lib path should be before the gtk paths .
Random Solutions  
 
programming4us programming4us