Saturday, May 4, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 29992  / 3 Years ago, thu, september 2, 2021, 6:50:17

I installed Code::Blocks from Muon Software Center (I'm using KDE) and I got Code::Blocks 10.05.



I found this link: https://launchpad.net/~pasgui/+archive/ppa/



After adding this PPA, and running sudo apt-get update if I run sudo apt-get install codeblocks, which version of Code::Blocks will I get? If I download the tarball from the main site, how to I install it properly?



Can someone help me out?


More From » installation

 Answers
1

It will most likely install the newer version off the PPA. An easy way to check is to do apt-get install -s codeblocks and see what happens during the simulated install.



Tarballs are a little tricky. I recommend installing build-essential and checkinstall in addition to any dependancies that codeblock needs. Download the tarball, and expand it in a working directory with tar -xf filename.tar.gz. Then read the install file if any for instructions



Typically you need to pull in dependancies - an easy way to do this is to use apt-get build-dep. Then you run ./config (which checks if prerequisites are met and sets system specific stuff), make (which compiles), and make install(which moves the compiled files to the right places). I replace make install with checkinstall to make a deb and install that instead cause its easier to uninstall. YMMV - some applications replace make with cmake and so on.


[#32755] Saturday, September 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zebrla

Total Points: 356
Total Questions: 110
Total Answers: 120

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;