DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So now my question is, is there any chance to remove the explicit dependencies, so I can install the thing into /usr/, alongside gcc 4.4, 4.3, 4.2 ? (GMP, MPC, MPFR, PPL, CLooG) ?
How do all four of 4.1-4.4 manage to coexist on Debian w/o multiple versions of the dependencies?
Wouldn't installing to a prefix of /usr/local/gcc47/ as you suggest require me still to set LD_LIBRARY_PATH before using it each time?
Thanks again for your help.
Last edited by jhwilliams; 03-28-2012 at 10:38 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 3
Quote:
Wouldn't installing to a prefix of /usr/local/gcc47/ as you suggest
require me still to set LD_LIBRARY_PATH before using it each time ?
No. As you can see from post #2, it is this simple : cd /usr/bin/
ln -s /usr/local/gcc47/bin/gcc gcc47
ln -s /usr/local/gcc47/bin/g++ g++47
Please have a look at the default Debian Squeeze gcc's :
g++-4.3, g++-4.4 : They have unique file names, e.g. /usr/bin/g++-4.3.
Dependencies for gcc-4.7 : libgmp.so.10, libgmpxx.so.4, libmpfr.so.4 etc.
You can have them in /usr/lib/. I.e. also unique file names: No conflicts.
A complete install of new GMP, MPC, MPFR, PPL, CLooG to /usr/ : No.
Only the non conflicting library files.
Not difficult, as the default gcc-4.4 only seems to depend on one library,
= /usr/lib/libgmp.so.3 ( And may be /usr/lib/libmp.so.3 ).
The dependencies can be compared here :
gcc-4.4 http://packages.debian.org/squeeze/g++-4.4
gcc-4.7 http://packages.debian.org/sid/g++-4.7
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.