Reference:http://itlab.idcquan.com/linux/set/39862.html
It's basically three steps:
To compile and install Codeblocks as an example:
First unpack the source package, assuming the decompression to/tmp
1.
Terminal run./configure
The system will then automatically check the compilation environment if a missing part will prompt and stop. Just follow the prompts to install the missing packages.
For example No package ' gtk+-2.0 ' found, tips missing gtk2.0 (but I have installed gtk2.8 ah hello)
No way, had to apt-get install Libgtk2.0-dev, solved the
2.make
Start compiling
3.sudo make Install
Start installation
4. Input codeblocks run under terminal
An error occurred: Codeblocks:error while loading shared libraries:libcodeblocks.so.0:cannot open Shared object file:no such file or directory
Description The system did not find the dynamic link library
Workaround: (reference:http://www.linuxdiyf.com/viewarticle.php?id=90053)
sudo vi/etc/ld.so.conf, add include/usr/local/lib at the end of the file, save exit
sudo ldconfig
Then you can run it ~
Linux under the compiled source installation software