Re: Strange error running zinf under linux

Ed Sweetman <[email protected]> Thu, 10 Apr 2003 13:13:46 -0400
Newsgroups gmane.comp.audio.zinf.user
Message-ID <[email protected]>
Kristian Kvilekval wrote:
> On Wed, 2003-04-09 at 07:30, Pim Schellart wrote:
> 
>>Hi everybody,
>>
>>I've just installed zinf 2.2.2 onto my suse linux 8.0 box and when I try
>>to run it from a KDE konsole shell i get this strange window:
>>
>>pim@linux:~> /usr/local/bin/zinf
>>Cannot create/open a semaphore. Is SYS V IPC installed?
>>
>>Command Line Interface
>>
>> * q    Quit
>> * +/=  Next Song
>> * -    Prev Song
>> * p    Pause / UnPause
>> * s    Shuffle
>>
>> * f    Fast forward 10 seconds
>> * F    Fast forward 1 min
>> * j    Fast forward 10 min
>>
>> * b    Skip backwards 10 seconds
>> * B    Skip backwards 1 min
>> * J    Skip backwards 10 min
>>
>> * h    Print these usage instructions
>> * ?    Print info including current location in file
>>
>>cmdline.ui requires a song or playlist argument
>>
>>then my console display craches (i can type text but it's no longer
>>displayed commands are executed though??)
> 

You likely aren't building the gtk ui or any gtk sources.  Is this 
correct? What is your configure output during the gtk tests? If you dont 
have libgtk1.2 and dev files then you wont be able to build gtk related 
programs including the plugins zinf uses for it's gui. Currently zinf 
does not have a qt/kde based gui available. The cmdline.ui is very basic 
and minimalistic. If you want slightly more functionality, try the 
ncurses.ui or hack the cmdline.ui to do what you want it to do and 
patches are always welcome for either i would think.



> That is strange since it should choose zinf.ui over cmdline.ui.
> Try 
>   $ /usr/local/bin/zinf -ui zinf.ui  
> 
> 
> 
> 
> 
>>i installed from souce allong with the id3 and musicbrainz libraries.
>>compiling and installing gave no errors but when i tried to run the
>>program it first asked for libmusicbrainz.so.1 even though it was
>>installed. I found out zinf was just looking in the wrong directory to
>>find the library so I created a symbolic link in /lib and the error was
>>gone but then it asked for libid3-3.8.so.3 so i created another symbolic
>>link and got the window above.

Yea, you need to update your ld.so.conf and rerun ldconfig to update 
your cache.  Zinf does not "look" for libraries, it asks for them and 
the system is  supposed to give it the earliest one in the path you 
specify.

> 
> Try
>   ldd /usr/local/bin/zinf
> to see where it's picking up the shared libs from.
> I suspect they are installed in /usr/local/lib but
> you've forgotten to add that directory to you shared library
> loader search path.  Look at /etc/ld.so.conf  and check
> that the directory where you install libid3 and libmusicbrainz.
> is in there.  If not, then add the directory and run ldconfig
> 
> 
> 
>>Please help me what should I do to get this thing working???
>>
>>Thanks in advance,
>>Pim Schellart
>>
>>(please forgive me for my bad english i'm dutch)
>>



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com