Centos source code installation code: blocks method and precautions
Version and component requirements:
1 system: centos6.4
2 wxWidegets recommended version: wxWidgets-3.0.1.tar.bz2
3 codeblocks recommended version: codeblocks_13.12-1.tar.gz
Step 1.1:
Download: http://www.wxwidgets.org/downloads/wxWidgets-3.0.1.tar.bz2
Unzip tar-xvf wxWidgets-3.0.1.tar.bz2
Installation:
[Root @ luozhonghua codeblocks] # cd wxWidgets-3.0.1
[Root @ luozhonghua wxWidgets-3.0.1] #./configure & make install # do not include parameters (PATH) for installation, so as to avoid subsequent accidents
2.1 LD_LIBRARY_PATH environment Configuration
Query:
[Root @ luozhonghua codeblocks] # wx-config -- libs
-L/usr/local/lib-pthread-lwx_gtk2u_xrc-3.0-lwx_gtk2u_html-3.0-lwx_gtk2u_qa-3.0-lwx_gtk2u_adv-3.0-lwx_gtk2u_core-3.0-lwx_baseu_xml-3.0-lwx_baseu_net-3.0-lwx_baseu-3.0
Add:
Add the following to the last line of vi/etc/profile:
Export LD_LIBRARY_PATH = "-L/usr/local/lib-pthread-lwx_gtk2u_xrc-3.0-lwx_gtk2u_html-3.0-lwx_gtk2u_qa-3.0-lwx_gtk2u_adv-3.0-lwx_gtk2u_core-3.0-lwx_baseu_xml-3.0-lwx_baseu_net-3.0-lwx_baseu-3.0"
Effective immediately:
[Root @ luozhonghua codeblocks] # source/etc/profile
Test:
[Root @ luozhonghua codeblocks] # export-p
3.1 install codeblocks
Download wget http://www.codeblocks.org/downloads/26#linux64/codeblocks_13.12-1.tar.gz
Tar-xvf codeblocks_13.12-1.tar.gz
Cd codeblocks_13.12-1
Mkdir/opt/codeblocks
./Configure -- prefix =/opt/codeblocks & make install
Done