ActiveState Powered by ActiveState

ActiveState Community


Which download for Linux?

Posted by kgish on 2007-01-26 02:30

On the download page for linux there are two links: libcpp5 and libcpp6. What is the difference and how do I know which one I need?

ToddW | Fri, 2007-01-26 09:09

This means which version of the general C library you use. Most linux machines have either libstdc++ version 5 or 6 installed. Version 6 is more common on newer distros. Note: Version 5 and 6 are neither forwards nor backwards compatible.

How do you know which one you need? Run the following command:
find /usr/lib -name libstdc*

If you find entries for "/usr/lib/libstdc++.so.6", then you should use libcpp6.
If you find entries for "/usr/lib/libstdc++.so.5", then you should use libcpp5.
If you have both, then you can choose either one, but I'd suggest libcpp6 as it's more recent.

davidfraser | Fri, 2008-03-07 02:52

Great, if it had just said "libstdc++5" or "libstdc++6" that would have made it easier...
I understand you may not be able to include the ++, but making it libcpp as the description is confusing

ToddW | Fri, 2008-03-07 09:34

I find that a little misleading as well.

I believe this naming comes from many version of Komodo ago, when there used to be a libcpp3 version as well (the linux library naming back then I believe was actually libcpp3, so it made more sense back then).

I've logged the following bug for this:
http://bugs.activestate.com/show_bug.cgi?id=75455

Cheers,
Todd

-->