Jump to content

Problem starting Flock


Recommended Posts

Greetings there,

 

I just downloaded flock.

 

I tried to start it and i got the following error:

 

[root@localhost flock]# ./flock
./flock-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[root@localhost flock]#

 

Also i checked whether i have libstdc++ or not,

 

[root@localhost flock]# urpmi libstdc
No package named libstdc
The following packages contain libstdc:
libstdc++-devel
libstdc++6
[root@localhost flock]# urpmi libstdc++6
Package libstdc++6-4.2.2-0.RC.1mdv2008.0.i586 is already installed
[root@localhost flock]#

 

Please tell me what next to do.

 

Thanks,

rohit.

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Clearly, you just need to install whatever package contains libstdc++5. But I believe Greg2's suggestion of:

 

$ urpmi libstdc++5

 

...while handy, will only look for an installed package named 'libstdc++5', and not find a package containing a file with the name 'libstdc++5' particularly if the package containing it is named differently. And since it's not installed you get "No package named libstdc++5" which is not a lot of help. Now, daniewicz was kind enough to give you the package name for libstdc++5 for his machine, but not how to find the correct package for yours. You can do a search for 'libstdc++5' in MCC>Software Management, but this is one of those times when some of the old 'rpm' commands can come in handy...

 

To find a package for your installation named 'libstdc++5' *or* one that contains libstdc++5, in a console type (you do not need to be root):

 

$ rpm -q --whatprovides libstdc++5

 

For example, on my 10.1 machine I get:

 

$ rpm -q --whatprovides libstdc++5

libstdc++5-3.3.4-2mdk

 

This query will not work on *any* file in a package but IIRC the package or file doesn't have to be installed, if it's in the rpm database you should get a result. Then just install that package.

 

To find what what apps require libstdc++5:

 

$ rpm -q --whatrequires libstdc++5

 

...and you'll get a list of dependencies. There are many other possible queries, see: man rpm.

 

I hope I got this stuff right. If not feel free to pile on.

Link to comment
Share on other sites

Hi,

 

To find a package for your installation named 'libstdc++5' *or* one that contains libstdc++5, in a console type (you do not need to be root):

 

$ rpm -q --whatprovides libstdc++5

 

To find what what apps require libstdc++5:

 

$ rpm -q --whatrequires libstdc++5

 

...and you'll get a list of dependencies. There are many other possible queries, see: man rpm.

 

I hope I got this stuff right. If not feel free to pile on.

 

I did check out the --whatrequires and --whatprovides option of the rpm command, but to my dismay, no success :huh:

 

[root@localhost rkumar]# rpm -q --whatprovides libstdc++5
no package provides libstdc++5
[root@localhost rkumar]# rpm -q --whatrequires libstdc++5
no package requires libstdc++5
[root@localhost rkumar]#

 

Also i checked out MCC for the "listdc" package, it shows libstdc++6 as the only matching result found.

I do not have the equivalent "-devel" packages installed.

Should i install them?

 

Thanks,

rohit.

Link to comment
Share on other sites

[root@localhost rkumar]# rpm -q --whatprovides libstdc++5
no package provides libstdc++5
[root@localhost rkumar]# rpm -q --whatrequires libstdc++5
no package requires libstdc++5
[root@localhost rkumar]#

I'm using Mandriva 2008.

[greg@halfway ~]$ rpm -qa |grep libstdc
libstdc++-devel-4.2.2-0.RC.1mdv2008.0
libstdc++5-3.3.6-3mdk
libstdc++6-4.2.2-0.RC.1mdv2008.0
[greg@halfway ~]$ locate libstdc++.so.5
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.7

I installed it with (as root)

urpmi libstdc++5

so you must not have all the software repos set up on your system properly. Did you use the easy-urpmi link at the top of the page to set them up?

Link to comment
Share on other sites

I would second the idea that urpmi sources are not set up correctly. The pkg is in contrib:

[root@localhost ohms]# urpmq --sources libstdc++5
ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/official/2008.0/i586/media/contrib/release/
libstdc++5-3.3.6-3mdk.i586.rpm

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...