error while loading shared libraries

Hello All…
I am running suse 11.3 kernel 2.6.34.7-0.7-desktop, trying to get fldigi 3.21.5, a ham radio app, running but I get this error: fldigi: error while loading shared libraries: libportaudio.so.2: cannot open shared object file: No such file or directory

I have found that this is a quite common error for other apps using this file and have tried many things to try and fix. All audio libraries appear to be installed, the file is the with a soft link pointing to libportaudio.so.2.0.0 which I copied out of /usr/lib64 renamed to libportaudio.so.2 and then put back in /usr/lib64 so both were there. ie I have tried several things but no work! Any help would be appreciated!!
Thanks
Greg

Did you get it working?

It would be great if we could get a openSUSE rpm for flidigi and WSPR for 11.3 and 11.4. I don’t have the slightest idea how to make a package so would have to depend on others to make it.

My “hardware” shows my SignaLink USB audio device and my Prolific USE to Serial converter on my 11.4 install so all I need is working programs. I am very keen to get this system playing with WSPR otherwise I’ll have to run WIndows 7 to do any ham radio activities. I seems everyone is running Ubuntu and pre-compiled binaries exist for Ubuntu and Debian. I really don’t want to have to switch away to Ubuntu just to enjoy Amateur Radio under Linux.

Which version are you using? Shouldn’t be any problem running flidigi from Index of /repositories/hamradio/openSUSE_11.4

greghv wrote:

>
> Hello All…
> I am running suse 11.3 kernel 2.6.34.7-0.7-desktop, trying to get
> fldigi 3.21.5, a ham radio app, running but I get this error: fldigi:
> error while loading shared libraries: libportaudio.so.2: cannot open
> shared object file: No such file or directory
>
Is that the version from the OBS (hamradio repository)? I guess not because
it has 3.21.9. I cannot comment if it works but would give it a try since it
is built for 11.3 (also available for 11.4).


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

Sorry forgot the link

http://software.opensuse.org/search?q=fldigi&baseproject=openSUSE%3A11.3&lang=en&exclude_debug=true


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

FlameBait wrote:
> It would be great if we could get a openSUSE rpm for flidigi and WSPR
> for 11.3 and 11.4. I don’t have the slightest idea how to make a package
> so would have to depend on others to make it.
>
WSPR is also in the hamradio repo, see my link in the other post and just
search wspr (for 11.3 and 11.4)


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

I am wondering why this repo Index of /repositories/hamradio doesn’t show up in YAST >Configure Software Repositories >Add ?
What do I have to do to get it to show up in YAST?

That was the first place I looked? How would anyone know is there were already binaries? I was totally under the impression that nothing existed?

I keep getting unresolved dependencies when I try and install both WSPR and fldigi.
They need hamlib and I can’t install that do to another dependency. The whole repo needs to be added in to YAST so YAST can deal with it.

Open yast → software → software repositories
at the bottom there is a button “add” (please keep in mind it can have
slightly different names I translate from the german localisation)
click that and choose “URL …” then copy the url
http://download.opensuse.org/repositories/hamradio/openSUSE_11.3/
into the second field and click next
if you are using 11.4 of course change the url accordingly

I hope I understood your question.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

Or simply use the 1-click on the webpage that will add this repo for you.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

Martin thanks for the help getting the repo installed. I have boith programs installed now and can try to get them talking to my radio and USB sound card modem.

Thank you very much.

This is why the forums beat the mail list by about 1000%

FlameBait wrote:

>
> Martin thanks for the help getting the repo installed. I have boith
> programs installed now and can try to get them talking to my radio and
> USB sound card modem.
>
> Thank you very much.
>
> This is why the forums beat the mail list by about 1000%
>
Glad to hear you succeeded to install it, I hope it works for you since I
cannot test it myself. :slight_smile:


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

The problem I am having now is getting the program to talk to my radio as a user.

