Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 813  / 1 Year ago, fri, december 2, 2022, 6:32:15

My development machine is running Precise, but some of my target servers are still running Lucid. I'm trying to set up my dev machine so that it can compile c/c++ for both Lucid and Precise. I already ran



aptitude install gcc-4.4 g++-4.4


on my dev machine but that unfortunately installed version 4.4.7 of the compilers where Lucid is running version 4.4.3.



After some googling, I found this:



http://packages.ubuntu.com/lucid/devel/gcc-4.4


which seems to be exactly what I want. Would adding this Lucid package to the Precise source.list even work considering that this package was not meant for Precise? If so, exactly what url should I add to the source.list file in order to get it?



note: I'm not really looking to compile this from source if I don't have to. I'm not even sure if gcc/g++ 4.4.3 will even solve my problem.



I also acknowledge the possibility that I'm going about this all wrong. Is there a better or simpler way to compile for older versions of linux on Precise?


More From » apt

 Answers
2

Forget about GCC, your BIGGEST problem with the way you're going will be dependencies/libraries; the ones in Precise are usually much newer than Lucid.



The right way to build Lucid apps in Precise is to create a Lucid chroot and build inside it.


[#36483] Friday, December 2, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hamostic

Total Points: 403
Total Questions: 142
Total Answers: 112

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;