Problem Finding Needed C/C++ Library For Newly Installed Program
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Problem Finding Needed C/C++ Library For Newly Installed Program




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem Finding Needed C/C++ Library For Newly Installed Program  
Hal Vaughan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-19-06 12:15 AM

I am trying to install RealVNC on a number of different systems that we'll
be using. _There's no problem with Windows, but on Linux, on a number of
systems ask for libstdc++-libc6.2-2.so.3. _On my system, that file is a
symlink to libstdc++-3-libc6.2-2-2.10.0.so. _As I understand that, it means
that I can use a symlink like this in most cases and not have a problem.

I'm not a C programmer, but from what I've gleaned, as long as the symlink
is to a late enough library there isn't a problem. _What I need to do is
work out an algorithm for what file I should symlink to. _For example, I
don't know what the "3" in the 2nd filename represents and if it is
important. _If I can just list the library directories with wildcards, get
a list of files, and sort them so the last one has the highest value, then
link to that, it'd be great.

What are the rules for these types of symlinks? _Should I just look for any
version of the library that is the same or greater? _Do I pay attention to
the version numbers after the "++-" and before the "libc"? _Or do I only
have to pay attention to the numbers after "libc" and the ".so" at then
end?

What criteria do I use to try to determine which file I should symlink to?

Thanks for any help on this!

Hal





[ Post a follow-up to this message ]



    Re: Problem Finding Needed C/C++ Library For Newly Installed Program  
Robert Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-19-06 12:17 PM

Hal Vaughan wrote:
> I am trying to install RealVNC on a number of different systems that we'll
> be using.  There's no problem with Windows, but on Linux, on a number of
> systems ask for libstdc++-libc6.2-2.so.3.  On my system, that file is a
> symlink to libstdc++-3-libc6.2-2-2.10.0.so.  As I understand that, it mean
s
> that I can use a symlink like this in most cases and not have a problem.
>
> I'm not a C programmer, but from what I've gleaned, as long as the symlink
> is to a late enough library there isn't a problem.  What I need to do is
> work out an algorithm for what file I should symlink to.  For example, I
> don't know what the "3" in the 2nd filename represents and if it is
> important.  If I can just list the library directories with wildcards, get
> a list of files, and sort them so the last one has the highest value, then
> link to that, it'd be great.
>
> What are the rules for these types of symlinks?  Should I just look for an
y
> version of the library that is the same or greater?  Do I pay attention to
> the version numbers after the "++-" and before the "libc"?  Or do I only
> have to pay attention to the numbers after "libc" and the ".so" at then
> end?
>
> What criteria do I use to try to determine which file I should symlink to?
>
> Thanks for any help on this!
>
> Hal

Don't mess with symlinks. Binary interfaces have evolved over time and
often programs built with specific versions of libraries have to be
loaded with similar versions at run time. And C++ binary interfaces
really have changed through different compiler versions.

The program ldconfig(1) actually creates the version symlinks.

Your distribution probably supplies older binary C++ libraries as well
as the current one. In my distribution (Debian), type:

apt-cache search libstdc++

to get the list of available ones.

For the full story about versioning, see, for example,

<http://people.redhat.com/drepper/elftut1.ps>

Robert





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:12 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register