Root has full access and can control the radio via the Prolific USB to serial convertor on /dev/ttyUSB0. As a user I get the following error

rig_open: error = IO error 
Error attempting to set rig frequency.
rigctl -m 214 -r /dev/ttyUSB0 -s 57600 -C data_bits=8 -C stop_bits=1 -C serial_handshake=Hardware F 21094600

The information about Comport, speed and data bits and hand shaking is identical to that which is set up in root which works.

I have gone into YAST User and Group Administration and given myself rights to uucp and tty. I can’t think of anything else that is blocking communication with the radio. Running the software as root just will not do.

On 04/24/2011 07:06 AM, FlameBait wrote:
>
> Root has full access and can control the radio via the Prolific USB to
> serial convertor on /dev/ttyUSB0. As a user I get the following error

is the system detecting when you attach the device…and popping up the
dialog asking what you wanna do with it…or, or you manually mounting it…

or, are you booting with the device attached?

in any event compare the output of lsusb with the device not attached
to an output with it attached…who knows, maybe the system is seeing
the device as a modem, and you need to add yourself to the modem group…

hmmm, have a look at /etc/mtab while the device is attached (and
accessible by root)…maybe there will be some info in the line showing
it mounted that can be useful…and, see

man mount
or
man fstab

hmmmmmmmmmm2, maybe you need to dig into the how/why of udev rules (i
wouldn’t know where to begin, maybe) here: http://tinyurl.com/3edbbh5

QRI (?)


