error while loading shared libraries: libdrizzledmessage.so.0

Bug #656176 reported by Serdar Güler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Won't Fix
High
Unassigned
7.0
Won't Fix
Critical
Monty Taylor

Bug Description

I followed the steps written in the drizzle web site for installing drizzle into ubuntu 9.10 32 bit.

When I tried to start drizzle, I got an error:

/usr/local/sbin/drizzled: error while loading shared libraries: libdrizzledmessage.so.0: cannot open shared object file: No such file or directory

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 656176] [NEW] error while loading shared libraries: libdrizzledmessage.so.0

On 10/07/2010 01:37 AM, Serdar Güler wrote:
> Public bug reported:
>
> I followed the steps written in the drizzle web site for installing
> drizzle into ubuntu 9.10 32 bit.
>
> When I tried to start drizzle, I got an error:
>
> /usr/local/sbin/drizzled: error while loading shared libraries:
> libdrizzledmessage.so.0: cannot open shared object file: No such file or
> directory

Thanks for the feedback!

Could you tell me a couple of things really quickly?

does /usr/local/lib/libdrizzledmessage.so.0 exist?
do any of /usr/local/lib/libdrizzledmessage* exist?

If so, does this go away if you do:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

first?

Other than that, could you point me to the wiki page you were following?
(It's an ever-expanding wiki, so I'm not always aware of every page. -
and some of them are out of date and need to be updated)

Monty

Revision history for this message
Serdar Güler (benimadimhickimse) wrote :

the library exists:

oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ ls -al /usr/local/lib/libdrizzledmessage.so.0*
lrwxrwxrwx 1 root root 27 2010-10-07 10:30 /usr/local/lib/libdrizzledmessage.so.0 -> libdrizzledmessage.so.0.0.0
-rwxr-xr-x 1 root root 3670202 2010-10-07 10:30 /usr/local/lib/libdrizzledmessage.so.0.0.0

I added the directory to the path, tothing changed.

oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ sudo -u USER /usr/local/sbin/drizzled --datadir=/home/USER/drizzle/data
/usr/local/sbin/drizzled: error while loading shared libraries: libdrizzledmessage.so.0: cannot open shared object file: No such file or directory

I am following :

http://wiki.drizzle.org/User_Documentation#Installing_Drizzle

Serdar

Changed in drizzle:
importance: Undecided → High
Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 656176] Re: error while loading shared libraries: libdrizzledmessage.so.0

On 10/07/2010 02:13 AM, Serdar Güler wrote:
> the library exists:
>
> oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ ls -al /usr/local/lib/libdrizzledmessage.so.0*
> lrwxrwxrwx 1 root root 27 2010-10-07 10:30 /usr/local/lib/libdrizzledmessage.so.0 -> libdrizzledmessage.so.0.0.0
> -rwxr-xr-x 1 root root 3670202 2010-10-07 10:30 /usr/local/lib/libdrizzledmessage.so.0.0.0
>
> I added the directory to the path, tothing changed.
>
> oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> oratech@oratech-laptop:~/Downloads/drizzle7-2010.09.1802$ sudo -u USER /usr/local/sbin/drizzled --datadir=/home/USER/drizzle/data
> /usr/local/sbin/drizzled: error while loading shared libraries: libdrizzledmessage.so.0: cannot open shared object file: No such file or directory

Very weird. I can only surmise that sudo is blowing away environment...
I'll look into that.

> I am following :
>
> http://wiki.drizzle.org/User_Documentation#Installing_Drizzle

Aha! Documentation to update... :)

Luckily, we have debs now. So I recommend the following steps instead:

sudo add-apt-repository ppa:drizzle-developers/ppa
sudo apt-get update
sudo apt-get install drizzle-server

(If the add-apt-repository command doesn't work, apt-get install
python-software-properties)

BUT - I will be sure to both look in to the sudo/ld issue and also
update the docs.

Revision history for this message
Joe Daly (skinny.moey) wrote :

Serdar,

A interesting test would be to run "sudo -u USER echo $LD_LIBRARY_PATH" I ran this on my host and LD_LIBRARY_PATH carried through from what was in my shell but it may not for some reason in your environment.

Revision history for this message
Serdar Güler (benimadimhickimse) wrote :

I tried to set the necessary folder on the LD_LIBRARY_PATH, nothing changed. This could be also a bug for ubuntu, rather than drizzle, because at the beginning the LD_LIBRARY_PATH seems to be empty.

oratech@oratech-laptop:~$ sudo -u USER echo $LD_LIBRARY_PATH

oratech@oratech-laptop:~$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
oratech@oratech-laptop:~$ sudo -u USER echo $LD_LIBRARY_PATH
/usr/local/lib:
oratech@oratech-laptop:~$ sudo -u USER /usr/local/sbin/drizzled --datadir=/home/USER/drizzle/data
/usr/local/sbin/drizzled: error while loading shared libraries: libdrizzledmessage.so.0: cannot open shared object file: No such file or directory
oratech@oratech-laptop:~$

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Does /usr/local/lib/libdrizzledmessage.so.0 exist yet?

You may want to try

sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf'
sudo ldconfig

Revision history for this message
Serdar Güler (benimadimhickimse) wrote :

sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf'
sudo ldconfig

this worked.

Revision history for this message
Monty Taylor (mordred) wrote :

Great.

Just to update the bug, this isn't really a drizzle issue as much as an OS issue. There is very little we can do about this from the drizzle end.

Changed in drizzle:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.