CAVEAT: http://is.gd/bpoMD
[openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
A Penguin Being Tickled - http://www.youtube.com/watch?v=0GILA0rrR6w

Denver I am booting with the USB to Serial convertor cable attached. The system is doing the mounting of /dev/ttyUSB0 itself.

I had already thought of the modem angle and had added myself to the modem group.
It’s not a modem it’s a USB to Serial cable that uses the prolific chipset and it works.

I know the device works since I can run WSPR and fldigi as root and the radio interfacing works via /dev/ttyUSB0. I know it is /dev/ttyUSB0 because YAST> Hardware told me what it was assigned and the Prolific USB to Serial convertor has not been disconnected since before openSUSE 11.4 was installed on this machine. The software is set up to use /dev/ttyUSB0 in it’s configuration. I set the configuration to /dev/ttyUSB0. It works as root. Again I can run WSPR as root and the program does what it is supposed to as far as communicating with the radio for frequency control.
I can not do that with my user account. I get the error above and have no interfacing to the radio over the USB to Serial cable.
If I can run it as root I should be able to run it is a user. If I knew what group I need to be a member of to run it.
I know that people running Ubuntu don’t seem to have this much trouble getting ham radio applications to run under Linux it seems.

I skimmed the udev URL and if that is the problem then I 'll just revert to using Windows for my Ham radio operation and that computer will not be used for a Linux test box/ham radio machine but will spend it’s time running Windows 7 64. I simply don’t want to have to learn all of that udev technical stuff run my radio.

I just want to enjoy my radio hobby with as little frustration as possible and do it using Linux if possible.
If it’s not possible with 11.4 and giving the user the correct permissions to access /dev/ttyUSB0 then it’s not going to happen. I am not going to run the program as root.
I am very frustrated as this is at least the third time I have tried to use openSUSE to do digital Amateur Radio and it seems to be failing again. I tried 11.1, 11.3 and now 11.4 and it’s failed every time for one reason or another.

On 04/24/2011 11:36 AM, FlameBait wrote:
>
> I had already thought of the modem angle and had added myself to the
> modem group.
> It’s not a modem it’s a USB to Serial cable that uses the prolific
> chipset and it works.

i understood that, and i suggested try modem becuase you didn’t list
that among uucp and tty as tried…

i’m at a loss to know which group that device might be in

>
> If I can run it as root I should be able to run it is a user. If I knew
> what group I need to be a member of to run it.

i agree…how about using yast to create a new test user, and add that
test user to every group listed…log out, and back in as the test user
and see what happens…if you can’t use it then, then you know your
answer doesn’t lie in just adding a group…and, you can move on…

> I know that people running Ubuntu don’t seem to have this much trouble
> getting ham radio applications to run under Linux it seems.

use what works!

> I skimmed the udev URL and if that is the problem then I 'll just
> revert to using Windows for my Ham radio operation and that computer
> will not be used for a Linux test box/ham radio machine but will spend
> it’s time running Windows 7 64. I simply don’t want to have to learn all
> of that udev technical stuff run my radio.

how do the successful ubuntu users set their udev, or fstab, or mtab or
or or?

> I just want to enjoy my radio hobby with as little frustration as
> possible and do it using Linux if possible.

but but but, that is not the traditional “Ham Way”…you should be
blowing your own glass to make vacuum tubes to put your hand wired
cathode control grids into and . . . :wink:

> If it’s not possible with 11.4 and giving the user the correct
> permissions to access /dev/ttyUSB0 then it’s not going to happen. I am
> not going to run the program as root.

why? log into the gui as yourself and then launch the program from a
terminal with kdesu/gnomesu (as appropriate)…i mean, do you every
heard of a way to install a virus or root kit though a ham radio??

the documentation for the gear, what does it say about user vs root use?

> I am very frustrated as this is at least the third time I have tried to
> use openSUSE to do digital Amateur Radio and it seems to be failing
> again.> I tried 11.1, 11.3 and now 11.4 and it’s failed every time for
> one reason or another.

the path to no frustration is to use WinSomething, right?
or, figure out why it is important to you to run it as user…


CAVEAT: http://is.gd/bpoMD
[openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
A Penguin Being Tickled - http://www.youtube.com/watch?v=0GILA0rrR6w

If a piece of normal software doesn’t works as non-root and the package doesn’t includes any documentation about any special steps needed to make it run… obviously it’s broken. Open a bug report…

Anyway, a “getfacl /dev/ttyUSB0” should give all the needed information. And with setfacl you can manually set the needed permission until the bug is fixed.
See “getfacl /dev/cdrw” output as an example. I don’t think this problem is different to the K3B needs access to the cd writer problem.

I have been lauinching it from the cli all along. LOL when I launch it as root I simply am doing as a Super User.

flamebait@linux-67uk:~> getfacl /dev/ttyUSB0
getfacl: Removing leading '/' from absolute path names
# file: dev/ttyUSB0
# owner: root
# group: dialout
user::rw-
group::rw-
other::---

After looking the output of /dev/cdrw the output of set setfacl --help is not very obvious.

On 04/24/2011 12:05 PM, DenverD wrote:
>
> how do the successful ubuntu users set their udev, or fstab, or mtab

WAIT…i just happened to think: it never was necessary to ‘mount’ a
modem…so, all of that mount thinking i did was totally off base…

hmmmm… were all of these dead ends:

http://tinyurl.com/3fu8s6g [searching for linux on SingnalLink’s site]

http://tinyurl.com/42wjqrs [search SignalLink and linux]

i didn’t read much to find: “I plugged the USB cable into my PC and the
mini-din cable into the AUX connector on my TS-480SAT. The installation
could not be easier.” [cite: “SignaLink USB & Linux Article by N9VV.pdf”
available as the second hit on the first cite and first hit on the
second cite above]

which causes me to ask: why are you converting the USB to serial and
connecting it to your serial port?

i’m not sure, but you might find the answer less frustrating by asking
hams who use linux, rather than asking linux users who don’t know
anything about amateur radio

like the cites above, or http://www.qsl.net/kf8gr/index.html which has
some links…


CAVEAT: http://is.gd/bpoMD
[openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
A Penguin Being Tickled - http://www.youtube.com/watch?v=0GILA0rrR6w